[lazarus] Compile with fpc1.1

Peter Vreman peter at freepascal.org
Wed Apr 16 09:30:36 EDT 2003


At 12:53 16-4-2003, you wrote:
>Hi all,
>
>I compiled lazarus with: make clean all OPT="-dNoGdkPixBufLib -dInterbase
>-dNEW1_1"
>that produce the following error msg:
>
>make --assume-new=lazarus.pp lazarus
>make[1]: Entering directory `/home/blgoeris/src/lazarus'
>/usr/local/bin/ppc386 -gl -Fucomponents/custom -Fulcl/units -Fulcl/units/gtk
>-Fudesigner -Fudesigner/units -Fudebugger -Fupackager -Fucomponents/units
>-Fucomponents/mpaslex -Fu. -Fu/usr/local/lib/fpc/1.1/units/linux/rtl
>-Fu/usr/local/lib/fpc/1.1/units/linux/paszlib
>-Fu/usr/local/lib/fpc/1.1/units/linux/inet
>-Fu/usr/local/lib/fpc/1.1/units/linux/fcl
>-Fu/usr/local/lib/fpc/1.1/units/linux/regexpr
>-Fu/usr/local/lib/fpc/1.1/units/linux/mysql
>-Fu/usr/local/lib/fpc/1.1/units/linux/ibase -Fiinclude -Fiinclude/linux -FE.
>-Fl/usr/lib/gcc-lib/i486-suse-linux/2.95.3 -Fl/lib-aout
>-Fl/usr/IBMdb2/V7.1/lib -Fl/usr/X11R6/lib/Xaw95 -Fl/usr/X11R6/lib/Xaw3d
>-Fl/usr/X11R6/lib -Fl/usr/lib -Fl/usr/i486-linux/lib
>-Fl/usr/i486-linux-libc5/lib=libc5 -Fl/usr/i486-linux-libc6/lib=libc6
>-Fl/usr/i486-linuxaout/lib -Fl/usr/i386-suse-linux/lib -Fl/usr/local/lib
>-Fl/usr/openwin/lib -Fl/opt/kde/lib -Fl/opt/kde2/lib -Fl/opt/kde3/lib
>-Fl/opt/gnome/lib -Fl/opt/lotus/notes/5061/linux -dNoGdkPixBufLib -dInterbase
>-dNEW1_1 -di386 lazarus.pp
>Free Pascal Compiler version 1.1 [2003/04/15] for i386
>Copyright (c) 1993-2002 by Florian Klaempfl
>Target OS: Linux for i386
>Compiling lazarus.pp
>Fatal: Can't find unit GLIB
>make[1]: *** [lazarus] Error 1
>make[1]: Leaving directory `/home/blgoeris/src/lazarus'
>make: *** [ide] Error 2
>
>
>I think, that the "-Fu/usr/local/lib/fpc/1.1/units/linux/gtk" is missing, but
>when I insert this option, than the next error msg is "Fatal: Cant't find
>unit X"
>So I added this option and I seem that all works fine.
>make clean all OPT="-dNoGdkPixBufLib -dInterbase -dNEW1_1
>-Fu/usr/local/lib/fpc/1.1/units/linux/gtk
>-Fu/usr/local/lib/fpc/1.1/units/linux/x11"
>
>I think that is not the right way to compile lazarus.
>Can anybody help me?

Add in the Makefile.fpc to the require section 'gtk' and run fpcmake to 
regenerated the Makefile

The problem is that lazarus Makefile does not know that it needs gtk for 
the lcl interface. I once made some patches for fpcmake to support lcl and 
it's targets but at that time it didn't work fully for everybody and the 
changes from the Makefiles were reverted. Since i'm not one of the main 
developppers of lazarus i did not pay any attention to it anymore


Peter






More information about the Lazarus mailing list