Building OSLib under Linux

Philip Ludlam philip at philipnet.com
Sun Mar 28 12:46:56 BST 2004


Tony van der Hoff wrote:

>Hi,
>
>I have (finally) completed my project to allow OSLib to be built under
>Linux. The whole thing, including the StrongHelp manual can be built in 10
>minutes on my 1.1GHz Linux box, as opposed to 3 hours on my RISC PC :-) It
>is fully my intention to use this build process for future releases.
>
>No doubt I've done something wrong, somewhere, so I'd be grateful if you
>guys with linux could check out the branch, labelled unix-build, and give it
>a bashing. 
>  
>

I guess that's aimed at me :-) .

>If all is well, I'll merge the branch back into the main trunk. I don't
>think it contains Tom's latest fixes to the library (because I can't figure
>out how to merge the trunk into the branch), but it is certainly up to the
>latest release tag.
>
>It requires the GCCSDK cross-tools, and expects to find them in the default
>place: /home/riscos/cross. In particular, it requires the latest checked-in
>version of as; make sure that you get this from the GCCSDK trunk.
>  
>

Hmm. I get:

-bash-2.05b$ pwd
/home/riscos/riscos/oslib/RO-OSLib/!OsLib
-bash-2.05b$ make -f GNUmakefile
make -C Tools
make[1]: Entering directory 
`/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools'
make -C BindHelp
make[2]: Entering directory 
`/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools/BindHelp'
gcc -Wall -funsigned-char -I.. -I../support -DUNIX -DEXECUTE_ON_UNIX 
-D__swi -DTRACE=0 \
                -DDEBUG=0 -o BindHelp.o -c BindHelp.c
BindHelp.c:86: oslib/macros.h: No such file or directory
BindHelp.c:87: oslib/os.h: No such file or directory
BindHelp.c:88: oslib/osfile.h: No such file or directory
BindHelp.c:89: oslib/osgbpb.h: No such file or directory
BindHelp.c:90: oslib/osfind.h: No such file or directory
BindHelp.c:91: oslib/osargs.h: No such file or directory
BindHelp.c:94: x.h: No such file or directory
BindHelp.c:95: trace.h: No such file or directory
make[2]: *** [BindHelp.o] Error 1
make[2]: Leaving directory 
`/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools/BindHelp'
make[1]: *** [BindHelp] Error 2
make[1]: Leaving directory `/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools'
make: *** [Tools] Error 2

The problem being:
-bash-2.05b$ find . -name "macros.h"
./Source/Macros/oslib/macros.h
-bash-2.05b$ find . -name "os.h"
-bash-2.05b$ find . -name "osfile.h"
-bash-2.05b$ find . -name "osgbpb.h"
-bash-2.05b$ find . -name "osfind.h"
-bash-2.05b$ find . -name "osargs.h"
-bash-2.05b$ find . -name "x.h"
-bash-2.05b$ find . -name "trace.h"
./OSLibSupport/trace.h

So what exactly is going on?
Does OSLib now require OSLib in order to build (which wasn't the case 
under the previous build system) or have I missed something else?

Yours,

Phil L.





More information about the oslib-user mailing list