| View previous topic :: View next topic |
| Author |
Message |
dXtr
Joined: 09 Mar 2008 Posts: 3
|
Posted: Sun Mar 09, 2008 10:35 am Post subject: Need help wih cross compilation setup |
|
|
Hi, I've been reading here on and off now for some time and thought I finally setup my Ubuntu PC so I can start doing some otheros coding of mine own :)
So I've followed the few guides I've found
I think it was this one:
http://mikearthur.co.uk/2007/12/15/ibm-cell-sdksdk-for-multicore-acceleration-on-debianubuntu-howto/
and tried to install the packages talked about here:
http://forums.ps2dev.org/viewtopic.php?t=9855
Right now my PS3 has psubuntu installed so I can more easily try if my cross compilation environment works.
I wrote a simple test:
| Code: |
#include <stdio.h>
int main()
{
printf("Hello, world!\n");
return(0);
}
|
Compiled with "ppu-gcc Main.cpp"and copied a.out over to the PS3.
And tried to run, everything went OK.
So now I tried the same code but compiled it with ppu-g++ to see if compiling C++ code would work, no problem so I tried running it and all I get in the terminal on the PS3 is something like:
"error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory"
Anyone happend to know what could be wrong?
Thanks. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Sun Mar 09, 2008 6:10 pm Post subject: |
|
|
| apt-get install libstdc++6 |
|
| Back to top |
|
 |
dXtr
Joined: 09 Mar 2008 Posts: 3
|
Posted: Mon Mar 10, 2008 9:41 am Post subject: |
|
|
Thanks, tried it.. but as I already suspected it was already installed.
Any other ideas?
Thanks. |
|
| Back to top |
|
 |
dXtr
Joined: 09 Mar 2008 Posts: 3
|
Posted: Mon Mar 10, 2008 10:10 am Post subject: |
|
|
Solved it.
Aprently he was searching for a 64bit version of libstdc++ that wasn't installed. doh! ;)
So all I did was
sudo apt-get install lib64stdc++6
And then it finally worked. |
|
| Back to top |
|
 |
munckfish
Joined: 18 Apr 2008 Posts: 1 Location: Edinburgh, UK
|
Posted: Thu May 29, 2008 6:22 am Post subject: |
|
|
sudo apt-get install gcc-multilib
... should install everything you need to compile/link for 64 bit. |
|
| Back to top |
|
 |
|