building gslib

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Orfax

building gslib

Post by Orfax »

I tried to build gslib, and I had a problem.

The environment I use is cygwin.
My ps2dev directory is under /usr/local/ps2dev. Under this is where the ps2lib, ee & iop compilers & libraries live, and soon to be gslib.

When I type make within the gslib directory it builds the library and then attempts to build the examples.

The problem is when building the simple example.cpp:

Code: Select all

make[2]: Entering directory `/usr/local/ps2dev/gslib/examples/simple'
ee-g++ -D_EE -fshort-double -fno-builtin -O2 -G0 -c -Wall -I/usr/local/ps2dev/ps2lib/ee/include -I/usr/local/ps2dev/ps2lib/common/include -I.    -fno-exceptions -fno-rtti  example.cpp -o example.o
example.cpp:4:20: gsDefs.h: No such file or directory
example.cpp:5:22: gsDriver.h: No such file or directory
example.cpp:6:20: gsPipe.h: No such file or directory
The path to these header files is /usr/local/ps2dev/gslib/source, and is obviously not included in the build line. The Makefile for this example is very simple, and includes Makefile.global for gslib, which should set the include directory I need, but this is not happening.

gslib's Makefile.global's first line is an include to PS2LIB Makefile.eeglobal, which sets up other Makefile variables, including the C/C++ flags variable. After this include, the gslib Makefile.global sets the include path for gslib, etc., but doesn't do anything to the C/C++ flags variable, which is already set minus the gslib include path information.

I moved the first line of gslib's Makefile.global to the last line (and hence the C/C++ flags variable set with gslib include path) and everything built fine.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Don't you need $GSLIB set, pointing to the gslib source? Try typing this:

export GSLIB=/path/to/gslib

Then compiling gslib again. If that doesn't work, take a look at the included documentation.
Post Reply