The make_self_npdrm binary is included.Code:
gcc make_self.c -DNPDRM -I/opt/local/include -I/opt/local -L/opt/local/lib -lgmp -lcrypto -lz -o build/make_self_npdrm
/usr/local/ps3dev/ps3/sdk/bin/make_self_npdrm: Mach-O executable i386
WELL THEN THAT WAS JUST A HUGE WASTE OF TIME THEN WASN'T IT?
Alright well, **** it, I just wont build it then, hahaha.
But the libraries should be able to have both architectures built at the same time... oh well.
Thanks a lot man, much appreciated.
Now I can build and make pkg files right on my computer instead of using the VM
Awesome, thanks a lot man, I'll re-add your link in my tutorial (I removed it cause of these problems).Code:
$ make pkg
make: `/Users/leonblade/Desktop/samples/camera/camera.self' is up to date.
ELF header size @ 40
8 program headers @ 40
26 section headers @ 51188
deflated...processing segment 0 with rlen 10510 len 7510 offset 0...encrypted...
deflated...processing segment 1 with rlen 135f0 len cef offset 20000...encrypted...
deflated...processing segment 2 with rlen 6d0 len 3c1 offset 40000...encrypted...
deflated...processing segment 3 with rlen 1000 len 13f offset 50000...encrypted...
processing segment 4 with rlen 0 len 0 offset 51000...encrypted...
processing segment 5 with rlen 0 len 0 offset 30004...
processing segment 6 with rlen 0 len 0 offset 0...
processing segment 7 with rlen 28 len 28 offset 104e8...
built crypt data
self written in memory
[X] Magic: 7f504b47
[X] Type: 00000001
[X] Offset to package info: 000000c0
[ ] unk1: 00000005
[X] Head Size: 00000080
[X] Item Count: 00000004
[X] Package Size: 000000000000d570
[X] Data Offset: 0000000000000140
[X] Data Size: 000000000000d3d0
[X] ContentID: 'UP0001-TEST0CAM0_00-0000000000000000'
[X] QA_Digest: 29E68C673E76975B8FE03D348F889CF
[X] K Licensee: 00000000000000000000000000000000
LeonBlade, thanks for testing this and helping with working out the bugs. I uploaded a new version with the GMP stuff working and I added the AsbestOS tools.
To anyone else that is going to install this, please make a quick post to let me know everything works.
After I get some people saying all is good, I will spread the word more.
Here is the new version.
ondrovic, all the files are located in /usr/local/ps3dev/
So are you overriding any of the Macports installed files or is this completely independent now?
I notice in your postinstall script you replace the user's bash_profile to set up the necessary dev paths.
It would be much better to ADD the necessary entries to the existing profile to avoid removing any other changes the user may have already made in their bash_profile.
Everything is installed into /usr/local/ps3dev, /usr/local/lib, and /usr/local/include. The .bash_profile and .ps3 folder is now moved to old_bash_profile and old_ps3.
This way the user can add what they had before. I don't want to add the paths because they might end up with both paths. The old method that does not have "host" and the new one that does.
I removed all my Macports before installing.
Running postinstall in Terminal after installing P3SDK_Small.pkg I get the following:
mv: rename /usr/ps3 to /Users/user13/.ps3: No such file or directory
mv: rename /usr/bash_profile to /Users/user13/.bash_profile: No such file or directory
Thanks, here is a quick fix.
Although not a problem, I can see the "minor" errors displayed when a previous ~/.profile and/or ~/.ps3 folder don't exist causing new users some confusion and belief that something failed.
I would suggest modifying your postinstall script with a few simple checks:
if [ -e ~/.ps3 ]
sudo mv ~/.ps3 ~/old_ps3
if [ -e ~/.bash_profile ]
sudo mv ~/.bash_profile ~/old_bash_profile
if [ -e ~/.profile ]
sudo mv ~/.profile ~/old_profile
sudo mv /usr/local/ps3dev/ps3-keys ~/.ps3
sudo mv /usr/local/ps3dev/profile ~/.profile
I'm now getting the following when trying to compile any of the PSL1GHT samples:
Makefile:6: /usr/local/ps3dev/psl1ght/host/ppu.mk: No such file or directory
make: *** No rule to make target `/usr/local/ps3dev/psl1ght/host/ppu.mk'. Stop.