GithubHelp home page GithubHelp logo

gnucap-python's People

Contributors

henjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gnucap

gnucap-python's Issues

license unclear

COPYING contains the GPLv3 license text, whereas LICENSE apparently contains a copy of the GPLv2.

None of the other files contain a license statement. according to github, the project is under GPLv3. please let us know if this is your intent. i suggest to add a license header to each individual source code file.

(perhaps it will be sufficient to just delete the LICENSE file...?)

thank you.

Can't compile python module on Ubuntu 11.04

I was trying to get the tests running on pycircuits so tried to install python-gnucap.

I had to create a link from ../gnucap-2009-12-07/src/ gnucap so that the include files could be found and this diff

diff --git a/numpy_interface.h b/numpy_interface.h
index 226a8c2..e617d9e 100644
--- a/numpy_interface.h
+++ b/numpy_interface.h
@@ -1,4 +1,4 @@
-#include <gnucap/m_matrix.h>
+#include "gnucap/m_matrix.h"
#include <Python.h>
#include <numpy/arrayobject.h>

I then get this error

(py27)michaelt@michaelt-VirtualBox:/home/dub-projects/ismtxrx/users/mthompson/work/gnucap-python$ python setup.py build
running build
running build_py
copying gnucap.py -> build/lib.linux-i686-2.7
running build_ext
building '_gnucap' extension
swigging gnucap.i to gnucap_wrap.cpp
swig -python -c++ -DHAS_NUMPY -Wall -o gnucap_wrap.cpp gnucap.i
gnucap.i:171: Warning(517): Director class 'SIM' is abstract, abstract method 'setup' is private
gnucap.i:196: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:197: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:198: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:199: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:201: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:202: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:203: Warning(454): Setting a pointer/reference variable may leak memory.
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gnucap.cc -o build/temp.linux-i686-2.7/gnucap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /usr/include/python2.7/Python.h:8:0,
from numpy_interface.h:2,
from gnucap.cc:9:
/usr/include/python2.7/pyconfig.h:1155:0: warning: "POSIX_C_SOURCE" redefined
/usr/include/features.h:163:0: note: this is the location of the previous definition
/usr/include/python2.7/pyconfig.h:1177:0: warning: "XOPEN_SOURCE" redefined
/usr/include/features.h:165:0: note: this is the location of the previous definition
gnucap.cc: In function ‘std::string command(char
)’:
gnucap.cc:25:60: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:27:39: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:29:22: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:19:19: warning: ignoring return value of ‘char
tmpnam(char*)’, declared with attribute warn_unused_result
gnucap/constant.h: At global scope:
gnucap/constant.h:98:14: warning: ‘LINEAR’ defined but not used
/usr/include/python2.7/numpy/__multiarray_api.h:1187:1: warning: ‘int _import_array()’ defined but not used
error: command 'gcc' failed with exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.