nanogui: problem compiling flnx-0.17
Subject:
Re: [nanogui] problem compiling flnx-0.17
From:
Jason Kingan ####@####.####
Date:
7 Jan 2003 16:38:15 -0000
Message-Id: <200301070930.24969.jasonk@censoft.com>
Barbra,
Is appears that the libfltk.a was previously built using X as the windowing
system. The first part of your error log shows that it didn't try to build
libfltk, but instead jumped right into building fluid. When it linked, it
failed, looking for X windows symbols when it should be using nano-x.
Did you perhaps run configure and make before without the --with-microwin on
the command line?
In any case, I would do a "make distclean" from the top level of FLNX and redo
the configure - that should fix the problem.
Jason
On Tuesday 07 January 2003 01:49 am, Barbra Jane Santos wrote:
> Hi,
> I'm having problems on compiling FLNX-0.17.
> These are the steps i did as stated at the install file:
>
> 1. go to the directory of flnx which is located at /home/bjay/flnx-0.17
> 2. run ./configure --with-microwin=/home/bjay/microwin-0.89/src
> 3. type "make"
>
> These are the errors created:
>
> [bjay@Kalachuchi flnx-0.17]$ make
> === making src ===
> make[1]: Entering directory `/home/bjay/flnx-0.17/src'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/bjay/flnx-0.17/src'
> === making fluid ===
> make[1]: Entering directory `/home/bjay/flnx-0.17/fluid'
> c++ -o fluid Fl_Function_Type.o Fl_Menu_Type.o Fl_Group_Type.o
> Fl_Widget_Type.o Fl_Type.o Fl_Window_Type.o Fluid_Image.o code.o factory.o
> file.o fluid.o about_panel.o widget_panel.o alignment_panel.o
> function_panel.o gif.o -L../lib -lfltk -DNANO_X=1 -L/usr/local/lib
> -L/home/bjay/microwin-0.89/src//lib -lnano-X -lmwengine -lmwdrivers
> -lmwfonts -ljpeg -lm
> ../lib/libfltk.a(Fl.o): In function `Fl::flush(void)':
> Fl.o(.text+0x2a8): undefined reference to `XFlush'
> ../lib/libfltk.a(Fl.o): In function `Fl_Window::hide(void)':
> Fl.o(.text+0xd0d): undefined reference to `XDestroyRegion'
> Fl.o(.text+0xd23): undefined reference to `XDestroyWindow'
> ../lib/libfltk.a(Fl.o): In function `Fl_Window::handle(int)':
> Fl.o(.text+0xdc4): undefined reference to `XMapWindow'
> Fl.o(.text+0xddf): undefined reference to `XUnmapWindow'
> ../lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned char)':
> Fl.o(.text+0xebb): undefined reference to `XDestroyRegion'
> ../lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned char, int,
> int, int, int)':
> Fl.o(.text+0xfde): undefined reference to `XUnionRectWithRegion'
> Fl.o(.text+0xfff): undefined reference to `XDestroyRegion'
> ../lib/libfltk.a(Fl.o): In function `Fl_Window::flush(void)':
> Fl.o(.text+0x104c): undefined reference to `fl_clip_region(_XRegion *)'
> ../lib/libfltk.a(Fl_Bitmap.o): In function `Fl_Bitmap::draw(int, int, int,
> int, int, int)':
> Fl_Bitmap.o(.text+0xd0): undefined reference to `XCreateBitmapFromData'
> Fl_Bitmap.o(.text+0xf1): undefined reference to `XSetStipple'
> Fl_Bitmap.o(.text+0x120): undefined reference to `XSetTSOrigin'
> Fl_Bitmap.o(.text+0x136): undefined reference to `XSetFillStyle'
> Fl_Bitmap.o(.text+0x15c): undefined reference to `XFillRectangle'
> Fl_Bitmap.o(.text+0x172): undefined reference to `XSetFillStyle'
> ../lib/libfltk.a(Fl_Bitmap.o): In function `Fl_Bitmap::~Fl_Bitmap(void)':
> Fl_Bitmap.o(.text+0x1a1): undefined reference to `XFreePixmap'
> ../lib/libfltk.a(Fl_Double_Window.o): In function `can_xdbe(void)':
> Fl_Double_Window.o(.text+0x31): undefined reference to `XdbeQueryExtension'
> Fl_Double_Window.o(.text+0x6c): undefined reference to `XdbeGetVisualInfo'
> Fl_Double_Window.o(.text+0xbd): undefined reference to `XdbeFreeVisualInfo'
> ../lib/libfltk.a(Fl_Double_Window.o): In function
> `Fl_Double_Window::show(void)':
> Fl_Double_Window.o(.text+0xf7): undefined reference to
> `Fl_X::make_xid(Fl_Window *, XVisualInfo *, unsigned long)'
> ../lib/libfltk.a(Fl_Double_Window.o): In function
> `Fl_Double_Window::flush(int)':
> Fl_Double_Window.o(.text+0x15b): undefined reference to
> `XdbeAllocateBackBufferName'
> Fl_Double_Window.o(.text+0x18a): undefined reference to `XCreatePixmap'
> Fl_Double_Window.o(.text+0x1ca): undefined reference to `XDestroyRegion'
> Fl_Double_Window.o(.text+0x1e9): undefined reference to
> `fl_clip_region(_XRegion *)'
> Fl_Double_Window.o(.text+0x22d): undefined reference to `XdbeSwapBuffers'
> Fl_Double_Window.o(.text+0x256): undefined reference to
> `fl_clip_region(_XRegion *)'
> Fl_Double_Window.o(.text+0x27a): undefined reference to
> `fl_clip_region(_XRegion *)'
> Fl_Double_Window.o(.text+0x295): undefined reference to
> `fl_clip_region(_XRegion *)'
> Fl_Double_Window.o(.text+0x2ea): undefined reference to `XCopyArea'
> ../lib/libfltk.a(Fl_Double_Window.o): In function
> `Fl_Double_Window::resize(int, int, int, int)':
> Fl_Double_Window.o(.text+0x35c): undefined reference to `XFreePixmap'
> ../lib/libfltk.a(Fl_Double_Window.o): In function
> `Fl_Double_Window::hide(void)':
> Fl_Double_Window.o(.text+0x39f): undefined reference to `XFreePixmap'
> ../lib/libfltk.a(Fl_x.o): In function `fl_handle(GR_EVENT const &)':
> Fl_x.o(.text+0x4c4): undefined reference to `fl_find(unsigned int)'
> collect2: ld returned 1 exit status
> make[1]: *** [fluid] Error 1
> make[1]: Leaving directory `/home/bjay/flnx-0.17/fluid'
> === making test ===
> make[1]: Entering directory `/home/bjay/flnx-0.17/test'
> c++ -I.. -O2 -Wall -Wno-return-type -DNANO_X
> -I/home/bjay/microwin-0.89/src//include
> -DNANOXFOLDER='"/home/bjay/microwin-0.89/src//bin"' valuators.cxx -L../lib
> -lfltk -DNANO_X=1 -L/usr/local/lib -L/home/bjay/microwin-0.89/src//lib
> -lnano-X -lmwengine -lmwdrivers -lmwfonts -ljpeg -lm -o valuators
> ../lib/libfltk.a(Fl.o): In function `Fl::flush(void)':
> Fl.o(.text+0x2a8): undefined reference to `XFlush'
> ../lib/libfltk.a(Fl.o): In function `Fl_Window::hide(void)':
> Fl.o(.text+0xd0d): undefined reference to `XDestroyRegion'
> Fl.o(.text+0xd23): undefined reference to `XDestroyWindow'
> ../lib/libfltk.a(Fl.o): In function `Fl_Window::handle(int)':
> Fl.o(.text+0xdc4): undefined reference to `XMapWindow'
> Fl.o(.text+0xddf): undefined reference to `XUnmapWindow'
> ../lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned char)':
> Fl.o(.text+0xebb): undefined reference to `XDestroyRegion'
> ../lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned char, int,
> int, int, int)':
> Fl.o(.text+0xfde): undefined reference to `XUnionRectWithRegion'
> Fl.o(.text+0xfff): undefined reference to `XDestroyRegion'
> ../lib/libfltk.a(Fl.o): In function `Fl_Window::flush(void)':
> Fl.o(.text+0x104c): undefined reference to `fl_clip_region(_XRegion *)'
> ../lib/libfltk.a(Fl_Bitmap.o): In function `Fl_Bitmap::draw(int, int, int,
> int, int, int)':
> Fl_Bitmap.o(.text+0xd0): undefined reference to `XCreateBitmapFromData'
> Fl_Bitmap.o(.text+0xf1): undefined reference to `XSetStipple'
> Fl_Bitmap.o(.text+0x120): undefined reference to `XSetTSOrigin'
> Fl_Bitmap.o(.text+0x136): undefined reference to `XSetFillStyle'
> Fl_Bitmap.o(.text+0x15c): undefined reference to `XFillRectangle'
> Fl_Bitmap.o(.text+0x172): undefined reference to `XSetFillStyle'
> ../lib/libfltk.a(Fl_Bitmap.o): In function `Fl_Bitmap::~Fl_Bitmap(void)':
> Fl_Bitmap.o(.text+0x1a1): undefined reference to `XFreePixmap'
> ../lib/libfltk.a(Fl_x.o): In function `fl_handle(GR_EVENT const &)':
> Fl_x.o(.text+0x4c4): undefined reference to `fl_find(unsigned int)'
> collect2: ld returned 1 exit status
> make[1]: *** [valuators] Error 1
> make[1]: Leaving directory `/home/bjay/flnx-0.17/test'
> make: *** [all] Error 2
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####