help > Vaa3D building error under ubuntu 10.10
Aug 3, 2012  02:08 PM | Yinan Wan
Vaa3D building error under ubuntu 10.10
Hi,

I got this problem building the vaa3d project under a 32-bit ubuntu
10.10.  Should I build the project simply by running "build.linux"? Or should I do anything special for ubuntu?

Here's the error message:

 g++
-c -pipe -DWITH_NONAMESPACES -DWITH_PURE_VIRTUAL -O2 -D_REENTRANT -w
-D__NAWEBSERVICE__ -D_ALLOW_WORKMODE_MENU_ -DQT_NO_DEBUG -DQT_SVG_LIB
-DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/local/Trolltech/Qt-4.7.
3/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.7.3/include/QtCore -I/usr/local/Trolltech/Qt-4.7.3/include/QtNetwork -I/usr/local/Trolltech/Qt-4.7.3/include/QtGui -I/usr/local/Trolltech/Qt-4.7.3/include/QtOpenGL -I/usr/local/Trolltech/Qt-4.7.3/include/QtXml -I/usr/local/Trolltech/Qt-4.7.3/include/QtSvg -I/usr/local/Trolltech/Qt-4.7.3/include -I. -I../common_lib/include -I/usr/local/Trolltech/Qt-4.7.3/demos/shared
-I/usr/lib64/qt4/demos/shared -I../common_lib/include
-I/usr/X11R6/include -I. -I. -o NaMainWindow.o ../neuron_annotator/gui/NaMainWindow.cpp

In file included from /usr/include/c++/4.4/vector:65,
                 from /usr/local/Trolltech/Qt-4.7.3/include/QtCore/qvector.h:52,
                 from /usr/local/Trolltech/Qt-4.7.3/include/QtCore/qdebug.h:52,

                 from /usr/local/Trolltech/Qt-4.7.3/include/QtCore/QDebug:1,
                 from ../neuron_annotator/gui/NaMainWindow.cpp:10:
/usr/include/c++/4.4/bits/stl_vector.h: In member function ‘void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer,
_Integer, std::__true_type) [with _Integer = int, _Tp =
OpenFileAction*, _Alloc = std::allocator]’:

/usr/include/c++/4.4/bits/stl_vector.h:303:   instantiated from ‘std::vector<_Tp, _Alloc>::vector(_InputIterator,
_InputIterator, const _Alloc&) [with _InputIterator = int, _Tp =
OpenFileAction*, _Alloc = std::allocator]’

../neuron_annotator/gui/NaMainWindow.cpp:87:   instantiated from here
/usr/include/c++/4.4/bits/stl_vector.h:991: error: invalid conversion from ‘int’ to ‘OpenFileAction*’
/usr/include/c++/4.4/bits/stl_vector.h:991: error:   initializing argument 2 of ‘void std::vector<_Tp, _Alloc>::_M_fill_initialize(size_t, const _Tp&) [with _Tp = OpenFileAction*, _Alloc = std::allocator]’

make: *** [NaMainWindow.o] Error 1

Any idea about what's going on? I went back to v2.724 (svn r2382) and this error doesn't happen.

Thanks,
Yinan

Threaded View

TitleAuthorDate
Vaa3D building error under ubuntu 10.10
Yinan Wan Aug 3, 2012
Christopher Bruns Aug 3, 2012
Yinan Wan Aug 3, 2012