forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error running toolchain

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Wed Aug 27, 2008 12:39 pm    Post subject: Error running toolchain Reply with quote

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 :)
Back to top
View user's profile Send private message AIM Address
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Wed Aug 27, 2008 1:03 pm    Post subject: Reply with quote

http://forums.ps2dev.org/viewtopic.php?t=10889
Back to top
View user's profile Send private message
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Wed Aug 27, 2008 2:10 pm    Post subject: Reply with quote

Insert_witty_name wrote:
http://forums.ps2dev.org/viewtopic.php?t=10889


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 :)
Back to top
View user's profile Send private message AIM Address
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Wed Aug 27, 2008 4:48 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Wed Aug 27, 2008 4:52 pm    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message AIM Address
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Wed Aug 27, 2008 5:18 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Thu Aug 28, 2008 3:30 am    Post subject: Reply with quote

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

Code:

$ ./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:

@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 :)
Back to top
View user's profile Send private message AIM Address
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Aug 28, 2008 3:44 am    Post subject: Reply with quote

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/index.php/topic,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
Back to top
View user's profile Send private message Visit poster's website
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Thu Aug 28, 2008 1:00 pm    Post subject: Reply with quote

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/index.php/topic,62.0.html

What you need to do is step 5.


Thanks,

It worked :D
_________________
------------------------
I develop games :)
Back to top
View user's profile Send private message AIM Address
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Thu Aug 28, 2008 2:41 pm    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message AIM Address
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Thu Aug 28, 2008 7:33 pm    Post subject: Reply with quote

Why do you use cygwin on windows? Whats the benefit over heimdall's native sdk?
_________________
...sorry for my english...
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Aug 28, 2008 9:22 pm    Post subject: Reply with quote

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:

svn co svn://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
Back to top
View user's profile Send private message Visit poster's website
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Thu Aug 28, 2008 9:29 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
YellowShadow



Joined: 27 Aug 2008
Posts: 7

PostPosted: Fri Aug 29, 2008 2:01 am    Post subject: Reply with quote

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

Code:

./configure --host psp --prefix=$(psp-config --psp-prefix)


I get the following stuff in the console and it fails:

Code:

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... 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 $(MAKE)... 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: error: 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 :)
Back to top
View user's profile Send private message AIM Address
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Aug 29, 2008 3:42 am    Post subject: Reply with quote

Code:
svn checkout svn://svn.ps2dev.org/psp/trunk/psplibraries
cd psplibraries
sudo ./libraries-sudo.sh

Enjoy!
Back to top
View user's profile Send private message Visit poster's website
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Fri Aug 29, 2008 7:57 am    Post subject: Reply with quote

Quote:
cygwin is an emulator

Poppycock.
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group