[lazarus] Simple HelloWorld
michael at tfdec1.fys.kuleuven.ac.be
michael at tfdec1.fys.kuleuven.ac.be
Thu Jul 15 16:40:42 EDT 1999
On Thu, 15 Jul 1999, Payne Thomas E CNIN wrote:
> Anyone else having problems with hello_world?
>
> I deleted my /etc/ppc386.cfg. I can still rebuild the compiler, fcl, gtk,
> and lazarus without it.
> I noticed that the makefile for hello_world looks for units in
> ../units/linux??? So I created a symbolic link to my
> /usr/lib/fpc/0.99.13/units in /usr/src/fpc0.99.11 (which is my source dir)
> (sorry I am not using the linux HOWTO, after initially getting it to work,
> did not to disturb it). I tried to manually insert the -Fu directories that
> ppc386 was complaining about, but then it finally gave me an internal error
> 1234124???
>
>
> [root at a202-073 fpc-0.99.11]# cd hello
> [root at a202-073 hello]# make
> ppc386 -Tlinux -Fu../rtl/linux -Fu../units/linux -Fu../fcl/linux
> -Fu../rtl/linux -Fu../gtk -Fu../lazarus
> -Fl/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -Fl/usr/X11R6/lib
> -Fl/usr/lib -Fl/usr/i486-linux-libc5/lib -FE. -di386 hello_world.pp
> syslinux.pp(34,2) Fatal: Can't open include file systemh.inc
Ok, what is happening here ?
The message clearly states that the compiler tries to recompile the system
units. This is BAD. it means that it found sources that are newer than the
units in /usr/lib/fpc/etc.
This is natural, because ../rtl/linux is in the units path.
1) The compiler will look in the directory ../rtl/linux for the system units.
2) The compiler will look in the directory ../fcl/linux for the classes stuff.
3) The compiler will look in the directory ../gtk for gtk stuff.
4) the compiler will look in the directory ../lazarus for lazarus stuff.
Now, 2 depends on 1
3 depends on 1
4 depends on 2 and 1 and 3
So the following should build everything;
cd rtl/linux
make clean; make
cd ../../fcl/linux
make clean; make
cd ../../gtk
make clean; make
cd ../lazarus
make clean; make
cd ../hello_world
make
These are the _EXACT_ steps as I do them every day; apart from errors in the
source code, this has never failed me.
I suggest you try this.
Michael.
More information about the Lazarus
mailing list