 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
bulb
Joined: 19 Jan 2006 Posts: 50
|
Posted: Sun Sep 09, 2007 1:57 am Post subject: psptoolchain under Mac OS X |
|
|
Hi,
I have recently acquired a Macbook and wanted to start some PSP development on it. I was using already built pspdevkit on my Windows machine before, so I was totally new to the building process of PSP SDK.
I have used nice instructions on http://www.ragnaru.com/, though I could not complete build without errors. Well, only the psplinkusb wasn't built, PSP SDK was.
Maybe the psptoolchain has been changed after the guy on http://www.ragnaru.com/ made his tutorial or my system was cleaner than his - I didn't install any required package by hand, I was only using MacPorts and here lies the problem. MacPorts installs everything in /opt directory, but psplinkusb requires certain things in /usr directory.
Here are further steps if you want to successfully build psplinkusb on Mac OS X:
1. Assuming you are in the psptoolchain directory, type: cd build
2. Type:
export C_INCLUDE_PATH="/opt/local/include"
export CPLUS_INCLUDE_PATH="/opt/local/include"
export LIBRARY_PATH="/opt/local/lib"
3. Change psplinkusb/Makefile.clients to make SDL version of remotejoy (remove conditional build):
$(MAKE) -C tools/remotejoy/pcsdl all
$(MAKE) -C tools/remotejoy/pcsdl install
$(MAKE) -C tools/remotejoy/pcsdl clean
4. Change /psplinkusb/tools/remotejoy/pcsdl/Makefile:
Add -DSOL_TCP=6 to CFLAGS
5. Build psplinkusb with ../scripts/009-psplinkusb.sh
You can get away with symbolic links (for step 2 and 3), though I favour this approach. Missing definition workaround is really nasty, I would really like to know which required package I am missing.
Regards,
B. |
|
| Back to top |
|
 |
BlackDiamond
Joined: 02 Jul 2005 Posts: 16 Location: Paris, FRANCE
|
Posted: Mon Sep 10, 2007 8:12 pm Post subject: |
|
|
For step 4, you should instead add to CFLAGS -DSOL_TCP=IPPROTO_TCP since this is the equivalent under Mac OS X (and, I guess, other BSDs). I already found find all those by trial and error. Maybe something like:
| Code: | #ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif |
should be added in one of the header files.
Btw, I actually use Eclipse for easy remote debugging :p. Can XCode work well with psp-gdb? |
|
| Back to top |
|
 |
bulb
Joined: 19 Jan 2006 Posts: 50
|
Posted: Mon Sep 10, 2007 8:46 pm Post subject: |
|
|
| I haven't tried XCode yet, had to solve a problem with usbhostfs_pc first. Will post how XCode fares. |
|
| Back to top |
|
 |
|
|
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
|