From: Raul C. <rau...@ho...> - 2009-09-28 16:19:37
|
Hi Jason, try freeimage>=3.10.0 > To: pla...@li... > From: jas...@cn... > Date: Fri, 25 Sep 2009 12:04:34 -0400 > Subject: [PlayerStage-Gazebo] Gazebo build problems... > > Hello all, > > I originally posted this question to the playerstage-users list > because I was under the impression that playerstage-gazebo was for > gazebo developer questions, and this is more of an installation problem. > > I've seen similar messages posted to the playerstage-users list, and > have tried the various solutions provided but am still unable to > successfully make Gazebo from source. Can anyone provide insight > into why I am receiving so many "undefined reference" errors? The > exact output, when I try to make Gazebo from source, is reproduced > below: > > linux:~/Desktop/gazebo-0.9.0/build> cmake ../ > -- Gazebo version 0.9.0 > -- ====== Finding 3rd Party Packages ====== > -- Operating system is Linux > -- checking for module 'freeimage>=3.10.0' > -- package 'freeimage>=3.10.0' not found > -- freeimage.pc not found, trying freeimage_include_dir and > freeimage_library_dir flags. > -- Looking for FreeImage.h - found > -- Looking for libfreeimage - found > -- checking for module 'websim' > -- package 'websim' not found > -- Warning: Websim not found. Webgazebo will not be built > -- Boost Include Path: /usr/include > -- Boost Library Path: /usr/lib > -- Boost Libraries: ;/usr/lib/libboost_thread-mt.so;/usr/lib/ > libboost_signals-mt.so > -- Looking for avformat.h - found > -- Looking for avcodec.h - found > -- Looking for event.h - not found > -- Warning: webgazebo will not be built > -- Looking for ltdl.h - found > -- Looking for libltdl - found > -- ---------------------------------------- > -- Cmake C Flags: > -- Build Type: RELEASE > -- Install path: /usr/local > -- Configuring done > -- Generating done > -- Build files have been written to: ~/Desktop/gazebo-0.9.0/build > > linux:~/Desktop/gazebo-0.9.0/build> make > [ 5%] Built target gazeboshm > [ 77%] Built target gazebo_server > [ 83%] Built target gazebo_gui-shared > [ 84%] Built target gazebo_av-shared > Linking CXX executable gazebo > gui/libgazebo_gui.so.0.9.0: undefined reference to `glRasterPos2f' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glBegin' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glDisable' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glViewport' > libgazebo_server.so.0.9.0: undefined reference to `FreeImage_Rescale' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `avcodec_register_all' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `avcodec_find_decoder' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glRasterPos2i' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glPixelStorei' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glCallLists' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glXUseXFont' > libgazebo_server.so.0.9.0: undefined reference to `glXDestroyContext' > libgazebo_server.so.0.9.0: undefined reference to > `FreeImage_ConvertFromRawBits' > libgazebo_server.so.0.9.0: undefined reference to `glXMakeCurrent' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glDrawPixels' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glReadBuffer' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glGetIntegerv' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glColor3ub' > audio_video/libgazebo_av.so.0.9.0: undefined reference to `avcodec_init' > libgazebo_server.so.0.9.0: undefined reference to `glXCreateContext' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `av_open_input_file' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glVertex2i' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glLoadIdentity' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glEnd' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glCopyPixels' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glListBase' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glDrawBuffer' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glFlush' > libgazebo_server.so.0.9.0: undefined reference to `glXChooseVisual' > audio_video/libgazebo_av.so.0.9.0: undefined reference to `avcodec_open' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glGenLists' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `av_read_frame' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `av_find_stream_info' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `avcodec_decode_audio2' > audio_video/libgazebo_av.so.0.9.0: undefined reference to > `av_register_all' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glXSwapBuffers' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glOrtho' > gui/libgazebo_gui.so.0.9.0: undefined reference to `glDeleteLists' > collect2: ld returned 1 exit status > make[2]: *** [server/gazebo] Error 1 > make[1]: *** [server/CMakeFiles/gazebo-exec.dir/all] Error 2 > make: *** [all] Error 2 > > I then downloaded Gazebo revision 8260 from the SVN head and followed > the instructions in the included "README" file, and modified a c++ > command by including "-lGL", which seemed to resolve the "gl" errors > I was seeing. I'm still seeing undefined references, in this case to > "FreeImage_Rescale" and "FreeImage_ConvertFromRawBits": > libgazebo_server.so.0.9.0: undefined reference to 'FreeImage_Rescale' > libgazebo_server.so.0.9.0: undefined reference to > 'FreeImage_ConvertFromRawBits' > > I installed freeimage 3.1.2 from source. Has anyone seen similar > errors or know how to resolve this? Thanks for your help. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Playerstage-gazebo mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo _________________________________________________________________ Nuevo Windows Live, un mundo lleno de posibilidades. Descúbrelo. http://www.microsoft.com/windows/windowslive/default.aspx |