Open oklyf opened 9 years ago
I compiled the qglviewer source code and got the same problem that "error: invalid use of incomplete type ‘struct qglviewer::ManipulatedFrame’" .try sudo apt-get install libqglviewer-dev .I solve the problem.
I've got the same problem, NOTE that when try sudo apt-get install libqglviewer-dev
as @better629 said, I have to uninstall the old qglviewer via make uninstall
. Then build succeed.
hi, i am a newbie. i followed the installtion course to install the fastfusion.when i run make,there were several errors as follows:
[ 10%] Built target geometryfusion_mipmap_cpu [ 15%] Built target camerautils [ 40%] Built target auxiliary [ 80%] Built target geometryfusion_aos [ 85%] Building CXX object src/CMakeFiles/onlinefusion.dir/onlinefusionviewer.cpp.o In file included from /home/exbot/fastfusion/src/fusion/treeandbrick.hpp:48:0, from /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:15, from /home/exbot/fastfusion/src/onlinefusionviewer.hpp:14, from /home/exbot/fastfusion/src/onlinefusionviewer.cpp:8: /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:54:2: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:85:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:86:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:86:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:87:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:87:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:88:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:88:4: warning: this decimal constant is unsigned only in ISO C90 [enabled by default] In file included from /home/exbot/fastfusion/src/fusion/treeandbrick.hpp:48:0, from /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:15, from /home/exbot/fastfusion/src/onlinefusionviewer.hpp:14, from /home/exbot/fastfusion/src/onlinefusionviewer.cpp:8: /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp: In member function ‘void MCNSplit::print() const’: /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:406:65: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:412:65: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:418:67: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:427:65: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:434:67: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘unsigned int’ [-Wformat] /home/exbot/fastfusion/src/fusion/treeandbrick_incremental.hpp:439:52: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat] In file included from /home/exbot/fastfusion/src/onlinefusionviewer.hpp:14:0, from /home/exbot/fastfusion/src/onlinefusionviewer.cpp:8: /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp: In function ‘std::string getNameD(size_t)’: /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:77:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat] /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp: In function ‘std::string getNameR(size_t)’: /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:82:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat] /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp: In function ‘std::string getNameG(size_t)’: /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:87:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat] /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp: In function ‘std::string getNameB(size_t)’: /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:92:40: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat] /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp: In function ‘std::string getNameRGB(size_t)’: /home/exbot/fastfusion/src/fusion/geometryfusion_mipmap_cpu.hpp:97:38: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat] /home/exbot/fastfusion/src/onlinefusionviewer.cpp: In member function ‘virtual void OnlineFusionViewerManipulated::init()’: /home/exbot/fastfusion/src/onlinefusionviewer.cpp:463:55: error: invalid use of incomplete type ‘struct qglviewer::ManipulatedFrame’ /usr/include/QGLViewer/qglviewer.h:36:7: error: forward declaration of ‘struct qglviewer::ManipulatedFrame’ /home/exbot/fastfusion/src/onlinefusionviewer.cpp: In member function ‘void OnlineFusionViewerManipulated::setScenePosition(CameraInfo)’: /home/exbot/fastfusion/src/onlinefusionviewer.cpp:533:20: error: invalid use of incomplete type ‘struct qglviewer::ManipulatedFrame’ /usr/include/QGLViewer/qglviewer.h:36:7: error: forward declaration of ‘struct qglviewer::ManipulatedFrame’ /home/exbot/fastfusion/src/onlinefusionviewer.cpp:534:20: error: invalid use of incomplete type ‘struct qglviewer::ManipulatedFrame’ /usr/include/QGLViewer/qglviewer.h:36:7: error: forward declaration of ‘struct qglviewer::ManipulatedFrame’ /home/exbot/fastfusion/src/onlinefusionviewer.cpp: In member function ‘virtual void OnlineFusionViewerManipulated::draw()’: /home/exbot/fastfusion/src/onlinefusionviewer.cpp:557:35: error: invalid use of incomplete type ‘struct qglviewer::ManipulatedFrame’ /usr/include/QGLViewer/qglviewer.h:36:7: error: forward declaration of ‘struct qglviewer::ManipulatedFrame’ /home/exbot/fastfusion/src/onlinefusionviewer.cpp: In member function ‘virtual void OnlineFusionViewerManipulated::fastDraw()’: /home/exbot/fastfusion/src/onlinefusionviewer.cpp:587:35: error: invalid use of incomplete type ‘struct qglviewer::ManipulatedFrame’ /usr/include/QGLViewer/qglviewer.h:36:7: error: forward declaration of ‘struct qglviewer::ManipulatedFrame’ /home/exbot/fastfusion/src/onlinefusionviewer.cpp: In function ‘void fusionWrapper(std::vectorstd::vector<std::basic_string >, std::vectorstd::vector<std::basicstring >, std::vectorstd::vector, FusionParameter, volatile long int , volatile long int, volatile bool, volatile bool, volatile bool)’:
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:981:45: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:981:45: warning: format ‘%li’ expects argument of type ‘long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:981:45: warning: format ‘%li’ expects argument of type ‘long int’, but argument 5 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:1041:65: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:1047:65: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp: In member function ‘void OnlineFusionViewerManipulated::updateSlot()’:
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:1173:48: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:1173:48: warning: format ‘%li’ expects argument of type ‘long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat]
/home/exbot/fastfusion/src/onlinefusionviewer.cpp:1217:98: warning: format ‘%li’ expects argument of type ‘long int’, but argument 4 has type ‘std::vectorstd::vector<std::basic_string >::sizetype {aka unsigned int}’ [-Wformat]
make[2]: ** [src/CMakeFiles/onlinefusion.dir/onlinefusionviewer.cpp.o] Error 1
make[1]: * [src/CMakeFiles/onlinefusion.dir/all] Error 2
make: * [all] Error 2
have someone had this problem? i need help! thank you very much ! ubuntu 12.04 and i had installed libQGLViewer-2.5.3.