Building & Installing: error: command 'g++' failed with exit status 1

1,236 views
Skip to first unread message

prem.i...@gmail.com

unread,
Aug 7, 2013, 2:10:03 PM8/7/13
to vpytho...@googlegroups.com
Hello All,

I am trying to build vpython-wx-6.05 from source. using python-2.7, but miserably failing. Hope you can help.

Initially I got the same error with gcc, but then I thought since it was compiling cpp files I set CXX flag to g++ and I still get the same errors:

I read the I need python2.7-devel but I don't get those with Scientific Linux 6.3, just like Python2.7. Hope somebody can throw some light here ....

thanks,
Prem.

# python2.7 setup.py build
running build
running build_py
running build_ext
building 'visual_common.cvisual' extension
g++ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/vpython-wx-6.05/include -I/usr/local/vpython-wx-6.05/include/util -I/usr/local/vpython-wx-6.05/include/python -I/usr/local/vpython-wx-6.05/include/gtk2 -I/usr/include/glib-2.0 -I/usr/local/gtkglextmm/include/gtkglextmm-1.2 -I/usr/include/gtkglext-1.0 -I/usr/include/pixman-1 -I/usr/include/sigc++-2.0 -I/usr/include/gdkmm-2.4 -I/usr/include/gtkmm-2.4 -I/usr/include/atkmm-1.6 -I/usr/include/cairomm-1.0 -I/usr/lib64/gtkmm-2.4/include -I/usr/lib64/glibmm-2.4/include -I/usr/lib64/gtk-2.0/include -I/usr/lib64/glib-2.0/include -I/usr/lib64/pangomm-1.4/include -I/usr/include/atk-1.0 -I/usr/include/pangomm-1.4 -I/usr/include/libpng12 -I/usr/local/gtkglextmm/lib/gtkglextmm-1.2/include -I/usr/include/glibmm-2.4 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtkglext-1.0/include -I/usr/include/pango-1.0 -I/usr/include/giomm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/lib64/giomm-2.4/include -I/usr/include/cairo -I/usr/include/gtk-unix-print-2.0 -I/usr/include/freetype2 -I/usr/local/python-2.7.5/include/python2.7 -c /usr/local/vpython-wx-6.05/src/core/label.cpp -o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/label.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /usr/local/vpython-wx-6.05/include/util/extent.hpp:9,
                 from /usr/local/vpython-wx-6.05/include/renderable.hpp:10,
                 from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/util/vector.hpp:10:36: error: boost/python/numeric.hpp: No such file or directory
In file included from /usr/local/vpython-wx-6.05/include/renderable.hpp:11,
                 from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/util/displaylist.hpp:8:32: error: boost/shared_ptr.hpp: No such file or directory
In file included from /usr/local/vpython-wx-6.05/include/util/texture.hpp:10,
                 from /usr/local/vpython-wx-6.05/include/renderable.hpp:12,
                 from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:4:29: error: boost/signals.hpp: No such file or directory
In file included from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/label.hpp:16:28: error: boost/python.hpp: No such file or directory
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:4,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:199:2: error: #error Must use Python with unicode enabled.
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1748,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
/usr/local/vpython-wx-6.05/src/core/label.cpp:13:34: error: boost/scoped_array.hpp: No such file or directory
In file included from /usr/local/vpython-wx-6.05/include/renderable.hpp:11,
                 from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/util/displaylist.hpp:12: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/util/displaylist.hpp:18: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/usr/local/vpython-wx-6.05/include/util/displaylist.hpp:18: error: expected ‘;’ before ‘<’ token
In file included from /usr/local/vpython-wx-6.05/include/util/texture.hpp:10,
                 from /usr/local/vpython-wx-6.05/include/renderable.hpp:12,
                 from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:26: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:26: error: ISO C++ forbids declaration of ‘signal’ with no type
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:26: error: expected ‘;’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:27: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:27: error: ISO C++ forbids declaration of ‘signal’ with no type
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:27: error: expected ‘;’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp: In member function ‘void cvisual::gl_free_manager::connect(T)’:
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:12: error: there are no arguments to ‘on_shutdown’ that depend on a template parameter, so a declaration of ‘on_shutdown’ must be available
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:12: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp: In member function ‘void cvisual::gl_free_manager::free(T)’:
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:17: error: there are no arguments to ‘on_next_frame’ that depend on a template parameter, so a declaration of ‘on_next_frame’ must be available
/usr/local/vpython-wx-6.05/include/util/gl_free.hpp:17: error: there are no arguments to ‘on_shutdown’ that depend on a template parameter, so a declaration of ‘on_shutdown’ must be available
In file included from /usr/local/vpython-wx-6.05/include/renderable.hpp:12,
                 from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/util/texture.hpp: At global scope:
/usr/local/vpython-wx-6.05/include/util/texture.hpp:15: error: ‘boost’ has not been declared
In file included from /usr/local/vpython-wx-6.05/include/label.hpp:9,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/renderable.hpp:20: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/renderable.hpp:48: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/usr/local/vpython-wx-6.05/include/renderable.hpp:48: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp:113: error: ISO C++ forbids declaration of ‘vector’ with no type
/usr/local/vpython-wx-6.05/include/renderable.hpp:113: error: invalid use of ‘::’
/usr/local/vpython-wx-6.05/include/renderable.hpp:113: error: expected ‘;’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp:170: error: ‘shared_ptr’ has not been declared
/usr/local/vpython-wx-6.05/include/renderable.hpp:170: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp:171: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/usr/local/vpython-wx-6.05/include/renderable.hpp:171: error: ‘shared_ptr’ declared as a ‘virtual’ field
/usr/local/vpython-wx-6.05/include/renderable.hpp:171: error: expected ‘;’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp:181: error: ‘std::vector’ has not been declared
/usr/local/vpython-wx-6.05/include/renderable.hpp:181: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp:189: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/usr/local/vpython-wx-6.05/include/renderable.hpp:189: error: expected ‘;’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp:202: error: ISO C++ forbids declaration of ‘shared_ptr’ with no type
/usr/local/vpython-wx-6.05/include/renderable.hpp:202: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/local/vpython-wx-6.05/include/renderable.hpp: In member function ‘bool cvisual::z_comparator::operator()(int) const’:
/usr/local/vpython-wx-6.05/include/renderable.hpp:204: error: ‘lhs’ was not declared in this scope
/usr/local/vpython-wx-6.05/include/renderable.hpp:204: error: ‘rhs’ was not declared in this scope
In file included from /usr/local/vpython-wx-6.05/src/core/label.cpp:6:
/usr/local/vpython-wx-6.05/include/label.hpp: At global scope:
/usr/local/vpython-wx-6.05/include/label.hpp:19: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/label.hpp:19: error: ‘numeric’ is not a namespace-name
/usr/local/vpython-wx-6.05/include/label.hpp:19: error: expected namespace-name before ‘;’ token
/usr/local/vpython-wx-6.05/include/label.hpp:88: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/label.hpp:88: error: expected ‘,’ or ‘...’ before ‘x’
/usr/local/vpython-wx-6.05/include/label.hpp:89: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/label.hpp:89: error: ISO C++ forbids declaration of ‘object’ with no type
/usr/local/vpython-wx-6.05/include/label.hpp:89: error: expected ‘;’ before ‘get_primitive_object’
/usr/local/vpython-wx-6.05/include/label.hpp:92: error: ‘array’ has not been declared
/usr/local/vpython-wx-6.05/include/label.hpp:140: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/include/label.hpp:140: error: ISO C++ forbids declaration of ‘object’ with no type
/usr/local/vpython-wx-6.05/include/label.hpp:140: error: expected ‘;’ before ‘primitive_object’
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:4,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:53: error: ‘Py_intptr_t’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:54: error: ‘Py_uintptr_t’ does not name a type
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:4,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:847: error: ‘npy_uint16’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_common.h:848: error: ‘npy_half’ does not name a type
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:357: error: expected initializer before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:358: error: typedef ‘PyArray_SetItemFunc’ is initialized (use decltype instead)
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:358: error: ‘PyObject’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:358: error: expected primary-expression before ‘,’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:358: error: expected primary-expression before ‘void’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:358: error: expected primary-expression before ‘void’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:360: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:360: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:361: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:373: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:373: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:375: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:375: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:376: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:378: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:390: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:392: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:393: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:393: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:395: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:399: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:401: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:402: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:403: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:404: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:404: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:405: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:405: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:409: error: ISO C++ forbids declaration of ‘npy_intp’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:409: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:428: error: ISO C++ forbids declaration of ‘PyArray_GetItemFunc’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:428: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:429: error: ISO C++ forbids declaration of ‘PyArray_SetItemFunc’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:429: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:501: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:501: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:561: error: ‘PyObject_HEAD’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:597: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:597: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:602: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:602: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:609: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:609: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:620: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:620: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:635: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:637: error: expected ‘;’ before ‘char’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:641: error: ISO C++ forbids declaration of ‘npy_intp’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:641: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:646: error: ISO C++ forbids declaration of ‘npy_intp’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:646: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:665: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:665: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:671: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:671: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:695: error: ‘PyObject_HEAD’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:703: error: ‘PyObject_HEAD’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:706: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:726: error: ‘npy_int32’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:732: error: ‘npy_int32’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:735: error: ‘PyObject’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:962: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1039: error: ‘npy_intp’ has not been declared
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1042: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1043: error: expected ‘;’ before ‘int’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1044: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1045: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1046: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1047: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1048: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1049: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1054: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1055: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1056: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1194: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1195: error: expected ‘;’ before ‘int’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1196: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1197: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1199: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1248: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1254: error: expected ‘;’ before ‘int’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1256: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1258: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1260: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1278: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1280: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1280: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1299: error: ISO C++ forbids declaration of ‘PyObject_HEAD’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1304: error: expected ‘;’ before ‘int’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1305: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1306: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1307: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1308: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1309: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1310: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1315: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1316: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1317: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1323: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1326: error: ‘npy_intp’ does not name a type
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1361,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h: In function ‘int _PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject*)’:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:40: error: ‘npy_intp’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:40: error: expected ‘;’ before ‘i’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:42: error: ‘i’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:42: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘nd’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:43: error: ‘wb’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:43: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:43: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:43: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:43: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:43: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h: In function ‘int _PyArrayNeighborhoodIter_IncrCoord2D(PyArrayNeighborhoodIterObject*)’:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:55: error: ‘npy_intp’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:55: error: expected ‘;’ before ‘wb’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:57: error: ‘wb’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:57: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:57: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:57: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:57: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:57: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:58: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:58: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:58: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:58: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:58: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h: In function ‘int PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject*)’:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:71: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h: In function ‘int PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject*)’:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:82: error: ‘npy_intp’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:82: error: expected ‘;’ before ‘i’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:84: error: ‘i’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:84: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘nd’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:85: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:85: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘bounds’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/_neighborhood_iterator_imp.h:87: error: ‘struct PyArrayNeighborhoodIterObject’ has no member named ‘coordinates’
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h: At global scope:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1524: error: expected initializer before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1683: error: ‘npy_intp’ does not name a type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1716: error: ISO C++ forbids declaration of ‘npy_intp’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1716: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1721: error: ISO C++ forbids declaration of ‘npy_intp’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1721: error: expected ‘;’ before ‘*’ token
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1725: error: ISO C++ forbids declaration of ‘PyObject’ with no type
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1725: error: expected ‘;’ before ‘*’ token
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:26,
                 from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h: In function ‘int _import_array()’:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1612: error: ‘PyObject’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1612: error: ‘numpy’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1612: error: ‘PyImport_ImportModule’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1613: error: ‘c_api’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1616: error: ‘PyExc_ImportError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1616: error: ‘PyErr_SetString’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1619: error: ‘PyObject_GetAttrString’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1620: error: ‘Py_DECREF’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1622: error: ‘PyExc_AttributeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1622: error: ‘PyErr_SetString’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1634: error: ‘PyCObject_Check’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1635: error: ‘PyExc_RuntimeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1635: error: ‘PyErr_SetString’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1639: error: ‘PyCObject_AsVoidPtr’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1643: error: ‘PyExc_RuntimeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1643: error: ‘PyErr_SetString’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1649: error: ‘PyExc_RuntimeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1651: error: ‘PyErr_Format’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1655: error: ‘PyExc_RuntimeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1657: error: ‘PyErr_Format’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1667: error: ‘PyExc_RuntimeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1667: error: ‘PyErr_Format’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1678: error: ‘PyExc_RuntimeError’ was not declared in this scope
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1679: error: ‘PyErr_Format’ was not declared in this scope
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from /usr/local/vpython-wx-6.05/src/core/label.cpp:8:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘void PyArray_XDECREF_ERR(PyArrayObject*)’:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:168: error: ‘struct tagPyArrayObject_fields’ has no member named ‘base’
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:172: error: ‘Py_DECREF’ was not declared in this scope
/usr/local/vpython-wx-6.05/src/core/label.cpp: At global scope:
/usr/local/vpython-wx-6.05/src/core/label.cpp:14: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:17: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:17: error: ‘numeric’ is not a namespace-name
/usr/local/vpython-wx-6.05/src/core/label.cpp:17: error: expected namespace-name before ‘;’ token
/usr/local/vpython-wx-6.05/src/core/label.cpp:19: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:20: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:23: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:23: error: expected constructor, destructor, or type conversion before ‘py_get_bitmap’
/usr/local/vpython-wx-6.05/include/label.hpp: In constructor ‘cvisual::label::label()’:
/usr/local/vpython-wx-6.05/include/label.hpp:119: warning: ‘cvisual::label::font_size’ will be initialized after
/usr/local/vpython-wx-6.05/include/label.hpp:102: warning:   ‘bool cvisual::label::text_changed’
/usr/local/vpython-wx-6.05/src/core/label.cpp:25: warning:   when initialized here
/usr/local/vpython-wx-6.05/include/label.hpp:126: warning: ‘cvisual::label::opacity’ will be initialized after
/usr/local/vpython-wx-6.05/include/label.hpp:95: warning:   ‘GLuint cvisual::label::handle’
/usr/local/vpython-wx-6.05/src/core/label.cpp:25: warning:   when initialized here
/usr/local/vpython-wx-6.05/include/label.hpp: In copy constructor ‘cvisual::label::label(const cvisual::label&)’:
/usr/local/vpython-wx-6.05/include/label.hpp:119: warning: ‘cvisual::label::font_size’ will be initialized after
/usr/local/vpython-wx-6.05/include/label.hpp:102: warning:   ‘bool cvisual::label::text_changed’
/usr/local/vpython-wx-6.05/src/core/label.cpp:43: warning:   when initialized here
/usr/local/vpython-wx-6.05/include/label.hpp:126: warning: ‘cvisual::label::opacity’ will be initialized after
/usr/local/vpython-wx-6.05/include/label.hpp:95: warning:   ‘GLuint cvisual::label::handle’
/usr/local/vpython-wx-6.05/src/core/label.cpp:43: warning:   when initialized here
/usr/local/vpython-wx-6.05/src/core/label.cpp: In member function ‘void cvisual::label::set_handle(const cvisual::view&, unsigned int)’:
/usr/local/vpython-wx-6.05/src/core/label.cpp:327: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:330: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp: At global scope:
/usr/local/vpython-wx-6.05/src/core/label.cpp:340: error: variable or field ‘set_primitive_object’ declared void
/usr/local/vpython-wx-6.05/src/core/label.cpp:340: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:345: error: ‘boost’ has not been declared
/usr/local/vpython-wx-6.05/src/core/label.cpp:346: error: expected constructor, destructor, or type conversion before ‘label’
/usr/local/vpython-wx-6.05/src/core/label.cpp: In member function ‘void cvisual::label::get_bitmap()’:
/usr/local/vpython-wx-6.05/src/core/label.cpp:358: error: ‘py_get_bitmap’ was not declared in this scope
/usr/local/vpython-wx-6.05/src/core/label.cpp:358: error: ‘import’ was not declared in this scope
/usr/local/vpython-wx-6.05/src/core/label.cpp:361: error: ‘primitive_object’ was not declared in this scope
/usr/local/vpython-wx-6.05/src/core/label.cpp:361: error: ‘py_get_bitmap’ was not declared in this scope
/usr/local/vpython-wx-6.05/src/core/label.cpp: At global scope:
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: variable or field ‘set_bitmap’ declared void
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: ‘array’ was not declared in this scope
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: expected primary-expression before ‘int’
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: expected primary-expression before ‘int’
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: expected primary-expression before ‘int’
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: expected primary-expression before ‘int’
/usr/local/vpython-wx-6.05/src/core/label.cpp:365: error: expected primary-expression before ‘int’
/usr/local/vpython-wx-6.05/src/core/label.cpp:629: error: expected ‘}’ at end of input
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1609: warning: ‘int _import_array()’ defined but not used
error: command 'g++' failed with exit status 1

Steve Spicklemire

unread,
Aug 7, 2013, 2:40:16 PM8/7/13
to vpytho...@googlegroups.com, Steve Spicklemire
Did you install the required boost libraries?

sudo apt-get install libboost-python-dev
sudo apt-get install libboost-signals-dev

Based on these errors.. I'd guess that could be it.

thanks,
-steve

prem.i...@gmail.com

unread,
Aug 7, 2013, 3:02:15 PM8/7/13
to vpytho...@googlegroups.com, Steve Spicklemire
Hi Steve,

I am using Scientific Linux and I could not find libboost-{python,singals}-dev pacakges. 
Although I was able to obtain runtime Library boost-python & boost-singals.

Any other way I can get around this?
thanks,
Prem.

Steve Spicklemire

unread,
Aug 7, 2013, 3:07:33 PM8/7/13
to prem.i...@gmail.com, Steve Spicklemire, vpytho...@googlegroups.com
I'm not familiar with Scientific Linux.. but you'll need to '-dev' packages to compile. That's where all the headers are!

Anybody else out there using Scientific Linux?

-steve

prem.i...@gmail.com

unread,
Aug 7, 2013, 3:20:51 PM8/7/13
to vpytho...@googlegroups.com, prem.i...@gmail.com, Steve Spicklemire
Hi Steve,

I was able to locate devel libraries for boost that has all the header files. 
Basically I installed boost-devel  and boost-static, now it is building it...let's see how it goes...

thank you!!
Prem

prem.i...@gmail.com

unread,
Aug 7, 2013, 3:26:38 PM8/7/13
to vpytho...@googlegroups.com, prem.i...@gmail.com, Steve Spicklemire
Now failing for another library:

gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/vpython-wx-6.05/include -I/usr/local/vpython-wx-6.05/include/util -I/usr/local/vpython-wx-6.05/include/python -I/usr/local/vpython-wx-6.05/include/gtk2 -I/usr/include/glib-2.0 -I/usr/local/gtkglextmm/include/gtkglextmm-1.2 -I/usr/include/gtkglext-1.0 -I/usr/include/pixman-1 -I/usr/include/sigc++-2.0 -I/usr/include/gdkmm-2.4 -I/usr/include/gtkmm-2.4 -I/usr/include/atkmm-1.6 -I/usr/include/cairomm-1.0 -I/usr/lib64/gtkmm-2.4/include -I/usr/lib64/glibmm-2.4/include -I/usr/lib64/gtk-2.0/include -I/usr/lib64/glib-2.0/include -I/usr/lib64/pangomm-1.4/include -I/usr/include/atk-1.0 -I/usr/include/pangomm-1.4 -I/usr/include/libpng12 -I/usr/local/gtkglextmm/lib/gtkglextmm-1.2/include -I/usr/include/glibmm-2.4 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtkglext-1.0/include -I/usr/include/pango-1.0 -I/usr/include/giomm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/lib64/giomm-2.4/include -I/usr/include/cairo -I/usr/include/gtk-unix-print-2.0 -I/usr/include/freetype2 -I/usr/local/python-2.7.5/include/python2.7 -c /usr/local/vpython-wx-6.05/src/gtk2/get_proc_address.cpp -o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/gtk2/get_proc_address.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/label.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/display_kernel.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/ring.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/primitive.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/mouseobject.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/frame.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/box.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/renderable.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/cylinder.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/mouse_manager.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/cone.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/material.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/arrow.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/pyramid.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/axial.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/rectangular.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/sphere.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/ellipsoid.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/light.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/shader_program.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/displaylist.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/errors.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/vector.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/tmatrix.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/rgba.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/texture.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/gl_free.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/icososphere.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/gl_extensions.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/extent.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/atomic_queue.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/core/util/quadric.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/cvisualmodule.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/num_util.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/slice.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/arrayprim.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/wrap_display_kernel.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/extrusion.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/vector_array.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/curve.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/wrap_vector.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/wrap_rgba.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/convex.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/wrap_primitive.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/numeric_texture.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/points.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/faces.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/scalar_array.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/python/wrap_arrayobjects.o build/temp.linux-x86_64-2.7/usr/local/vpython-wx-6.05/src/gtk2/get_proc_address.o -lgtkmm-2.4 -lgmodule-2.0 -lICE -lglibmm-2.4 -lgdkglextmm-x11-1.2 -lfontconfig -lX11 -lgtkglext-x11-1.0 -latk-1.0 -lglib-2.0 -lgdkmm-2.4 -lcairo -lpango-1.0 -lXmu -lgtkglextmm-x11-1.2 -lGLU -latkmm-1.6 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lgtk-x11-2.0 -lpangocairo-1.0 -lgio-2.0 -lsigc-2.0 -lGL -lgiomm-2.4 -lfreetype -lpangomm-1.4 -lpangox-1.0 -lgobject-2.0 -lgdkglext-x11-1.0 -lcairomm-1.0 -lpangoft2-1.0 -lXt -lSM -lboost_python-mt-py27 -lboost_signals -o build/lib.linux-x86_64-2.7/visual_common/cvisual.so
/usr/bin/ld: cannot find -lgdkglextmm-x11-1.2
collect2: ld returned 1 exit status

Although I do have it in the ld.so.cahce

# ldconfig -v | grep libgd
ldconfig: /etc/ld.so.conf.d/kernel-2.6.32-358.6.2.el6.x86_64.conf:6: duplicate hwcap 1 nosegneg
        libgdkglextmm-x11-1.2.so.0 -> libgdkglextmm-x11-1.2.so.0.0.0
        libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.1800.9
# echo $LD_LIBRARY_PATH
/usr/local/wxPython-src-2.9.4.0/bld/lib:/usr/local/gtkglextmm/lib

Any thoughts ?

Bruce Sherwood

unread,
Aug 8, 2013, 3:43:36 PM8/8/13
to vpytho...@googlegroups.com
A quick question: Did you follow the instructions in the file INSTALL.txt concerning the library installs that need to be done before running "python2.7 setup.py build". Those installs are important to make sure that you get dev versions of them all. For example, it seems possible that you don't have the dev version of gdkglextmm-x11-1.2.
Reply all
Reply to author
Forward
0 new messages