Error running toolchain

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Error running toolchain

Post by YellowShadow »

I'm building the toolchain in Windows using Cygwin. I checked out the latest version from the SVN but it says it can't find gmp. I installed gmp and from the cygwin install program and re-ran the toolchain only to get the same error. Am I missing something here?

Can anyone help?

Thanks!
------------------------
I develop games :)
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Post by YellowShadow »

There is no package called gmp-devel and mpfr-devel, but I've installed gmp and mpfr (thats how they were listed in the package selection screen).
------------------------
I develop games :)
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

Hey..
I had the same problem. It's was a while ago. but you have to search for
libmpfr-devel
and
libgmp-devel

But after i installed that i got some other problems. so im now trying to instal in with MINGW MSYS instead of Cygwin.
YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Post by YellowShadow »

jojojoris wrote:Hey..
I had the same problem. It's was a while ago. but you have to search for
libmpfr-devel
and
libgmp-devel

But after i installed that i got some other problems. so im now trying to instal in with MINGW MSYS instead of Cygwin.
Oh okay, thanks will try that :D
------------------------
I develop games :)
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

jojojoris if you use the SVN scripts directly with MSYS (no cygwin) they won't work, you have to modify them or just use my patched scripts (http://minpspw.sf.net) then you can use them under windows without cygwin.

To make it even easier you can just download the win32 binary and you have a working SDK without any work.

Cheers
YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Post by YellowShadow »

Okay now I'm getting a new error saying this:

Code: Select all

$ ./toolchain.sh
ERROR: Add C:/cygwin/usr/local/pspdev/bin to your path before continuing.
../depends/check-pspdev.sh: Failed.
My cygwin.bat file says

Code: Select all

@echo off

C:
chdir C:\cygwin\bin

set PSPDEV=C:/cygwin/usr/local/pspdev
set PATH=%PATH%;C:/cygwin/usr/local/pspdev/bin

bash --login -i
Am I doing something wrong here?
------------------------
I develop games :)
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Yes. Whatever tutorial you used, it is outdated.

Here is an up-to-date tutorial on setting up the toolchain:
http://www.psp-programming.com/forums/i ... ,62.0.html

What you need to do is step 5.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Post by YellowShadow »

Raphael wrote:Yes. Whatever tutorial you used, it is outdated.

Here is an up-to-date tutorial on setting up the toolchain:
http://www.psp-programming.com/forums/i ... ,62.0.html

What you need to do is step 5.
Thanks,

It worked :D
------------------------
I develop games :)
YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Post by YellowShadow »

How do I install the psp version of libraries like TinyXML, SDL, SDL_Image, SDL_Mixer, etc...

I know there in the ps2dev svn but don't know how to install them through cygwin.
------------------------
I develop games :)
kralyk
Posts: 114
Joined: Sun Apr 06, 2008 8:18 pm
Location: Czech Republic, central EU

Post by kralyk »

Why do you use cygwin on windows? Whats the benefit over heimdall's native sdk?
...sorry for my english...
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

YellowShadow wrote:How do I install the psp version of libraries like TinyXML, SDL, SDL_Image, SDL_Mixer, etc...

I know there in the ps2dev svn but don't know how to install them through cygwin.
Most of the time it's just:

Code: Select all

svn co svn&#58;//svn.ps2dev.org/psp/trunk/libraryname
cd libraryname
make && make install
Generally, you should read the included readme.txt or readme.psp before doing the make && make install step, as it contains exact information on how to make and install the libary.
kralyk wrote:Why do you use cygwin on windows? Whats the benefit over heimdall's native sdk?
Because it creates a POSIX environment that the toolchain natively requires for compilation. Heimdall's SDK works just fine, because it's precompiled and that environment isn't needed any more for plain compilation of your projects, unless you want to recompile the toolchain. It's perfectly fine if you just want to get a development setup working without caring for keeping up to date unless a new build is created.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

well..

If you want the fastest toolchain you have to install Linux in your PC. I've Ubuntu installed on my PC to. (yes i have a dual boot). Building the toolchain on Linux is faster because cygwin is an emulator which is always slower.

With linux you shouldn't have any problems if you follow the instructions.
YellowShadow
Posts: 7
Joined: Wed Aug 27, 2008 12:35 pm

Post by YellowShadow »

I'm trying to compile SDL and when I did this line:

Code: Select all

./configure --host psp --prefix=$&#40;psp-config --psp-prefix&#41;
I get the following stuff in the console and it fails:

Code: Select all

configure&#58; WARNING&#58; 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... i686-pc-cygwin
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $&#40;MAKE&#41;... yes
checking for psp-strip... psp-strip
checking for style of include used by make... GNU
checking for psp-gcc... psp-gcc
checking for C compiler default output file name...
configure&#58; error&#58; C compiler cannot create executables
See `config.log' for more details.
What am I doing wrong?

Also where can I find a list of libraries that are in the svn trunk and if I were to update the psptoolchain would I have to rebuild the whole thing or what? How would I do that?

Thanks
------------------------
I develop games :)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

svn checkout svn&#58;//svn.ps2dev.org/psp/trunk/psplibraries
cd psplibraries
sudo ./libraries-sudo.sh
Enjoy!
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

cygwin is an emulator
Poppycock.
Post Reply