PSPToolchain installed - next step
PSPToolchain installed - next step
I finally decided to install the psptoolchain on fedora 17, I got through it easily and everything is complete. I need to know if there is anything else I need to do, I still can't compile basic OSLib samples, or JGE++. Any help?
Advertising
"If the truth is a cruel mistress, then a lie must be a nice girl"
-
- Retired Mod
- Posts: 2744
- Joined: Fri Nov 05, 2010 5:27 pm
- Location: Over the hills and far away
Re: PSPToolchain installed - next step
You have apparently not installed it properly. What kind of error message, if any, are you getting?
Advertising
Re: PSPToolchain installed - next step
GLIB2d ObjControl Sample:
JGE++ 1.0 hello world tutorial:
Code: Select all
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -g -D_PSP_FW_VERSION=150 -c -o glib2d.o glib2d.c
glib2d.c:25:18: error: vram.h: No such file or directory
glib2d.c:30:17: error: png.h: No such file or directory
glib2d.c:34:21: error: jpeglib.h: No such file or directory
glib2d.c: In function ‘g2dInit’:
glib2d.c:249: warning: implicit declaration of function ‘vabsptr’
glib2d.c:249: warning: assignment makes pointer from integer without a cast
glib2d.c:250: warning: assignment makes pointer from integer without a cast
glib2d.c: In function ‘g2dFlip’:
glib2d.c:645: warning: assignment makes pointer from integer without a cast
glib2d.c: In function ‘g2dTexCreate’:
glib2d.c:1170: warning: implicit declaration of function ‘memset’
glib2d.c:1170: warning: incompatible implicit declaration of built-in function ‘memset’
glib2d.c: At top level:
glib2d.c:1191: error: expected ‘)’ before ‘*’ token
glib2d.c:1241: error: expected ‘)’ before ‘*’ token
glib2d.c: In function ‘g2dTexLoad’:
glib2d.c:1315: error: ‘FILE’ undeclared (first use in this function)
glib2d.c:1315: error: (Each undeclared identifier is reported only once
glib2d.c:1315: error: for each function it appears in.)
glib2d.c:1315: error: ‘fp’ undeclared (first use in this function)
glib2d.c:1319: warning: implicit declaration of function ‘fopen’
glib2d.c:1323: warning: implicit declaration of function ‘strstr’
glib2d.c:1323: warning: incompatible implicit declaration of built-in function ‘strstr’
glib2d.c:1325: warning: implicit declaration of function ‘_g2dTexLoadPNG’
glib2d.c:1325: warning: assignment makes pointer from integer without a cast
glib2d.c:1332: warning: implicit declaration of function ‘_g2dTexLoadJPEG’
glib2d.c:1332: warning: assignment makes pointer from integer without a cast
glib2d.c:1339: warning: implicit declaration of function ‘fclose’
make: *** [glib2d.o] Error 1
Code: Select all
make -f Makefile.1xx SCEkxploit
make[1]: Entering directory `/home/himanshu/Documents/JGE_1_0/JGE/Tutorials/01.HelloWorld'
psp-gcc -I../../JGE/include -I../../JGE/include/psp -I../../JGE/include/psp/freetype2 -I../../JGE/src -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -L../../JGE/lib/psp -L. -L/usr/local/pspdev/psp/sdk/lib src/GameApp.o src/GameLauncher.o -ljge100 -lfreetype -ljpeg -lgif -lpng -lz -lm -lmikmod -lpsppower -lpspmpeg -lpspaudiocodec -lpspaudiolib -lpspaudio -lpspgum -lpspgu -lpsprtc -lstdc++ -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o HelloWorld.elf
src/GameApp.o: In function `GameApp::Render()':
GameApp.cpp:(.text+0x28): undefined reference to `JRenderer::ClearScreen(unsigned int)'
GameApp.cpp:(.text+0x34): undefined reference to `JLBFont::SetColor(unsigned int)'
src/GameApp.o: In function `GameApp::Update()':
GameApp.cpp:(.text+0x88): undefined reference to `JGE::GetButtonClick(unsigned int)'
GameApp.cpp:(.text+0x9c): undefined reference to `JGE::GetButtonClick(unsigned int)'
collect2: ld returned 1 exit status
make[1]: *** [HelloWorld.elf] Error 1
make[1]: Leaving directory `/home/himanshu/Documents/JGE_1_0/JGE/Tutorials/01.HelloWorld'
make: *** [all] Error 2
"If the truth is a cruel mistress, then a lie must be a nice girl"
-
- Retired Mod
- Posts: 2744
- Joined: Fri Nov 05, 2010 5:27 pm
- Location: Over the hills and far away
Re: PSPToolchain installed - next step
You haven't set up the libraries properly. Check your pspsdk install.
Re: PSPToolchain installed - next step
I have the psptoolchain, I also need to install minPSPw too?
"If the truth is a cruel mistress, then a lie must be a nice girl"
Re: PSPToolchain installed - next step
okay I found out that I need the pspsdk which is seperate.
I got the files off ps2dev's SVN repo
I was able to run ./bootstrap easily:
./configure works as "sudo ./configure --with-pspdev" otherwise I get permission errors or environment variable errors
[spoiler][/spoiler]
Then I do "make"
[spoiler][/spoiler]
So I get a few permission errors, I do sudo make:
[spoiler][/spoiler]
I get that, I can see that it can't find psp-gcc but the environment variables are correctly set and Fedora knows they are there (I checked with the export command)
It could be because I am running as root but even without root, I have errors.
I have tried reinstalling the psptoolchain, that doesn't help.
Anyone have any idea what the problem might be?
I got the files off ps2dev's SVN repo
I was able to run ./bootstrap easily:
./configure works as "sudo ./configure --with-pspdev" otherwise I get permission errors or environment variable errors
[spoiler]
Code: Select all
[himanshu@fedora pspsdk]$ sudo ./configure --with-pspdev
checking for pspsdk version... 1.0+beta2
checking for pspdev... yes
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for psp-gcc... psp-gcc
checking for psp-g++... psp-g++
checking for psp-as... psp-as
checking for psp-ld... psp-ld
checking for psp-ar... psp-ar
checking for psp-nm... psp-nm
checking for psp-ranlib... psp-ranlib
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for getcwd... yes
checking for strchr... yes
checking for doxygen... /bin/doxygen
checking for perl... /bin/perl
checking for dot... /bin/dot
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/asfparser/Makefile
config.status: creating src/atrac3/Makefile
config.status: creating src/audio/Makefile
config.status: creating src/base/Makefile
config.status: creating src/base/linkfile.prx
config.status: creating src/ctrl/Makefile
config.status: creating src/debug/Makefile
config.status: creating src/display/Makefile
config.status: creating src/fpu/Makefile
config.status: creating src/ge/Makefile
config.status: creating src/gu/Makefile
config.status: creating src/gum/Makefile
config.status: creating src/hprm/Makefile
config.status: creating src/kernel/Makefile
config.status: creating src/libc/Makefile
config.status: creating src/mp3/Makefile
config.status: creating src/mpeg/Makefile
config.status: creating src/nand/Makefile
config.status: creating src/net/Makefile
config.status: creating src/openpsid/Makefile
config.status: creating src/power/Makefile
config.status: creating src/prof/Makefile
config.status: creating src/registry/Makefile
config.status: creating src/rtc/Makefile
config.status: creating src/sircs/Makefile
config.status: creating src/sdk/Makefile
config.status: creating src/startup/Makefile
config.status: creating src/umd/Makefile
config.status: creating src/usb/Makefile
config.status: creating src/usbstor/Makefile
config.status: creating src/user/Makefile
config.status: creating src/utility/Makefile
config.status: creating src/vfpu/Makefile
config.status: creating src/video/Makefile
config.status: creating src/vsh/Makefile
config.status: creating src/wlan/Makefile
config.status: creating src/samples/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Then I do "make"
[spoiler]
Code: Select all
[himanshu@fedora pspsdk]$ make
make all-recursive
make[1]: Entering directory `/home/himanshu/psptoolchain/pspsdk'
Making all in src
make[2]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src'
Making all in asfparser
make[3]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser'
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/kernel -g -O2 -G0 -Wall -I../../src/base -I../../src/kernel -MT sceAsfParser.o -MD -MP -MF .deps/sceAsfParser.Tpo -c -o sceAsfParser.o sceAsfParser.S
<built-in>:0: fatal error: opening dependency file .deps/sceAsfParser.Tpo: Permission denied
compilation terminated.
make[3]: *** [sceAsfParser.o] Error 1
make[3]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/himanshu/psptoolchain/pspsdk'
make: *** [all] Error 2
So I get a few permission errors, I do sudo make:
[spoiler]
Code: Select all
[himanshu@fedora pspsdk]$ sudo make
make all-recursive
make[1]: Entering directory `/home/himanshu/psptoolchain/pspsdk'
Making all in src
make[2]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src'
Making all in asfparser
make[3]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser'
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/kernel -g -O2 -G0 -Wall -I../../src/base -I../../src/kernel -MT sceAsfParser.o -MD -MP -MF .deps/sceAsfParser.Tpo -c -o sceAsfParser.o sceAsfParser.S
make[3]: psp-gcc: Command not found
make[3]: *** [sceAsfParser.o] Error 127
make[3]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/himanshu/psptoolchain/pspsdk'
make: *** [all] Error 2
I get that, I can see that it can't find psp-gcc but the environment variables are correctly set and Fedora knows they are there (I checked with the export command)
It could be because I am running as root but even without root, I have errors.
I have tried reinstalling the psptoolchain, that doesn't help.
Anyone have any idea what the problem might be?
"If the truth is a cruel mistress, then a lie must be a nice girl"
-
- VIP
- Posts: 364
- Joined: Mon Sep 27, 2010 8:22 pm
Re: PSPToolchain installed - next step
Try doing 'sudo bash' before doing 'make'hgoel0974 wrote: So I get a few permission errors, I do sudo make:
[spoiler][/spoiler]Code: Select all
[himanshu@fedora pspsdk]$ sudo make make all-recursive make[1]: Entering directory `/home/himanshu/psptoolchain/pspsdk' Making all in src make[2]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src' Making all in asfparser make[3]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser' psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/kernel -g -O2 -G0 -Wall -I../../src/base -I../../src/kernel -MT sceAsfParser.o -MD -MP -MF .deps/sceAsfParser.Tpo -c -o sceAsfParser.o sceAsfParser.S make[3]: psp-gcc: Command not found make[3]: *** [sceAsfParser.o] Error 127 make[3]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/himanshu/psptoolchain/pspsdk' make: *** [all] Error 2
Re: PSPToolchain installed - next step
I tried that, there isn't any change:
[spoiler][/spoiler]
[spoiler]
Code: Select all
[root@fedora pspsdk]# sudo bash
[root@fedora pspsdk]# make
make all-recursive
make[1]: Entering directory `/home/himanshu/psptoolchain/pspsdk'
Making all in src
make[2]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src'
Making all in asfparser
make[3]: Entering directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser'
psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/base -I../../src/kernel -g -O2 -G0 -Wall -I../../src/base -I../../src/kernel -MT sceAsfParser.o -MD -MP -MF .deps/sceAsfParser.Tpo -c -o sceAsfParser.o sceAsfParser.S
make[3]: psp-gcc: Command not found
make[3]: *** [sceAsfParser.o] Error 127
make[3]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src/asfparser'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/himanshu/psptoolchain/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/himanshu/psptoolchain/pspsdk'
make: *** [all] Error 2
"If the truth is a cruel mistress, then a lie must be a nice girl"
Re: PSPToolchain installed - next step
Okay, this is a bit embarrassing because I used to know the solution for this
I download a prebuilt binary and put it in /usr/local/pspdev/ and overwrote everything.
Now, I get this error:
[spoiler][/spoiler]
also my .bashrc is correct:
[spoiler][/spoiler]
I download a prebuilt binary and put it in /usr/local/pspdev/ and overwrote everything.
Now, I get this error:
[spoiler]
Code: Select all
[himanshu@fedora objcontrol]$ make
make: psp-config: Command not found
Makefile:15: /lib/build.mak: No such file or directory
make: *** No rule to make target `/lib/build.mak'. Stop.
[himanshu@fedora objcontrol]$
also my .bashrc is correct:
[spoiler]
Code: Select all
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export PSPDEV=/usr/local/pspdev/bin
export PSPSDK=$PSPDEV/psp/sdk
export PATH=$PATH:$PSPDEV/bin:$PSPSDK/bin
"If the truth is a cruel mistress, then a lie must be a nice girl"
Re: PSPToolchain installed - next step
Doesn't look correct.Code: Select all
# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions export PSPDEV=/usr/local/pspdev/bin export PSPSDK=$PSPDEV/psp/sdk export PATH=$PATH:$PSPDEV/bin:$PSPSDK/bin
The PSPDEV export should not include "/bin", just "/usr/local/pspdev".