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
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.