GsKit
GsKit
Hey, guys.
I am triyng to compile the gsKit using the make clean and then Make install, i use an precompiled toolchain with mingw/msys, and when i do a make install i get a error about the libgskit.a and another file.a
So the gskit cames already cmpiled? if no, what i need to compile it?
Since then, thanks!
ps.: my ps2dev path is: c:/ps2dev
i placed the gsKit dir like this:
c:/ps2dev/gsKit i enter this dir and do a make clean and a meka install and on this stage i receive the error about ligskit.a
I am triyng to compile the gsKit using the make clean and then Make install, i use an precompiled toolchain with mingw/msys, and when i do a make install i get a error about the libgskit.a and another file.a
So the gskit cames already cmpiled? if no, what i need to compile it?
Since then, thanks!
ps.: my ps2dev path is: c:/ps2dev
i placed the gsKit dir like this:
c:/ps2dev/gsKit i enter this dir and do a make clean and a meka install and on this stage i receive the error about ligskit.a
hi, people.
sorry for the bad explanation, it's because i wasn't in home...
Now i took the error that msys returns.
Here is them:
first i did a make clean
and then a make all
and now a make install
And then I looked on the gsKit folder and nothing is compiled...
I was looking the makefiles of the gskit and i found some references to jpglib, so... so I need the jpglib to install the gskit?
And another thing, all paths to the ps2dev and ps2sdk directories are set correctly on msys. I can compile correctly any program using them.
I didn't set any path to the gsKit folder on msys... do I need to set $gsKit on msys or do I need the jpglib?
ps.: i downloaded the 0.2 precompiled from the ps2dev.org, but i tried with the latest version of gskit from the svn too, with the same results...
sorry for the bad explanation, it's because i wasn't in home...
Now i took the error that msys returns.
Here is them:
first i did a make clean
Code: Select all
Yan@YANSPC /c/ps2dev/gsKit
$ make clean
GSKITSRC=`pwd` make -C ee clean
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs clean
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src clean
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
rm -f gsCore.o gsFont.o gsInit.o gsMisc.o gsPrimitive.o gsTexture.o
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include clean
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C dma clean
make[2]: Entering directory `/c/ps2dev/gsKit/ee/dma'
GSKITSRC=/c/ps2dev/gsKit make -C src clean
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/src'
rm -f dmaCore.o dmaInit.o dmaSpr.o
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/src'
GSKITSRC=/c/ps2dev/gsKit make -C include clean
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/include'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/dma'
make[1]: Leaving directory `/c/ps2dev/gsKit/ee'
GSKITSRC=`pwd` make -C examples clean
make[1]: Entering directory `/c/ps2dev/gsKit/examples'
GSKITSRC=/c/ps2dev/gsKit make -C basic clean
make[2]: Entering directory `/c/ps2dev/gsKit/examples/basic'
rm -f basic.o basic.elf
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/basic'
GSKITSRC=/c/ps2dev/gsKit make -C textures clean
make[2]: Entering directory `/c/ps2dev/gsKit/examples/textures'
rm -f textures.o textures.elf
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/textures'
GSKITSRC=/c/ps2dev/gsKit make -C linuz-texture clean
make[2]: Entering directory `/c/ps2dev/gsKit/examples/linuz-texture'
rm -f texture.o testorig.o sample.o texture.elf
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/linuz-texture'
GSKITSRC=/c/ps2dev/gsKit make -C font clean
make[2]: Entering directory `/c/ps2dev/gsKit/examples/font'
rm -f font.o font.elf
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/font'
make[1]: Leaving directory `/c/ps2dev/gsKit/examples'
GSKITSRC=`pwd` make -C lib clean
make[1]: Entering directory `/c/ps2dev/gsKit/lib'
rm -f libgskit.a
rm -f libdmakit.a
make[1]: Leaving directory `/c/ps2dev/gsKit/lib'
Code: Select all
Yan@YANSPC /c/ps2dev/gsKit
$ make all
GSKITSRC=`pwd` make -C ee
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsCore.c -o gsCore.o
gsCore.c: In function `gsKit_set_test':
gsCore.c(105) : warning: `return' with a value, in function returning void
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsFont.c -o gsFont.o
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsInit.c -o gsInit.o
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsMisc.c -o gsMisc.o
gsMisc.c: In function `gsKit_vram_dump':
gsMisc.c(50) : warning: `return' with a value, in function returning void
gsMisc.c(42) : warning: unused variable `p_mem'
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsPrimitive.c -o gsPrimitive.o
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsTexture.c -o gsTexture.o
ee-ar rcs /c/ps2dev/gsKit/lib/libgskit.a gsCore.o gsFont.o gsInit.o gsMisc.o gsP
rimitive.o gsTexture.o
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C dma
make[2]: Entering directory `/c/ps2dev/gsKit/ee/dma'
GSKITSRC=/c/ps2dev/gsKit make -C src
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/src'
ee-gcc -D_EE -O2 -G0 -Wall -Wno-unused -fno-builtin-printf -I/c/ps2dev/ps2sdk/e
e/include -I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/inc
lude -I/usr/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I
/c/ps2dev/gsKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/inclu
de -I/ee -c dmaCore.c -o dmaCore.o
ee-gcc -D_EE -O2 -G0 -Wall -Wno-unused -fno-builtin-printf -I/c/ps2dev/ps2sdk/e
e/include -I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/inc
lude -I/usr/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I
/c/ps2dev/gsKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/inclu
de -I/ee -c dmaInit.c -o dmaInit.o
ee-gcc -D_EE -O2 -G0 -Wall -Wno-unused -fno-builtin-printf -I/c/ps2dev/ps2sdk/e
e/include -I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/inc
lude -I/usr/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I
/c/ps2dev/gsKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/inclu
de -I/ee -c dmaSpr.c -o dmaSpr.o
ee-ar rcs /c/ps2dev/gsKit/lib/libdmakit.a dmaCore.o dmaInit.o dmaSpr.o
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/src'
GSKITSRC=/c/ps2dev/gsKit make -C include
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/dma'
make[1]: Leaving directory `/c/ps2dev/gsKit/ee'
GSKITSRC=`pwd` make -C examples
make[1]: Entering directory `/c/ps2dev/gsKit/examples'
GSKITSRC=/c/ps2dev/gsKit make -C basic
make[2]: Entering directory `/c/ps2dev/gsKit/examples/basic'
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
basic.c -o basic.o
ee-gcc -nostartfiles -T/c/ps2dev/ps2sdk/ee/startup/linkfile -L/c/ps2dev/gsKit/li
b -L/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2 -L/c/ps2dev/ps2sdk/ee/lib -L/lib \
-o basic.elf /c/ps2dev/ps2sdk/ee/startup/crt0.o basic.o -lgcc -lgskit -l
dmakit -lc -lkernel -lc -lsyscall -ldebug -lsyscall -lkernel
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/basic'
GSKITSRC=/c/ps2dev/gsKit make -C textures
make[2]: Entering directory `/c/ps2dev/gsKit/examples/textures'
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
textures.c -o textures.o
textures.c: In function `main':
textures.c(19) : warning: unused variable `Tex3'
ee-gcc -nostartfiles -T/c/ps2dev/ps2sdk/ee/startup/linkfile -L/c/ps2dev/gsKit/li
b -L/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2 -L/c/ps2dev/ps2sdk/ee/lib -L/lib \
-o textures.elf /c/ps2dev/ps2sdk/ee/startup/crt0.o textures.o -lgcc -lgs
kit -ldmakit -lc -lkernel -lc -lsyscall -ldebug -lsyscall -lkernel
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/textures'
GSKITSRC=/c/ps2dev/gsKit make -C linuz-texture
make[2]: Entering directory `/c/ps2dev/gsKit/examples/linuz-texture'
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
texture.c -o texture.o
ee-as -G0 testorig.s -o testorig.o
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
sample.c -o sample.o
ee-gcc -nostartfiles -T/c/ps2dev/ps2sdk/ee/startup/linkfile -L/c/ps2dev/gsKit/li
b -L/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2 -L/c/ps2dev/ps2sdk/ee/lib -L/lib \
-o texture.elf /c/ps2dev/ps2sdk/ee/startup/crt0.o texture.o testorig.o s
ample.o -lgcc -lgskit -ldmakit -lc -lkernel -lc -lsyscall -ldebug -lsyscall -lk
ernel
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/linuz-texture'
GSKITSRC=/c/ps2dev/gsKit make -C font
make[2]: Entering directory `/c/ps2dev/gsKit/examples/font'
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
font.c -o font.o
ee-gcc -nostartfiles -T/c/ps2dev/ps2sdk/ee/startup/linkfile -L/c/ps2dev/gsKit/li
b -L/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2 -L/c/ps2dev/ps2sdk/ee/lib -L/lib \
-o font.elf /c/ps2dev/ps2sdk/ee/startup/crt0.o font.o -lgcc -lgskit -ldm
akit -lc -lkernel -lc -lsyscall -ldebug -lsyscall -lkernel
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/font'
make[1]: Leaving directory `/c/ps2dev/gsKit/examples'
GSKITSRC=`pwd` make -C lib
make[1]: Entering directory `/c/ps2dev/gsKit/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/ps2dev/gsKit/lib'
Code: Select all
Yan@YANSPC /c/ps2dev/gsKit
$ make install
GSKITSRC=`pwd` make -C ee install
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
mkdir -p /usr/local/ps2dev/gsKit/include
cp *.h /usr/local/ps2dev/gsKit/include
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C dma install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/dma'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/include'
mkdir -p /usr/local/ps2dev/gsKit/include
cp *.h /usr/local/ps2dev/gsKit/include
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/dma'
make[1]: Leaving directory `/c/ps2dev/gsKit/ee'
GSKITSRC=`pwd` make -C examples install
make[1]: Entering directory `/c/ps2dev/gsKit/examples'
GSKITSRC=/c/ps2dev/gsKit make -C basic install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/basic'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/basic'
GSKITSRC=/c/ps2dev/gsKit make -C textures install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/textures'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/textures'
GSKITSRC=/c/ps2dev/gsKit make -C linuz-texture install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/linuz-texture'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/linuz-texture'
GSKITSRC=/c/ps2dev/gsKit make -C font install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/font'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/font'
make[1]: Leaving directory `/c/ps2dev/gsKit/examples'
GSKITSRC=`pwd` make -C lib install
make[1]: Entering directory `/c/ps2dev/gsKit/lib'
mkdir -p /usr/local/ps2dev/gsKit/lib
cp libgskit.a libdmakit.a /usr/local/ps2dev/gsKit/lib
make[1]: Leaving directory `/c/ps2dev/gsKit/lib'
I was looking the makefiles of the gskit and i found some references to jpglib, so... so I need the jpglib to install the gskit?
And another thing, all paths to the ps2dev and ps2sdk directories are set correctly on msys. I can compile correctly any program using them.
I didn't set any path to the gsKit folder on msys... do I need to set $gsKit on msys or do I need the jpglib?
ps.: i downloaded the 0.2 precompiled from the ps2dev.org, but i tried with the latest version of gskit from the svn too, with the same results...
I see a discrepance on the output of the "make install" :
Yan@YANSPC /c/ps2dev/gsKit
$ make install
GSKITSRC=`pwd` make -C ee install
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
mkdir -p /usr/local/ps2dev/gsKit/include
cp *.h /usr/local/ps2dev/gsKit/include
So, the GSKITSRC seems to be set OK to your path but the mkdir and cp points to a different location. I'm not familiar with msys but the "/usr/local/" pahts are typical of cygwin environment not to mention linux.
I'm not sure what causes the different path setting but again I'm not familiar with msys.
----
edited
Hmm did you set the GSKITSRC to /c/ps2dev/gsKit ?
If msys is like cygwin regarding paths, you should set GSKITSRC like
GSKITSRC=/usr/local/ps2dev/gsKit
or better
GSKITSRC=$(PS2DEV)/gsKit
Anyway I see a mix of paths i don't compreend why, for example, from the "make all" output :
Yan@YANSPC /c/ps2dev/gsKit
$ make install
GSKITSRC=`pwd` make -C ee install
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
mkdir -p /usr/local/ps2dev/gsKit/include
cp *.h /usr/local/ps2dev/gsKit/include
So, the GSKITSRC seems to be set OK to your path but the mkdir and cp points to a different location. I'm not familiar with msys but the "/usr/local/" pahts are typical of cygwin environment not to mention linux.
I'm not sure what causes the different path setting but again I'm not familiar with msys.
----
edited
Hmm did you set the GSKITSRC to /c/ps2dev/gsKit ?
If msys is like cygwin regarding paths, you should set GSKITSRC like
GSKITSRC=/usr/local/ps2dev/gsKit
or better
GSKITSRC=$(PS2DEV)/gsKit
Anyway I see a mix of paths i don't compreend why, for example, from the "make all" output :
Code: Select all
ee-gcc -D_EE -O2 -G0 -Wall -fno-builtin-printf -I/c/ps2dev/ps2sdk/ee/include -
I/c/ps2dev/ps2sdk/common/include -I/usr/local/ps2dev/gsKit/ee/dma/include -I/usr
/local/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/gsKit/ee/gs/include -I/c/ps2dev/g
sKit/ee/dma/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c
gsInit.c -o gsInit.o
hey, now i think i got the gskit installed!
here is a snapshot of the make install
I didn't add $GSKIT nor $GSKITSRC but i simply copied the gsKit from the svn to the ps2dev dir (/c/ps2dev), entered the gsKit dir and did a "make all" and then a "make install", and I ended up with the "ee, examples, and lib" dirs on the /c/ps2dev/gsKit and the dirs "include and lib" on the /usr/local/ps2dev/gsKit" dir.
All the supplied examples were automatically compiled...
This means that the gsKit is compiled correctly?
here is a snapshot of the make install
Code: Select all
Yan@YANSPC /c/ps2dev/gsKit
$ make install
GSKITSRC=`pwd` make -C ee install
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
mkdir -p /usr/local/ps2dev/gsKit/include
cp *.h /usr/local/ps2dev/gsKit/include
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C dma install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/dma'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/include'
mkdir -p /usr/local/ps2dev/gsKit/include
cp *.h /usr/local/ps2dev/gsKit/include
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/dma'
make[1]: Leaving directory `/c/ps2dev/gsKit/ee'
GSKITSRC=`pwd` make -C examples install
make[1]: Entering directory `/c/ps2dev/gsKit/examples'
GSKITSRC=/c/ps2dev/gsKit make -C basic install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/basic'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/basic'
GSKITSRC=/c/ps2dev/gsKit make -C bigtex install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/bigtex'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/bigtex'
GSKITSRC=/c/ps2dev/gsKit make -C textures install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/textures'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/textures'
GSKITSRC=/c/ps2dev/gsKit make -C linuz-texture install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/linuz-texture'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/linuz-texture'
GSKITSRC=/c/ps2dev/gsKit make -C font install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/font'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/font'
GSKITSRC=/c/ps2dev/gsKit make -C fb install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/fb'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/fb'
GSKITSRC=/c/ps2dev/gsKit make -C alpha install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/alpha'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/alpha'
GSKITSRC=/c/ps2dev/gsKit make -C fontm install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/fontm'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/fontm'
GSKITSRC=/c/ps2dev/gsKit make -C png-texture install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/png-texture'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/png-texture'
make[1]: Leaving directory `/c/ps2dev/gsKit/examples'
GSKITSRC=`pwd` make -C lib install
make[1]: Entering directory `/c/ps2dev/gsKit/lib'
mkdir -p /usr/local/ps2dev/gsKit/lib
cp libgskit.a libdmakit.a /usr/local/ps2dev/gsKit/lib
make[1]: Leaving directory `/c/ps2dev/gsKit/lib'
Yan@YANSPC /c/ps2dev/gsKit
All the supplied examples were automatically compiled...
This means that the gsKit is compiled correctly?
Hey, i think this time it's intalled right.
I just setled GSKIT = "$(PS2DEV)/gsKit", copied the ksKit from the svn to the ps2dev dir (/c/ps2dev) and and did a "make all" and then a "make install", and got the following error:
But seems like everything is correctly installed because "lib" and "include" dirs are on the "gsKit" dir.
The only error was because the existing file was the same, but seems like is all ok.
Can anyone say me if it's all ok?
thanks!
I just setled GSKIT = "$(PS2DEV)/gsKit", copied the ksKit from the svn to the ps2dev dir (/c/ps2dev) and and did a "make all" and then a "make install", and got the following error:
Code: Select all
Yan@YANSPC /c/ps2dev/gsKit
$ make install
GSKITSRC=`pwd` make -C ee install
make[1]: Entering directory `/c/ps2dev/gsKit/ee'
GSKITSRC=/c/ps2dev/gsKit make -C gs install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/gs/include'
mkdir -p /c/ps2dev/gsKit/include
cp *.h /c/ps2dev/gsKit/include
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/gs/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/gs'
GSKITSRC=/c/ps2dev/gsKit make -C dma install
make[2]: Entering directory `/c/ps2dev/gsKit/ee/dma'
GSKITSRC=/c/ps2dev/gsKit make -C src install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/src'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/src'
GSKITSRC=/c/ps2dev/gsKit make -C include install
make[3]: Entering directory `/c/ps2dev/gsKit/ee/dma/include'
mkdir -p /c/ps2dev/gsKit/include
cp *.h /c/ps2dev/gsKit/include
make[3]: Leaving directory `/c/ps2dev/gsKit/ee/dma/include'
make[2]: Leaving directory `/c/ps2dev/gsKit/ee/dma'
make[1]: Leaving directory `/c/ps2dev/gsKit/ee'
GSKITSRC=`pwd` make -C examples install
make[1]: Entering directory `/c/ps2dev/gsKit/examples'
GSKITSRC=/c/ps2dev/gsKit make -C basic install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/basic'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/basic'
GSKITSRC=/c/ps2dev/gsKit make -C bigtex install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/bigtex'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/bigtex'
GSKITSRC=/c/ps2dev/gsKit make -C textures install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/textures'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/textures'
GSKITSRC=/c/ps2dev/gsKit make -C linuz-texture install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/linuz-texture'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/linuz-texture'
GSKITSRC=/c/ps2dev/gsKit make -C font install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/font'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/font'
GSKITSRC=/c/ps2dev/gsKit make -C fb install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/fb'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/fb'
GSKITSRC=/c/ps2dev/gsKit make -C alpha install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/alpha'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/alpha'
GSKITSRC=/c/ps2dev/gsKit make -C fontm install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/fontm'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/fontm'
GSKITSRC=/c/ps2dev/gsKit make -C png-texture install
make[2]: Entering directory `/c/ps2dev/gsKit/examples/png-texture'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/c/ps2dev/gsKit/examples/png-texture'
make[1]: Leaving directory `/c/ps2dev/gsKit/examples'
GSKITSRC=`pwd` make -C lib install
make[1]: Entering directory `/c/ps2dev/gsKit/lib'
mkdir -p /c/ps2dev/gsKit/lib
cp libgskit.a libdmakit.a /c/ps2dev/gsKit/lib
cp: `libgskit.a' and `/c/ps2dev/gsKit/lib/libgskit.a' are the same file
cp: `libdmakit.a' and `/c/ps2dev/gsKit/lib/libdmakit.a' are the same file
make[1]: *** [install] Error 1
make[1]: Leaving directory `/c/ps2dev/gsKit/lib'
make: *** [install-lib] Error 2
Yan@YANSPC /c/ps2dev/gsKit
$
The only error was because the existing file was the same, but seems like is all ok.
Can anyone say me if it's all ok?
thanks!
Yes I remember that the make install gives that error. As long the files are there, there shouldn't be a problem. I can assume you have a gsKit build and ready to use.The only error was because the existing file was the same, but seems like is all ok.
Can anyone say me if it's all ok?
About the GSKITSRC path, I recall the makefile does some "magic" in order to set this path automatically, that explains why you succeeded to build without having to set it, but it will not harm setting a path explicitly and as a general rule it is mandatory to use/compile a package.
So see that everything is ok, try running the examples (the png ones will require you to have libpng also installed, not part of the gsKit of course).
thanks, man!
I will set the GSKITSRC on the same path than GSKIT then, (/c/ps2dev).
And i had to modify on tthe Makefile.pref the PS2DEV path, that was set to usr/local/ps2dev/gsKit, and I changed to my ps2dev path.
And only another thing...
what kind of Makefile i need do compile a program using the gskit and ps2sdk libs at the same time?
I tried to include the Makefile.global and Makefile.pref from the gsKit and from the ps2sdk to the Makefile and it didn't work.
For example:
I will set the GSKITSRC on the same path than GSKIT then, (/c/ps2dev).
And i had to modify on tthe Makefile.pref the PS2DEV path, that was set to usr/local/ps2dev/gsKit, and I changed to my ps2dev path.
And only another thing...
what kind of Makefile i need do compile a program using the gskit and ps2sdk libs at the same time?
I tried to include the Makefile.global and Makefile.pref from the gsKit and from the ps2sdk to the Makefile and it didn't work.
For example:
Code: Select all
EE_BIN = test.elf
EE_OBJS = test.o
all: $(EE_BIN)
clean:
rm -f *.elf *.o *.a
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
include $(PS2DEV)/gsKit/Makefile.pref
include $(PS2DEV)/gsKit/Makefile.global
Hey, I was seeing the Makefile.global from gsKit, and to mix it with the ps2sdk Makefile.eeglobal, I did this:
I simply deleted the line EE_LIBS = -Xlinker --start-group and EE_LIBS+ = -Xlinker --end-group
Now I ask: what is this Xlinker? I deleted this and still can compile and run my programs...
Now my base Makefile to compile my programs is this:
Since the gsKit Makefile.pref includes the PS2SDK Makefile.pref, i think that everything is ok.
What do you think? There is another way to mix ps2sdk and gskit or this is the best one?
thanks
Code: Select all
# ____ ___ | / _____ _____
# | __ | |___/ | |
# |___| ___| | \ __|__ | gsKit Open Source Project.
# ----------------------------------------------------------------------
# Copyright 2004 - Chris "Neovanglist" Gilbert <[email protected]>
# Licenced under Academic Free License version 2.0
# Review gsKit README & LICENSE files for further details.
#
# Makefile.global - Makefile global variable include.
#
EE_LIBS += $(EE_EXTRALIBS)
ifdef LIBJPG
EE_INCS += -I$(LIBJPG)/include
EE_CFLAGS += -DHAVE_LIBJPG
EE_LIB_DIRS += -L$(LIBJPG)/lib
EE_LIBS += -ljpg
endif
ifdef LIBTIFF
EE_INCS += -I$(LIBTIFF)
EE_CFLAGS += -DHAVE_LIBTIFF
EE_LIB_DIRS += -L$(LIBTIFF)
EE_LIBS += -ltiff
endif
ifdef LIBPNG
ifdef ZLIB
EE_INCS += -I$(ZLIB)/include -I$(LIBPNG)/include
EE_CFLAGS += -DHAVE_LIBPNG -DHAVE_ZLIB
EE_LIB_DIRS += -L$(ZLIB)/lib -L$(LIBPNG)/lib
EE_LIBS += -lz -lpng
endif
endif
EE_LIBS += -lgcc -lmf -lgskit -ldmakit -lkernel -lc -lsyscall -ldebug
# include dir
EE_INCS += -I$(GSKITSRC)/ee/gs/include -I$(GSKITSRC)/ee/dma/include -I$(GCCLIB)/include -I$(PS2GDB)/ee
# GSKIT_ENABLE_OFFSET is an experimental patch to reduce aliasing in halfbuffer mode.
#EE_CFLAGS += -fno-builtin-printf -DGSKIT_ENABLE_HBOFFSET
EE_CFLAGS += -fno-builtin-printf
# linker flags
EE_LIB_DIRS += -L$(GSKITSRC)/lib -L$(GCCLIB) -L$(PS2SDK)/ee/lib -L$(PS2GDB)/lib
EE_LDFLAGS += $(EE_LIB_DIRS)
Now I ask: what is this Xlinker? I deleted this and still can compile and run my programs...
Now my base Makefile to compile my programs is this:
Code: Select all
EE_BIN = basic.elf
EE_OBJS = basic.o
EE_LIBS = -lc -lpadx -lmtap
all: $(EE_BIN) freesio2.irx freepad.irx
clean:
rm -f *.elf *.o *.a freepad.irx freesio2.irx
freesio2.irx:
cp $(PS2SDK)/iop/irx/freesio2.irx $@
freepad.irx:
cp $(PS2SDK)/iop/irx/freepad.irx $@
include $(GSKIT)/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
include $(GSKIT)/Makefile.global
What do you think? There is another way to mix ps2sdk and gskit or this is the best one?
thanks
As you know, the Makefile tells the GCC how to build the code and where are the source files. So you basically need to see what the gskit and the ps2sdk makefiles have in common and use this on your new makefile. I didn't looked closely to your makefile, but as a general rule, if it compiles it should be ok ;)
BTW : I don't know exactly what is the Xlinker but doing a quick search on "Xlinker gcc" I realised it's not specific to the PS2 dev.
------
Edited
Once you have compiled gsKit into a lib, you just need to tell your makefile to use it. So you don't need to set all the stuff from the gsKit building makefile.
BTW : I don't know exactly what is the Xlinker but doing a quick search on "Xlinker gcc" I realised it's not specific to the PS2 dev.
------
Edited
Once you have compiled gsKit into a lib, you just need to tell your makefile to use it. So you don't need to set all the stuff from the gsKit building makefile.
hm, i was getting trouble with the last Makefile, causing conflicts in the stdio lib... (i was trying to use gskit and pad.h).
I looked the Makefile.global to see what was causing this and didn't see nothing wrong.
For some reason right after looking your post I started to look on the dirs and got the $(GSKIT)/ee/Rules.make
Its almost exactly equal to the Makefile.eeglobal, but tells the compiler to use the gskit libs.
See the Rules.make:
I was trying to add the lines:
to a default makefile but didn't work.
when i get home i will try the ee/Rulez.make
Thanks!!
I looked the Makefile.global to see what was causing this and didn't see nothing wrong.
For some reason right after looking your post I started to look on the dirs and got the $(GSKIT)/ee/Rules.make
Its almost exactly equal to the Makefile.eeglobal, but tells the compiler to use the gskit libs.
See the Rules.make:
Code: Select all
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004.
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
EE_INCS := $(EE_INCS) -I$(PS2SDK)/ee/include -I$(PS2SDK)/common/include -I$(GSKIT)/ee/dma/include -I$(GSKIT)/ee/gs/include
# C compiler flags
EE_CFLAGS := -D_EE -O2 -G0 -Wall $(EE_CFLAGS)
# C++ compiler flags
EE_CXXFLAGS := -D_EE -O2 -G0 -Wall $(EE_CXXFLAGS)
# Linker flags
#EE_LDFLAGS := $(EE_LDFLAGS)
# Assembler flags
EE_ASFLAGS := -G0 $(EE_ASFLAGS)
# Externally defined variables: EE_BIN, EE_OBJS, EE_LIB
# These macros can be used to simplify certain build rules.
EE_C_COMPILE = $(EE_CC) $(EE_CFLAGS) $(EE_INCS)
EE_CXX_COMPILE = $(EE_CC) $(EE_CXXFLAGS) $(EE_INCS)
$(EE_OBJS_DIR)%.o : $(EE_SRC_DIR)%.c
$(EE_CC) $(EE_CFLAGS) $(EE_INCS) -c $< -o $@
$(EE_OBJS_DIR)%.o : $(EE_SRC_DIR)%.cpp
$(EE_CXX) $(EE_CXXFLAGS) $(EE_INCS) -c $< -o $@
$(EE_OBJS_DIR)%.o : $(EE_SRC_DIR)%.S
$(EE_CC) $(EE_CFLAGS) $(EE_INCS) -c $< -o $@
$(EE_OBJS_DIR)%.o : $(EE_SRC_DIR)%.s
$(EE_AS) $(EE_ASFLAGS) $< -o $@
$(EE_LIB_DIR):
mkdir $(EE_LIB_DIR)
$(EE_BIN_DIR):
mkdir $(EE_BIN_DIR)
$(EE_OBJS_DIR):
mkdir $(EE_OBJS_DIR)
ifeq ($(use_cpp), true)
$(EE_BIN) : $(EE_OBJS) $(PS2SDK)/ee/startup/crt0.o
$(EE_CXX) -nostartfiles -T$(PS2SDK)/ee/startup/linkfile $(EE_LDFLAGS) \
-o $(EE_BIN) $(PS2SDK)/ee/startup/crt0.o $(EE_OBJS) $(EE_LIBS)
else
$(EE_BIN) : $(EE_OBJS) $(PS2SDK)/ee/startup/crt0.o
$(EE_CC) -nostartfiles -T$(PS2SDK)/ee/startup/linkfile $(EE_LDFLAGS) \
-o $(EE_BIN) $(PS2SDK)/ee/startup/crt0.o $(EE_OBJS) $(EE_LIBS)
endif
$(EE_LIB) : $(EE_OBJS)
$(EE_AR) cru $(EE_LIB) $(EE_OBJS)
Code: Select all
EE_INCS += -I$(GSKITSRC)/ee/gs/include -I$(GSKITSRC)/ee/dma/include
EE_CFLAGS += -fno-builtin-printf
EE_LDFLAGS += -L$(GSKITSRC)/lib
when i get home i will try the ee/Rulez.make
Thanks!!
To use the gsKit I usually do include at the end of my makefile :
The gskitMakefile.pref and gskitMakefile.global are modified versions of the gsKit files. So,
gskitMakefile.global :
gskitMakefile.pref :
(you make have to comment the ZLIB if not installed in your case)
As you may see, the differences to the original gsKit files are minimal (spot them).
Also in the makefile, I add "-lgskit -ldmakit" to the EE_LIBS. Example :
That should work. It's not very clean but does the job.
Code: Select all
include gskitMakefile.pref
include gskitMakefile.global
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
gskitMakefile.global :
Code: Select all
include $(GSKITSRC)/ee/Rules.make
EE_LIBS += -Xlinker --start-group
EE_LIBS += $(EE_EXTRALIBS)
ifdef LIBJPG
EE_INCS += -I$(LIBJPG)/include
EE_CFLAGS += -DHAVE_LIBJPG
EE_LIB_DIRS += -L$(LIBJPG)/lib
EE_LIBS += -ljpg
endif
ifdef LIBTIFF
EE_INCS += -I$(LIBTIFF)
EE_CFLAGS += -DHAVE_LIBTIFF
EE_LIB_DIRS += -L$(LIBTIFF)
EE_LIBS += -ltiff
endif
ifdef LIBPNG
ifdef ZLIB
EE_INCS += -I$(ZLIB)/include -I$(LIBPNG)/include
EE_CFLAGS += -DHAVE_LIBPNG -DHAVE_ZLIB
EE_LIB_DIRS += -L$(ZLIB)/lib -L$(LIBPNG)/lib
EE_LIBS += -lz -lpng
endif
endif
EE_LIBS += -lgcc -lmf -lgskit -ldmakit -lkernel -lc -lsyscall -ldebug
EE_LIBS += -Xlinker --end-group
# include dir
EE_INCS += -I$(GSKITSRC)/ee/gs/include -I$(GSKITSRC)/ee/dma/include -I$(GCCLIB)/include -I$(PS2GDB)/ee
# GSKIT_ENABLE_OFFSET is an experimental patch to reduce aliasing in halfbuffer mode.
#EE_CFLAGS += -fno-builtin-printf -DGSKIT_ENABLE_HBOFFSET
EE_CFLAGS += -fno-builtin-printf
# linker flags
EE_LIB_DIRS += -L$(GSKITSRC)/lib -L$(GCCLIB) -L$(PS2SDK)/ee/lib -L$(PS2GDB)/lib
EE_LDFLAGS += $(EE_LIB_DIRS)
Code: Select all
include $(PS2SDK)/Defs.make
#PS2DEV = /usr/local/ps2dev
ifeq (x$(GSKIT), x)
GSKIT = $(PS2DEV)/gsKit
endif
GCCLIB = $(PS2DEV)/ee/lib/gcc-lib/ee/3.2.2
CPPLIB = $(PS2DEV)/ee/ee/lib
LIBGSKIT = $(GSKITSRC)/lib/libgskit.a
LIBDMAKIT = $(GSKITSRC)/lib/libdmakit.a
ZLIB = $(PS2DEV)/ps2sdk-ports/zlib
#LIBPNG = $(PS2DEV)/ps2sdk-ports/libpng
As you may see, the differences to the original gsKit files are minimal (spot them).
Also in the makefile, I add "-lgskit -ldmakit" to the EE_LIBS. Example :
Code: Select all
EE_LIBS = -lpad -lc -lgskit -ldmakit
Hey, thanks!
yesterday I did a makefile like this:
This worked ok, but your makefile seems very clean and better (and you hadn't to delete those Xlinker references).
Bit... if the two makefiles can compile allright, I will use your idea to make my programs.
Thanks, pal!
yesterday I did a makefile like this:
Code: Select all
EE_BIN = test.elf
EE_OBJ = test.o
EE_LIBS += $(GSKIT)/libs
EE_LIBS += -lgcc -lmf -lgskit -ldmakit -lkernel -lc -lsyscall -ldebug -lpad
EE_INCS += -I$(GSKITSRC)/ee/gs/include -I$(GSKITSRC)/ee/dma/include -I$(GCCLIB)/include -I$(PS2GDB)/ee
EE_CFLAGS += -fno-builtin-printf
EE_LIB_DIRS += -L$(GSKITSRC)/lib -L$(GCCLIB) -L$(PS2SDK)/ee/lib -L$(PS2GDB)/lib
EE_LDFLAGS += $(GSKIT)/libs
include $(PS2SDK)/samples/Makefile.pref
include $(PS2SDK)/samples/Makefile.eeglobal
Bit... if the two makefiles can compile allright, I will use your idea to make my programs.
Thanks, pal!
I would say to you almost the same : I'd prefer your makefile (if it works) because it looks to contains only the essential, so it looks more clean and less messy than throw a lot of settings to the GCC (some may be unneeded) like I do :)This worked ok, but your makefile seems very clean and better (and you hadn't to delete those Xlinker references).
Bit... if the two makefiles can compile allright, I will use your idea to make my programs.