ubuntu 9.04 + pspsdk? Anyone tried?
ubuntu 9.04 + pspsdk? Anyone tried?
Does anyone tried PSP Developing Kit on ubuntu 9.04 ? I want to upgrade my current ubuntu version, but if i will have troubles with sdk....
-
- Posts: 91
- Joined: Sun Feb 22, 2009 8:32 am
- Location: Melbourne Australia ZOMG
Install gcc 4.2 like the readme-ubuntu.txt say, and run toolchain-sudo.sh script instead toolchain.sh, it solve your problem.
There's still a little problem with psplibraries :
There's still a little problem with psplibraries :
Code: Select all
running `aclocal -I .'
running `libtoolize --copy'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
running `autoconf'
cd builds/unix; ./configure --host psp --prefix=/usr/local/pspdev/psp
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... /bin/bash: ./config.guess: No such file or directory
configure: error: cannot guess build type; you must specify one
make: *** [builds/unix/unix-def.mk] Erreur 1
../scripts/003-freetype.sh: Failed.
ERROR: Could not run the libraries script.
I had 8.10 with PSPSDK, now i upgraded (don't like 9.04 going to reinstall 8.10) and PSPSDK works (first thing I tried)... but I haven't tried reinstalling/upgrading the pspsdk yet thou... but going to install dualboot 8.10 and 9.04 like today after school... so when I'm done with that I'll post the results :-)
// BKC
// BKC
I only speak these languages:
- C / C + +
- (x)HTML
- PHP
- CSS
- SQL
- JavaScript
When I get some time, 4.2 was the next thing I was gonna try. I figured it was too soon for someone to have worked out the problems with the new gcc. Also, I either chown the pspdev directory, or like this time, I put pspdev in my user directory. So I don't need to use sudo. That's a big unneeded pain in the rear.Cpasjuste wrote:Install gcc 4.2 like the readme-ubuntu.txt say, and run toolchain-sudo.sh script instead toolchain.sh, it solve your problem.
Doing anything as superuser is to be discouraged. It's best to either own the directory being messed with, or even better to keep it all in the user's home directory. Less chance of causing a problem to the system that way. Not to mention, by keeping it in the user home, you never have to worry about when sudo is needed, and when it's not - it's NEVER needed. I really think that all the tutorials and readmes need to be altered to advise people to set the pspdev directory to something like /home/user/Tools/pspdev.
I do the same, but we still need to use the sudo.sh script else it will still give the error (dunno why).J.F. wrote:When I get some time, 4.2 was the next thing I was gonna try. I figured it was too soon for someone to have worked out the problems with the new gcc. Also, I either chown the pspdev directory, or like this time, I put pspdev in my user directory. So I don't need to use sudo. That's a big unneeded pain in the rear.Cpasjuste wrote:Install gcc 4.2 like the readme-ubuntu.txt say, and run toolchain-sudo.sh script instead toolchain.sh, it solve your problem.
-
- Posts: 3
- Joined: Fri May 01, 2009 6:30 am
- Location: Sofia, Bulgaria
- Contact:
I got it to this point:
Ubuntu 9.04
EDIT: As it seems it's going to be one hell of a fight to build the toolchain on 9.04, so I've decided to give Debian 5 a try on a virtual machine (virtualbox) (if I like it, I'm moving to Debian ^^)
Code: Select all
../scripts/004-newlib-1.15.0.sh: Failed.
ERROR: Could not run the toolchain script.
EDIT: As it seems it's going to be one hell of a fight to build the toolchain on 9.04, so I've decided to give Debian 5 a try on a virtual machine (virtualbox) (if I like it, I'm moving to Debian ^^)
null
Okay, here's how you do it.
To make the toolchain:
Make sure all the dependencies are installed, along with gcc 4.2.
Run "CC=gcc-4.2 ./toolchain.sh" to compile and install the toolchain.
To make the libraries:
After you checkout psplibraries, edit scripts/003-freetype.sh to look like this:
Note the three new lines after "cd freetype || { exit 1; } "
Then run "./libraries.sh"
Everything should work fine.
To make the toolchain:
Make sure all the dependencies are installed, along with gcc 4.2.
Run "CC=gcc-4.2 ./toolchain.sh" to compile and install the toolchain.
To make the libraries:
After you checkout psplibraries, edit scripts/003-freetype.sh to look like this:
Code: Select all
#!/bin/sh
# freetype.sh by Dan Peori (danpeori@oopo.net)
## Download the latest source code.
if test ! -d "freetype"; then
svn checkout svn://svn.ps2dev.org/psp/trunk/freetype || { exit 1; }
else
svn update freetype || { exit 1; }
fi
## Enter the source directory.
cd freetype || { exit 1; }
cd builds/unix
automake --add-missing
cd ../..
## Bootstrap the source.
sh autogen.sh || { exit 1; }
## Configure the build.
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./configure --host psp --prefix=$(psp-config --psp-prefix) || { exit 1; }
## Compile and install.
make clean && make -j2 && make install && make clean || { exit 1; }
Then run "./libraries.sh"
Everything should work fine.
I'm not trying to hijack the topic but I just uploaded my first build for Ubuntu 9.04.
https://sourceforge.net/project/downloa ... a=39071053
It packages the sames SDK and libs that my MinPSPW ships with. It worked around the binutils bug and was build with host GCC 4.3.3.
Overall it is composed of:
binutils 1.16.1
gcc 4.3.3
newlib 1.17
- zlib
- bzip2
- freetype
- jpeg
- libbulletml
- libmad
- libmikmod
- libogg
- libpng
- libpspvram
- libTremor
- libvorbis
- lua
- pspgl
- pspirkeyb
- sqlite
- SDL
- SDL_gfx
- SDL_image
- SDL_mixer
- SDL_ttf
- smpeg
- zziplib
Add has support for C, C++, ObjC, ObjC++ I'm still learning on how to create deb files so for now it is only a tar.gz that you can extract whereever you want but make sure you add the bin directory to your path :)
https://sourceforge.net/project/downloa ... a=39071053
It packages the sames SDK and libs that my MinPSPW ships with. It worked around the binutils bug and was build with host GCC 4.3.3.
Overall it is composed of:
binutils 1.16.1
gcc 4.3.3
newlib 1.17
- zlib
- bzip2
- freetype
- jpeg
- libbulletml
- libmad
- libmikmod
- libogg
- libpng
- libpspvram
- libTremor
- libvorbis
- lua
- pspgl
- pspirkeyb
- sqlite
- SDL
- SDL_gfx
- SDL_image
- SDL_mixer
- SDL_ttf
- smpeg
- zziplib
Add has support for C, C++, ObjC, ObjC++ I'm still learning on how to create deb files so for now it is only a tar.gz that you can extract whereever you want but make sure you add the bin directory to your path :)
-
- Posts: 3
- Joined: Fri May 01, 2009 6:30 am
- Location: Sofia, Bulgaria
- Contact:
I get the following error from ./configure when trying to compile the freetype library (and I have patched the script as shown above):
Any ideas how I can resolve that?
Code: Select all
configure:2550: gcc-4.2 -L/home/qbradq/Public/working/pspdev/psp/sdk/lib -lc -lpspuser conftest.c >&5
/usr/bin/ld: skipping incompatible /home/qbradq/Public/working/pspdev/psp/sdk/lib/libpspuser.a when searching for -lpspuser
/usr/bin/ld: cannot find -lpspuser
collect2: ld returned 1 exit status
I want to know too.coolkehon wrote:i always wondered why dont you guys just fix that script in the repos
BTW: I am installing the SDK+LIBRARIES on 9.04 now.
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
Because it was never a problem until just recently. I think the maintainers were hoping it was an issue in gcc that would be fixed in an upcoming release so they wouldn't have to patch around the issue.jojojoris wrote:I want to know too.coolkehon wrote:i always wondered why dont you guys just fix that script in the repos