| View previous topic :: View next topic |
| Author |
Message |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Fri Oct 31, 2008 7:11 pm Post subject: Need help with Toolchain |
|
|
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 |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Fri Oct 31, 2008 7:26 pm Post subject: Re: Need help with Toolchain |
|
|
| 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 |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Fri Oct 31, 2008 7:49 pm Post subject: |
|
|
I dont have an opt folder...
Something must be wrong here, and ive followed multiple guides, on my numerous installations |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Fri Oct 31, 2008 9:33 pm Post subject: |
|
|
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 |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Sat Nov 01, 2008 6:52 am Post subject: |
|
|
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 |
|
 |
bkc

Joined: 20 May 2008 Posts: 20 Location: Sweden
|
Posted: Sat Nov 01, 2008 6:53 am Post subject: |
|
|
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 |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Mon Nov 03, 2008 7:22 am Post subject: |
|
|
@ 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 |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
|
| Back to top |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Mon Nov 03, 2008 12:14 pm Post subject: |
|
|
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 |
|
 |
bkc

Joined: 20 May 2008 Posts: 20 Location: Sweden
|
Posted: Tue Nov 04, 2008 5:09 am Post subject: |
|
|
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 |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Tue Nov 04, 2008 5:10 am Post subject: |
|
|
It does compile ASM too _________________
Upgrade your PSP |
|
| Back to top |
|
 |
bkc

Joined: 20 May 2008 Posts: 20 Location: Sweden
|
Posted: Tue Nov 04, 2008 5:14 am Post subject: |
|
|
Right... sry... forgot that one xD _________________ I only speak these languages:
- C / C + +
- ASM
- Python
- (x)HTML
- PHP
- CSS
- SQL
- JavaScript
|
|
| Back to top |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Tue Nov 04, 2008 10:22 am Post subject: |
|
|
| 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 |
|
 |
pspjoke
Joined: 23 Jun 2008 Posts: 14
|
Posted: Tue Nov 04, 2008 12:55 pm Post subject: gmp mprf |
|
|
u have to install the devel packages of those.
i got thrown off with this problem to a lil bit ago... |
|
| Back to top |
|
 |
Onii
Joined: 05 Oct 2008 Posts: 40
|
Posted: Tue Nov 04, 2008 1:35 pm Post subject: |
|
|
| C# code will not compile under a c++ compiler. They are completely different. |
|
| Back to top |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Tue Nov 04, 2008 3:34 pm Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Nov 04, 2008 5:29 pm Post subject: |
|
|
| 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 |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Tue Nov 04, 2008 5:35 pm Post subject: |
|
|
@ 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 |
|
 |
bkc

Joined: 20 May 2008 Posts: 20 Location: Sweden
|
Posted: Tue Nov 04, 2008 6:38 pm Post subject: |
|
|
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 |
|
 |
Nava
Joined: 31 Oct 2008 Posts: 9
|
Posted: Tue Nov 04, 2008 10:25 pm Post subject: |
|
|
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 |
|
 |
bkc

Joined: 20 May 2008 Posts: 20 Location: Sweden
|
Posted: Tue Nov 04, 2008 11:02 pm Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Nov 05, 2008 8:19 am Post subject: |
|
|
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 |
|
 |
|