GCJ: How To?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
kizura
Posts: 3
Joined: Sun Oct 21, 2007 9:16 pm

GCJ: How To?

Post by kizura »

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: Select all

 ../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 ;)
ufoz
Posts: 86
Joined: Thu Nov 10, 2005 2:36 am
Location: Tokyo
Contact:

Post by ufoz »

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)
kizura
Posts: 3
Joined: Sun Oct 21, 2007 9:16 pm

Post by kizura »

True, but one could use JNI or CNI to access C/C++ routines.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
PSPJunkie
Posts: 14
Joined: Tue Jan 23, 2007 12:55 pm
Location: Jersey
Contact:

Post by PSPJunkie »

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.
kizura
Posts: 3
Joined: Sun Oct 21, 2007 9:16 pm

Post by kizura »

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

Code: Select all

$ psp-gcj
psp-gcj: libgcj.spec: No such file or directory
I am using cygwin with Win XP.

kizura
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

That's nice! Now what?!
Post Reply