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 

Need help with Toolchain

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



Joined: 31 Oct 2008
Posts: 9

PostPosted: Fri Oct 31, 2008 7:11 pm    Post subject: Need help with Toolchain Reply with quote

Ok,

So I have tried, many many many times, to get this to compile properly, to no avail.

I install all of the correct packages, but i always get the same errors.

Like just now I got the same error ive been having the most trouble with.

ls: cannot access /usr/include/gmp.h: No such file or directory
ERROR: Install gmp before continuing
..depends/check-gmp.sh: Failed
ERROR: Could not run the toolchain script.

Now,

Ive tried removing the checking file from that directory, and I get the exact same error for both readline and mpfr

I have these packages installed, so I have no idea why this is happening.

I have also uninstalled, and reinstalled all of them. Along with uninstalling everything and reinstalling it again more than a few times, still no luck.

Anyone have any ideas as to what i might be missing?
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Fri Oct 31, 2008 7:26 pm    Post subject: Re: Need help with Toolchain Reply with quote

Nava wrote:
Ok,

So I have tried, many many many times, to get this to compile properly, to no avail.

I install all of the correct packages, but i always get the same errors.

Like just now I got the same error ive been having the most trouble with.

ls: cannot access /usr/include/gmp.h: No such file or directory
ERROR: Install gmp before continuing
..depends/check-gmp.sh: Failed
ERROR: Could not run the toolchain script.

Now,

Ive tried removing the checking file from that directory, and I get the exact same error for both readline and mpfr

I have these packages installed, so I have no idea why this is happening.

I have also uninstalled, and reinstalled all of them. Along with uninstalling everything and reinstalling it again more than a few times, still no luck.

Anyone have any ideas as to what i might be missing?


Perhaps the toolchain is looking in the wrong location.

I bet this is the case, try looking in /opt/local/include for gmp.h , if its there point the toolchain to that directory.

Wally
Back to top
View user's profile Send private message AIM Address
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Fri Oct 31, 2008 7:49 pm    Post subject: Reply with quote

I dont have an opt folder...


Something must be wrong here, and ive followed multiple guides, on my numerous installations
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Fri Oct 31, 2008 9:33 pm    Post subject: Reply with quote

gmp & mpfr are now required by the toolchain so install them.

You don't mention what platform you're on, but you also need to install readline too.
Back to top
View user's profile Send private message
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Sat Nov 01, 2008 6:52 am    Post subject: Reply with quote

I have all 3 of them installed, thats what doesnt make any sense.

Im also running on a Windows XP Home Edition SP3
Back to top
View user's profile Send private message
bkc



Joined: 20 May 2008
Posts: 20
Location: Sweden

PostPosted: Sat Nov 01, 2008 6:53 am    Post subject: Reply with quote

If your running under Windows XP... why not use MinPSPW? then you won't have to use cygwin :-)

Edit: And (almost) all libraries exists as "addons" (devpaks), like in Dev-C++ :-) Really easy to use
_________________
I only speak these languages:

  • C / C + +
  • ASM
  • Python
  • (x)HTML
  • PHP
  • CSS
  • SQL
  • JavaScript
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Mon Nov 03, 2008 7:22 am    Post subject: Reply with quote

@ bkc

Do you think that you could provide me with a link to MinPSPW?

I just want to make sure I get the right stuff, lol, I would like to have no problems with this installation :-)
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Mon Nov 03, 2008 7:33 am    Post subject: Reply with quote

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



Joined: 31 Oct 2008
Posts: 9

PostPosted: Mon Nov 03, 2008 12:14 pm    Post subject: Reply with quote

Well seeing as how I have this thread open I figured I would ask my next question in here instead of opening a whole new thread.

Im in the process of learning C#, and I was wondering if I code something for the PSP and compile it, will it run? Or do I have to learn C/C++ or Java?
Back to top
View user's profile Send private message
bkc



Joined: 20 May 2008
Posts: 20
Location: Sweden

PostPosted: Tue Nov 04, 2008 5:09 am    Post subject: Reply with quote

The psptoolchain only handles C/C++ what I know of... With Java you need a program to run the program... just like on windows / linux :-)
_________________
I only speak these languages:

  • C / C + +
  • ASM
  • Python
  • (x)HTML
  • PHP
  • CSS
  • SQL
  • JavaScript
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Tue Nov 04, 2008 5:10 am    Post subject: Reply with quote

It does compile ASM too
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
bkc



Joined: 20 May 2008
Posts: 20
Location: Sweden

PostPosted: Tue Nov 04, 2008 5:14 am    Post subject: Reply with quote

Right... sry... forgot that one xD
_________________
I only speak these languages:

  • C / C + +
  • ASM
  • Python
  • (x)HTML
  • PHP
  • CSS
  • SQL
  • JavaScript
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Tue Nov 04, 2008 10:22 am    Post subject: Reply with quote

Well, Ive been told in my learnings that C# is extremely similar to C/C++, so I guess it cant hurt to try and compile a hello world program in C# right?
Back to top
View user's profile Send private message
pspjoke



Joined: 23 Jun 2008
Posts: 14

PostPosted: Tue Nov 04, 2008 12:55 pm    Post subject: gmp mprf Reply with quote

u have to install the devel packages of those.
i got thrown off with this problem to a lil bit ago...
Back to top
View user's profile Send private message
Onii



Joined: 05 Oct 2008
Posts: 40

PostPosted: Tue Nov 04, 2008 1:35 pm    Post subject: Reply with quote

C# code will not compile under a c++ compiler. They are completely different.
Back to top
View user's profile Send private message
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Tue Nov 04, 2008 3:34 pm    Post subject: Reply with quote

Could someone tell me the devel packages i would need to compile it in C# and maybe a compiler?

Or am I going to have to start all over and learn C/C++
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Nov 04, 2008 5:29 pm    Post subject: Reply with quote

You'd need Mono to compile C#, and it's not available for the PSP at this time. Your full choice of languages on the PSP are: MIPS assembly, C, C++, Obj-C, D, Lua, Python, sdlBasic, and J2ME. Someone let me know if I missed one. :)
Back to top
View user's profile Send private message AIM Address
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Tue Nov 04, 2008 5:35 pm    Post subject: Reply with quote

@ J.F.

Which one of those languages would be the easiest to learn?

Having to start all over again seems a little tedious lol, so Id like the learning to go smoothly :-)
Back to top
View user's profile Send private message
bkc



Joined: 20 May 2008
Posts: 20
Location: Sweden

PostPosted: Tue Nov 04, 2008 6:38 pm    Post subject: Reply with quote

Well... J2ME is Java (Java 2 Micro Edition (correct me if I'm wrong) ) and LUA should be fairly similar to Basic if I have understoud it right...

i personally think that C/C++ is fairly simple... but thats just me ;-)
_________________
I only speak these languages:

  • C / C + +
  • ASM
  • Python
  • (x)HTML
  • PHP
  • CSS
  • SQL
  • JavaScript
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Nava



Joined: 31 Oct 2008
Posts: 9

PostPosted: Tue Nov 04, 2008 10:25 pm    Post subject: Reply with quote

I heard that for Java you need to have other programs to make it run? Or is that just for the PC?

Also do you think that learning LUA will be easier seeing as how it has such a big help forum here on the boards? Or is Java less complex?


LOL, sorry for all the questions, I dont mean to be a nag and all, Im just curious before I choose one and start learning.
Back to top
View user's profile Send private message
bkc



Joined: 20 May 2008
Posts: 20
Location: Sweden

PostPosted: Tue Nov 04, 2008 11:02 pm    Post subject: Reply with quote

Well... as explained by J.F. you will need J2ME to run Java programs... For LUA you'll need "LUA Player", LUA should be fairly simple to learn sense it's a scripting language ( sure looks that way :-D ) and looks a lot like the old Basic-language ( but with more functunality like wlan and stuff... )
_________________
I only speak these languages:

  • C / C + +
  • ASM
  • Python
  • (x)HTML
  • PHP
  • CSS
  • SQL
  • JavaScript
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Nov 05, 2008 8:19 am    Post subject: Reply with quote

There's two different versions of J2ME floating around. There's also regular python and stackless python. There's LuaPlayer and the Lua libraries for Lua. Seems to be two of everything. :)

Lua and python would probably be the easiest to learn, and sdlBasic would probably be next.

If you know Java, J2ME would be fairly easy to learn.

C/C++/D are all about the same. They aren't that hard to learn, but certainly harder than Lua or python or Basic.

MIPS assembly would be the hardest for most people. For some odd reason, most programmer totally choke on assembly. That's because they're totaly spoiled with Lua and python. :D When I first started programming, we had assembly and we were thankful! You wrote the program to fit in 368 bytes (by hand), and entered it with DIP switches. Anywho, it seems that unless you started out with assembly, programmers never become comfortable at working with it. All my original programs were 100% assembly. Even in Windows.
Back to top
View user's profile Send private message AIM Address
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