Hi Yun,

If you really want to use Stage 3.0.1, rather than using Stage 2.1.0 as Khawaja suggested, let me know what happens when you type the following command on your terminal:
fltk-config --cflags --libs

If the include folder and the library path appear properly, then FLTK is installed (and I suppose it is installed as you've mentioned you've done so).
What was the output of the 'cmake .' command? Did it find the FLTK library?
It seems your libraries are somewhere else but the default system path.

Cheers,

Murilo

2008/9/26 Khawaja Shams <ksshams@gmail.com>
Hi Peng, 
   I had the exact same issue. If you go back a version of Stage (2.1.0), it should be able to link to the FLTK libraries.  Good Luck.

Regards,
Khawaja

On Wed, Sep 24, 2008 at 10:43 PM, Peng Yun <pengyunhit@gmail.com> wrote:
hello,

I have installed all the needed components such as
  • FLTK 1.1.9
  • OpenGL
  • GLib 2
  • libpng
  • ltdl (Libtool)
But when I run make, errors come out as

Linking CXX executable stage
libstage.so.3.0.1: undefined reference to `gl_font(int, int)'
libstage.so.3.0.1: undefined reference to `Fl::e_number'
libstage.so.3.0.1: undefined reference to `Fl_Group::begin()'
libstage.so.3.0.1: undefined reference to `Fl_Text_Buffer::insert(int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Window::size_range_()'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::show()'
libstage.so.3.0.1: undefined reference to `vtable for Fl_Gl_Window'
libstage.so.3.0.1: undefined reference to `Fl_Widget::label(char const*)'
libstage.so.3.0.1: undefined reference to `vtable for Fl_Menu_Bar'
libstage.so.3.0.1: undefined reference to `Fl_File_Chooser::shown()'
libstage.so.3.0.1: undefined reference to `Fl_Text_Buffer::Fl_Text_Buffer(int)'
libstage.so.3.0.1: undefined reference to `Fl_Group::find(Fl_Widget const*) const'
libstage.so.3.0.1: undefined reference to `typeinfo for Fl_Window'
libstage.so.3.0.1: undefined reference to `Fl_Widget::window() const'
libstage.so.3.0.1: undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::flush()'
libstage.so.3.0.1: undefined reference to `Fl_Window::handle(int)'
libstage.so.3.0.1: undefined reference to `Fl_Text_Display::Fl_Text_Display(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `vtable for Fl_Box'
libstage.so.3.0.1: undefined reference to `Fl_File_Chooser::ok_label(char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Shared_Image::release()'
libstage.so.3.0.1: undefined reference to `Fl::repeat_timeout(double, void (*)(void*), void*)'
libstage.so.3.0.1: undefined reference to `Fl_File_Chooser::~Fl_File_Chooser()'
libstage.so.3.0.1: undefined reference to `gl_width(char const*)'
libstage.so.3.0.1: undefined reference to `Fl::e_x'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::draw_overlay()'
libstage.so.3.0.1: undefined reference to `Fl_Widget::Fl_Widget(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl::e_keysym'
libstage.so.3.0.1: undefined reference to `Fl_Button::value(int)'
libstage.so.3.0.1: undefined reference to `Fl_Window::~Fl_Window()'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::invalidate()'
libstage.so.3.0.1: undefined reference to `Fl_Widget::redraw()'
libstage.so.3.0.1: undefined reference to `fl_alert(char const*, ...)'
libstage.so.3.0.1: undefined reference to `fl_old_shortcut(char const*)'
libstage.so.3.0.1: undefined reference to `Fl::delete_widget(Fl_Widget*)'
libstage.so.3.0.1: undefined reference to `Fl_Check_Button::Fl_Check_Button(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Text_Buffer::~Fl_Text_Buffer()'
libstage.so.3.0.1: undefined reference to `Fl_Shared_Image::get(char const*, int, int)'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::resize(int, int, int, int)'
libstage.so.3.0.1: undefined reference to `Fl_Window::hide()'
libstage.so.3.0.1: undefined reference to `fl_register_images()'
libstage.so.3.0.1: undefined reference to `gl_draw(char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Group::end()'
libstage.so.3.0.1: undefined reference to `Fl_Window::Fl_Window(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_PNG_Image::Fl_PNG_Image(char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Scroll::Fl_Scroll(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Window::Fl_Window(int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::hide()'
libstage.so.3.0.1: undefined reference to `Fl_Widget::default_callback(Fl_Widget*, void*)'
libstage.so.3.0.1: undefined reference to `Fl_File_Chooser::value(int)'
libstage.so.3.0.1: undefined reference to `Fl::wait()'
libstage.so.3.0.1: undefined reference to `Fl::e_y'
libstage.so.3.0.1: undefined reference to `Fl::check()'
libstage.so.3.0.1: undefined reference to `Fl_Text_Buffer::text(char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Menu_::add(char const*, int, void (*)(Fl_Widget*, void*), void*, int)'
libstage.so.3.0.1: undefined reference to `Fl_Window::draw()'
libstage.so.3.0.1: undefined reference to `Fl_Window::flush()'
libstage.so.3.0.1: undefined reference to `Fl_Scroll::clear()'
libstage.so.3.0.1: undefined reference to `typeinfo for Fl_Gl_Window'
libstage.so.3.0.1: undefined reference to `Fl_Window::show()'
libstage.so.3.0.1: undefined reference to `Fl_Text_Display::buffer(Fl_Text_Buffer*)'
libstage.so.3.0.1: undefined reference to `Fl_File_Chooser::show()'
libstage.so.3.0.1: undefined reference to `Fl_Window::label(char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::~Fl_Gl_Window()'
libstage.so.3.0.1: undefined reference to `Fl::e_state'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::init()'
libstage.so.3.0.1: undefined reference to `Fl_Menu_::Fl_Menu_(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl::e_dy'
libstage.so.3.0.1: undefined reference to `Fl::add_timeout(double, void (*)(void*), void*)'
libstage.so.3.0.1: undefined reference to `vtable for Fl_Return_Button'
libstage.so.3.0.1: undefined reference to `Fl_Gl_Window::make_current()'
libstage.so.3.0.1: undefined reference to `Fl_Window::Fl_Window(int, int, char const*)'
libstage.so.3.0.1: undefined reference to `gl_height()'
libstage.so.3.0.1: undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_File_Chooser::Fl_File_Chooser(char const*, char const*, int, char const*)'
libstage.so.3.0.1: undefined reference to `Fl_Window::resize(int, int, int, int)'
libstage.so.3.0.1: undefined reference to `fl_choice(char const*, char const*, char const*, char const*, ...)'
collect2: ld return 1
make[2]: *** [libstage/stage] error 1
make[1]: *** [libstage/CMakeFiles/stagebinary.dir/all] error 2
make: *** [all] error 2


I think it may be because stage can not find the fltk. I have searched a lot on google for this problem, but it still not work. I really need your help. Thank you very much.


Yun Peng


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users