From: Richard V. <rtv...@gm...> - 2009-11-25 21:33:56
|
Make sure to remove your CMakeCache.txt and run cmake again after installing more dev packages. - rtv On Wed, Nov 25, 2009 at 1:22 PM, Jeff Donner <jef...@gm...> wrote: > FWIW I built stage 3.2.2 last night on Kubuntu 9.10, with GCC 4.4.2 > (most recent), and had no problem either with X's 'Region' interfering > with stage's, or FLTK. Sambit, it may be a configuration issue, > perhaps reinstall some your video drivers (?) or at least, their X > development packages, ie GL-dev. And, FLTK-dev, and the other > dependencies. You do have -dev versions of everything, right? I > suppose it wouldn't compile if you didn't but, it just feels to me > like this is a configuration thing. I believe all of stage 3.2.2 > source's dependencies can be met with regular Ubuntu installs, no need > to install eg FLTK by hand. Could that be what you're doing, you've > installed some of the dependencies by compiling and installing them > yourself? If that's the case you'll need to work harder at configuring > the stage build, pointing it at the right places. > > Also, do you use 'ccmake' to configure, and from a separate directory? > > eg > > tar zxvf stage.blah.tgz # or whatever > # makes directory stage-3.2.2 (or whatever) > > mkdir mkstage > cd mkstage > ccmake path/to/stage-3.2.2 > # fiddle with config > make > > ? > > (get 'ccmake' (from ubuntu packages) if you don't already have it, > it's very nice, it does the 'cmake' visually.) > > At any rate it just seems like something isn't clean somewhere; I > didn't have to do any special editing or tweaking for stage-3.2.2 to > compile and link just fine. > > > On Wed, Nov 25, 2009 at 1:37 PM, Rich Mattes <jp...@gm...> wrote: >> Which distribution are you using? Is there an fltk-dev or fltk-devel package that you're missing? >> >> -----Original Message----- >> From: bsambit [mailto:sam...@ya...] >> Sent: Wednesday, November 25, 2009 12:08 PM >> To: pla...@li... >> Subject: Re: [Playerstage-users] Problem compiling Stage 3.2.2 >> >> >> >> Hello, >> I fixed the earlier problem by changing Region to Std::Region. Now I am >> having different problem: my understanding is the FLTK libraries are not >> linking (I have installed FLTK 1.3 installed). Here is the error output: >> Linking CXX executable stage >> CMakeFiles/stagebinary.dir/main.o: In function `main': >> main.cc:(.text+0x392): undefined reference to `Fl::run()' >> libstage.so.3.2.2: undefined reference to `gl_font(int, int)' >> libstage.so.3.2.2: undefined reference to `Fl::e_number' >> libstage.so.3.2.2: undefined reference to `Fl_Group::begin()' >> libstage.so.3.2.2: undefined reference to `Fl_Text_Buffer::insert(int, char >> const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::size_range_()' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::show()' >> libstage.so.3.2.2: undefined reference to `vtable for Fl_Gl_Window' >> libstage.so.3.2.2: undefined reference to `Fl_Widget::label(char const*)' >> libstage.so.3.2.2: undefined reference to `vtable for Fl_Menu_Bar' >> libstage.so.3.2.2: undefined reference to `Fl_File_Chooser::shown()' >> libstage.so.3.2.2: undefined reference to `Fl_Group::find(Fl_Widget const*) >> const' >> libstage.so.3.2.2: undefined reference to `typeinfo for Fl_Window' >> libstage.so.3.2.2: undefined reference to `Fl_Widget::window() const' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::flush()' >> libstage.so.3.2.2: undefined reference to >> `Fl_Text_Buffer::Fl_Text_Buffer(int, int)' >> libstage.so.3.2.2: undefined reference to `Fl::add_idle(void (*)(void*), >> void*)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::handle(int)' >> libstage.so.3.2.2: undefined reference to >> `Fl_Text_Display::Fl_Text_Display(int, int, int, int, char const*)' >> libstage.so.3.2.2: undefined reference to `vtable for Fl_Box' >> libstage.so.3.2.2: undefined reference to `Fl_File_Chooser::ok_label(char >> const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Shared_Image::release()' >> libstage.so.3.2.2: undefined reference to `gl_draw(char const*, int, int, >> int, int, unsigned int)' >> libstage.so.3.2.2: undefined reference to `Fl::repeat_timeout(double, void >> (*)(void*), void*)' >> libstage.so.3.2.2: undefined reference to >> `Fl_File_Chooser::~Fl_File_Chooser()' >> libstage.so.3.2.2: undefined reference to `gl_width(char const*)' >> libstage.so.3.2.2: undefined reference to `Fl::e_x' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::draw_overlay()' >> libstage.so.3.2.2: undefined reference to `Fl_Widget::Fl_Widget(int, int, >> int, int, char const*)' >> libstage.so.3.2.2: undefined reference to `Fl::e_keysym' >> libstage.so.3.2.2: undefined reference to `Fl_Button::value(int)' >> libstage.so.3.2.2: undefined reference to `Fl::scheme(char const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::~Fl_Window()' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::invalidate()' >> libstage.so.3.2.2: undefined reference to `Fl_Widget::redraw()' >> libstage.so.3.2.2: undefined reference to `fl_alert(char const*, ...)' >> libstage.so.3.2.2: undefined reference to `fl_old_shortcut(char const*)' >> libstage.so.3.2.2: undefined reference to `Fl::delete_widget(Fl_Widget*)' >> libstage.so.3.2.2: undefined reference to >> `Fl_Check_Button::Fl_Check_Button(int, int, int, int, char const*)' >> libstage.so.3.2.2: undefined reference to >> `Fl_Text_Buffer::~Fl_Text_Buffer()' >> libstage.so.3.2.2: undefined reference to `Fl_Shared_Image::get(char const*, >> int, int)' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::resize(int, int, >> int, int)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::hide()' >> libstage.so.3.2.2: undefined reference to `fl_register_images()' >> libstage.so.3.2.2: undefined reference to `gl_draw(char const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Group::end()' >> libstage.so.3.2.2: undefined reference to `Fl_Window::Fl_Window(int, int, >> int, int, char const*)' >> libstage.so.3.2.2: undefined reference to `Fl_PNG_Image::Fl_PNG_Image(char >> const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Scroll::Fl_Scroll(int, int, >> int, int, char const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::Fl_Window(int, int, >> char const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::hide()' >> libstage.so.3.2.2: undefined reference to `Fl_File_Chooser::value(int)' >> libstage.so.3.2.2: undefined reference to `Fl::wait()' >> libstage.so.3.2.2: undefined reference to `Fl::e_y' >> libstage.so.3.2.2: undefined reference to `Fl::check()' >> libstage.so.3.2.2: undefined reference to `Fl_Text_Buffer::text(char >> const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Menu_::add(char const*, int, >> void (*)(Fl_Widget*, void*), void*, int)' >> libstage.so.3.2.2: undefined reference to `Fl::remove_timeout(void >> (*)(void*), void*)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::draw()' >> libstage.so.3.2.2: undefined reference to `Fl_Window::flush()' >> libstage.so.3.2.2: undefined reference to `Fl_Scroll::clear()' >> libstage.so.3.2.2: undefined reference to `typeinfo for Fl_Gl_Window' >> libstage.so.3.2.2: undefined reference to `Fl_Window::show()' >> libstage.so.3.2.2: undefined reference to >> `Fl_Text_Display::buffer(Fl_Text_Buffer*)' >> libstage.so.3.2.2: undefined reference to `Fl_File_Chooser::show()' >> libstage.so.3.2.2: undefined reference to `Fl_Menu_::global()' >> libstage.so.3.2.2: undefined reference to `Fl_Window::label(char const*)' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::~Fl_Gl_Window()' >> libstage.so.3.2.2: undefined reference to `Fl::e_state' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::init()' >> libstage.so.3.2.2: undefined reference to `Fl_Menu_::Fl_Menu_(int, int, int, >> int, char const*)' >> libstage.so.3.2.2: undefined reference to `Fl::e_dy' >> libstage.so.3.2.2: undefined reference to >> `Fl_Widget::do_callback(Fl_Widget*, void*)' >> libstage.so.3.2.2: undefined reference to `Fl::add_timeout(double, void >> (*)(void*), void*)' >> libstage.so.3.2.2: undefined reference to `vtable for Fl_Return_Button' >> libstage.so.3.2.2: undefined reference to `Fl_Gl_Window::make_current()' >> libstage.so.3.2.2: undefined reference to `Fl_Window::Fl_Window(int, int, >> char const*)' >> libstage.so.3.2.2: undefined reference to `fl_height()' >> libstage.so.3.2.2: undefined reference to `gl_height()' >> libstage.so.3.2.2: undefined reference to `Fl_Button::Fl_Button(int, int, >> int, int, char const*)' >> libstage.so.3.2.2: undefined reference to >> `Fl_File_Chooser::Fl_File_Chooser(char const*, char const*, int, char >> const*)' >> libstage.so.3.2.2: undefined reference to `Fl::remove_idle(void (*)(void*), >> void*)' >> libstage.so.3.2.2: undefined reference to `Fl_Window::resize(int, int, int, >> int)' >> libstage.so.3.2.2: undefined reference to `fl_choice(char const*, char >> const*, char const*, char const*, ...)' >> collect2: ld returned 1 exit status >> make[2]: *** [libstage/stage] Error 1 >> make[1]: *** [libstage/CMakeFiles/stagebinary.dir/all] Error 2 >> make: *** [all] Error 2 >> >> >> bsambit wrote: >>> >>> Hello, >>> I am new to Player / Stage and I am hoping someone will be able to help me >>> with the problem I am having. I have installed Player successfully and now >>> I am trying to compile Stage on Ubuntu 9.10 after reading the install >>> notes and installing autoconf, automake, libtool, xorg-dev, libglut3-dev >>> and then FLTK 1.3. When I make I get the following compilation error for >>> Stage 3.2.2 (copy-paste): >>> >>> [ 1%] Building CXX object libstage/CMakeFiles/stage.dir/region.o >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:10: error: >>> reference to ‘Region’ is ambiguous >>> /usr/include/X11/Xutil.h:267: error: candidates are: typedef struct >>> _XRegion* Region >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.hh:62: error: >>> class Stg::Region >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:10: error: ISO >>> C++ forbids declaration of ‘Region’ with no type >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc: In function >>> ‘int Region(Stg::SuperRegion*)’: >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:10: error: >>> ‘int Region(Stg::SuperRegion*)’ redeclared as different kind of symbol >>> /usr/include/X11/Xutil.h:267: error: previous declaration of ‘typedef >>> struct _XRegion* Region’ >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:11: error: >>> only constructors take base initializers >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:15: warning: >>> no return statement in function returning non-void >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc: At global >>> scope: >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:17: error: >>> reference to ‘Region’ is ambiguous >>> /usr/include/X11/Xutil.h:267: error: candidates are: typedef struct >>> _XRegion* Region >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.hh:62: error: >>> class Stg::Region >>> /home/robot/Downloads/Stage-3.2.2-Source/libstage/region.cc:17: error: >>> expected constructor, destructor, or type conversion before ‘::’ token >>> make[2]: *** [libstage/CMakeFiles/stage.dir/region.o] Error 1 >>> make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2 >>> make: *** [all] Error 2 >>> >>> >>> Any help is highly appreciated. >>> >>> Sambit. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > -- Richard Vaughan Autonomy Lab / Computing Science / Simon Fraser University |