Page 1 of 1

Setting Variables w/Cygwin WinXP for GSLib

Posted: Mon Feb 14, 2005 11:57 pm
by bbchazz
Can someone direct me to, or help me here with setting the variables for GSlib using Cygwin. I have Cygwin all set up properly and working but since I used the toolchain I didn't have to set veriables to begin with so I have no idea where to now.

Thx

Posted: Tue Feb 15, 2005 3:55 am
by bbchazz
OK...I found one problem for starters. When I run 'make' it is looking for the makefiles in /PS2lib directory...which is wrong cause im setup with PS2sdk. So once I find out how to make these changes to have 'makefile' look differently things might go a little smoother.

Posted: Tue Feb 15, 2005 5:19 am
by bbchazz
Ok guys I really need some help....I am getting even closer but this is boggling my mind. Heres the error im getting when compiling the samples with gslib

$ make
ee-g++ -D_EE -O2 -G0 -Wall -fno-exceptions -fno-rtti -I/usr/local/ps2dev/ps2sd
k/ee/include -I/usr/local/ps2dev/ps2sdk/common/include -I. -I/ps2dev/gslib/sour
ce -I/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -c example.cpp -o example.o
ee-gcc -mno-crt0 -T/usr/local/ps2dev/ps2sdk/ee/startup/linkfile -L/usr/local/ps2
dev/ps2sdk/ee/lib -L/ps2dev/gslib/lib -L/ps2dev/ee/lib/gcc-lib/ee/3.2.2 -L/usr/
local/ps2dev/ps2sdk/ee/lib -L/ps2dev/ee/ee/lib \
-o example.elf /usr/local/ps2dev/ps2sdk/ee/startup/crt0.o example.o -lke
rnel -lsyscall -lc -lsupc++ -lgcc -lgs -lkernel
/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/bin/ld: cannot find -lg
s
collect2: ld returned 1 exit status
make: *** [example.elf] Error 1

Posted: Wed Feb 16, 2005 5:05 am
by ole
Check this out: -L/ps2dev/gslib/lib :-)
ps2dev / ps2sdk :)

Posted: Wed Feb 16, 2005 7:20 am
by bbchazz
Thx ole,

but i switched over to try setting up gskit instead. So if someone can tell me how to setup the GSKit env variables in bash_profile that would be great...or anywhere else to make it work for me.

Posted: Wed Feb 16, 2005 8:55 pm
by blackdroid
export GSKIT=/path/to/gsKit

jut like the other needed env variables.