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 wih cross compilation setup

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



Joined: 09 Mar 2008
Posts: 3

PostPosted: Sun Mar 09, 2008 10:35 am    Post subject: Need help wih cross compilation setup Reply with quote

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
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sun Mar 09, 2008 6:10 pm    Post subject: Reply with quote

apt-get install libstdc++6
Back to top
View user's profile Send private message
dXtr



Joined: 09 Mar 2008
Posts: 3

PostPosted: Mon Mar 10, 2008 9:41 am    Post subject: Reply with quote

Thanks, tried it.. but as I already suspected it was already installed.
Any other ideas?

Thanks.
Back to top
View user's profile Send private message
dXtr



Joined: 09 Mar 2008
Posts: 3

PostPosted: Mon Mar 10, 2008 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
munckfish



Joined: 18 Apr 2008
Posts: 1
Location: Edinburgh, UK

PostPosted: Thu May 29, 2008 6:22 am    Post subject: Reply with quote

sudo apt-get install gcc-multilib

... should install everything you need to compile/link for 64 bit.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 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