DSL Tips and Tricks :: easier way to compile stuff for DSL



Thanks for that, unfotunately it gets me to the same point as the hosts.def I was trying to make. If I do:
Code Sample
$ make World >& world.log

Then the last few lines of world.log look like:
Quote
make[2]: Leaving directory `/KNOPPIX/usr/src/xc/config/imake'
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -I./config/cf  -s ./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
./config/imake/imake: No such file or directory
./config/imake/imake: Cannot exec /lib/cpp.
 Stop.
./config/imake/imake: Exit code 1.
 Stop.
make[1]: *** [config/makedepend/Makefile.proto] Error 1
make[1]: Leaving directory  
make: *** [World] Error 2

The file /usr/src/xc/config/imake/imake exists and /lib/cpp -> /opt/compile/lib/cpp -> /opt/compile/bin/cpp so I'm not sure which file cannot be found...

Edit: It was a typo in the cpp symlink - now it halts complaining there's no fonts, even though I set "#define BuildFonts NO"...

@curaga

I guess site.def must have been modified to suit the way your host.def is set up - is it possible to paste the site.def you used? I appear to have some duplication/mismatch between the two that prevents the make completing sucessfully.

Sorry - I don't have that anymore..

I don't think I touched any other config file than host.def though..

I tried editing site.def so all it contained was:
Quote
/* if you want host-specific customization, this is one way to do it */
/*
#ifndef SiteIConfigFiles
#define SiteIConfigFiles $(IRULESRC)/host.def
#define LocalConfigFiles host.def
#endif
*/

- and modified curaga's host.def so part of it looked like:
Quote
//* GENERAL SETTINGS */

#define SystemManDirectory        /opt/compile-3.3.5/man
#define DocDir                    /opt/compile-3.3.5/share/doc
#define BuildFonts                NO

/* Installation prefix. The default is to install into /usr/X11R6. If you
* would like to install into /usr, uncomment these options. */

#define ProjectRoot            /opt/compile-3.3.5
/* #define LinkGLToUsrLib         NO   */
/* #define LinkGLToUsrInclude     NO   */

- in this context, I believe the "#" have to be left in, but maybe I'm wrong? In any case, "make" ignored the BuildFonts=NO and dirs=/opt/compile-3.3.5/...

Somwhere along the way, I found xfree would not compile fully without changing bison-1.875 to bison-1.875a (I found bison-1.875d, it worked) and flex-2.5.32 to flex-2.5.4 (I found flex-2.5.4a, it worked).

Once compiled, make install copied what looks like all of the headers & libs, but failed asking for /include/linux/autoconf.h - this was not made by the kernel headers commands curaga suggested a few posts back, is there a way to make it?

I copied autoconf.h from knoppix-3.4 and make install failed looking for ../lib/GL/dri/drm/xf86drm.o which I guess could be expected because I had not unpacked the full kernel sources.

I'll try moving the headers/libs from /usr/.. to /opt/compile/... and see if I can compile gtk-1.2

Oops. it does come from the kernel.

It is created when you configure your kernel, and just creating an empty one should have sufficed..

Next Page...
original here.