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 

GCJ: How To?

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



Joined: 21 Oct 2007
Posts: 3

PostPosted: Sun Oct 21, 2007 9:21 pm    Post subject: GCJ: How To? Reply with quote

Hi,

I checked out http://www.oopo.net/consoledev/
and everything works fine (except 009-psplinkusb.sh, which is not a
tragedy).

I tried to get GCJ (GNU Compiler for Java) to work, by just editing

005-gcc-4.1.0-stage2.sh

Line 17:
Code:

 ../configure --prefix="$PSPDEV" --target="psp" --enable-languages="c,c++,java" --with-newlib --enable-cxx-flags="-G0" || { exit 1; }


Is this all I have to do, or is there more to be done?

kizura

PS
I am not a C/C++ coder - so please don't try to convince me ;)
Back to top
View user's profile Send private message
ufoz



Joined: 10 Nov 2005
Posts: 86
Location: Tokyo

PostPosted: Mon Oct 22, 2007 1:34 am    Post subject: Reply with quote

I think it's not as much a matter of convincing, as it is a problem of the (non-) existence of libraries or C bindings that would let you get anything done. (unless I missed something)
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
kizura



Joined: 21 Oct 2007
Posts: 3

PostPosted: Mon Oct 22, 2007 2:43 am    Post subject: Reply with quote

True, but one could use JNI or CNI to access C/C++ routines.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Oct 22, 2007 3:13 am    Post subject: Reply with quote

Some things turn out to be easy, like libFLAC was. Somehow I doubt gcj will be easy, but you never know until someone tries it.
Back to top
View user's profile Send private message AIM Address
PSPJunkie



Joined: 23 Jan 2007
Posts: 14
Location: Jersey

PostPosted: Mon Oct 22, 2007 7:15 am    Post subject: Reply with quote

I researched into getting Objective-C to work, and I was able to get everything together, but I ended up getting linker errors... You can try, and good luck if you succeed.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
kizura



Joined: 21 Oct 2007
Posts: 3

PostPosted: Mon Oct 22, 2007 7:58 pm    Post subject: Reply with quote

It did compile, but now I am getting this error message:

Code:

$ psp-gcj
psp-gcj: libgcj.spec: No such file or directory


I am using cygwin with Win XP.

kizura
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Mon Oct 22, 2007 11:39 pm    Post subject: Reply with quote

That's nice! Now what?!
_________________
http://www.dbfinteractive.com
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 -> PSP 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