forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

building gslib

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Orfax
Guest





PostPosted: Wed Feb 18, 2004 12:07 pm    Post subject: building gslib Reply with quote

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:
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.
Back to top
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sun Feb 29, 2004 3:25 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group