You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Christian Schaffner <ch...@users.sourceforge.net> on 2004/05/24 14:01:46 UTC

Status of Swig Java bindings on Mac OS X?

Dear Subversion Developers


I am trying to include the swig java bindings into the Mac OS X Fink  
package. What i do is (on the 1.0.4 tarball):

./configure --prefix=/sw --libexecdir='${prefix}/lib/svn'  
--mandir='${prefix}/share/man' --infodir='${prefix}/share/info'  
--with-neon=/sw --with-apr=/sw --with-apr-util=/sw --enable-shared  
--with-apxs=/sw/sbin/apxs --without-apache --disable-mod-activation  
--with-jdk=/System/Library/Frameworks/JavaVM.framework/Versions/ 
CurrentJDK/Home --with-swig --with-python=/sw/bin/python2.3  
--with-perl=perl5.8.1

make
make swig-java
make install-swig-java DESTDIR=/sw/src/root-svn-ssl-1.0.4-11  
swig_javadir=/sw/share/java/svn-ssl

A few things seem strange to me:

During 'make install-swig-java' i see lines like:

cd subversion/bindings/swig/java && /bin/sh  
/sw/src/svn-ssl-1.0.4-11/subversion-1.0.4/libtool --silent --mode=link  
gcc -Wl,-F. -Wl,-F. -bundle -framework Python  
-L/sw/src/svn-ssl-1.0.4-11/subversion-1.0.4/subversion/bindings/swig/ 
.libs -L/sw/lib -rpath /sw/share/java/svn-ssl -avoid-version -module -o  
_client.la svn_client.lo  
../../../../subversion/bindings/swig/libsvn_swig_java-1.la  
../../../../subversion/libsvn_client/libsvn_client-1.l


Shouldn't that be '-framework JavaVM' instead of '-framework Python'?


Also, on Mac OS X the built JNI library has to be named something like  
'libLIBNAME.jnilib' but they are built as e.g. _wc.so at the moment


Now the questions:

1. Is it possible to build the swig java bindings from the 1.0.4  
tarball on Mac OS X at the moment? Has anybody tried this before?

2. Is it possible on trunk?

3. If not, is anybody working on making swig java bindings usable on  
Mac OS X?


Thanks for any help and/or comments,
Chris.


PS: Mac OS X 10.3.3, JavaVM 1.4.2, swig 1.3.20


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Status of Swig Java bindings on Mac OS X?

Posted by Christian Schaffner <ch...@users.sourceforge.net>.
Hi Gustav

Thanks for the answers.

On 24.05.2004, at 18:45, Gustav Munkby wrote:
> Afaik, they do not work. I might be terribly wrong, since I haven't 
> actually watched the code in quite a while. I had the intention of 
> bringing the swig-java-bindings up to speed earlier, and talked a lot 
> with daniell rall about it.
>
> allthough, I've been busy, and I haven't seen a single post to the 
> mailing list from dlr in quite a while, so I suspect that he hasn't 
> done anything with it lately either.
>
>> ...
>> Now the questions:
>> 1. Is it possible to build the swig java bindings from the 1.0.4  
>> tarball on Mac OS X at the moment? Has anybody tried this before?
>
> seriously doubt it..
>
>> 2. Is it possible on trunk?
>
> seriously doubt it..

Ok, so i will wait patiently until a future release.

>> 3. If not, is anybody working on making swig java bindings usable on  
>> Mac OS X?
>
> I was working on making it work in *nix, and so was dlr, but I've been 
> very busy lately, and I suspect he has as well.
>
> I had the swig bindings compiling on my computer, but on the other 
> hand very little was actually implemented on the swig bindings, and I 
> suspect that this is still the case.
>
> allthough, as stated in the beginning, I might be completely wrong 
> here, since it was quite a while since I did anything.

Sounds reasonable to me. I will watch the commits to svn trunk for 
improvements.

A last thing i noticed and forgot to write in my last mail: The 
libsvn_swig_java-1.0.dylib library seems not to get installed during 
'make install-swig-java' (even thought it is built during 'make 
swig-java' to 
'./subversion/bindings/swig/.libs/libsvn_swig_java-1.0.dylib'). Should 
there maybe be a install-swig-java-lib target as there is the 
install-swig-pl-lib for the python bindings?


Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Status of Swig Java bindings on Mac OS X?

Posted by Gustav Munkby <gr...@gmx.net>.
Hi,

Afaik, they do not work. I might be terribly wrong, since I haven't 
actually watched the code in quite a while. I had the intention of 
bringing the swig-java-bindings up to speed earlier, and talked a lot 
with daniell rall about it.

allthough, I've been busy, and I haven't seen a single post to the 
mailing list from dlr in quite a while, so I suspect that he hasn't done 
anything with it lately either.

> 
> Shouldn't that be '-framework JavaVM' instead of '-framework Python'?
> 

sounds reasonable yes.

> 
> Also, on Mac OS X the built JNI library has to be named something like  
> 'libLIBNAME.jnilib' but they are built as e.g. _wc.so at the moment
> 

yep, the problem is the same on *nix, since the files need to be named 
libLIBNAME.so to work.

> 
> Now the questions:
> 
> 1. Is it possible to build the swig java bindings from the 1.0.4  
> tarball on Mac OS X at the moment? Has anybody tried this before?
> 

seriously doubt it..

> 2. Is it possible on trunk?
> 

seriously doubt it..

> 3. If not, is anybody working on making swig java bindings usable on  
> Mac OS X?
> 

I was working on making it work in *nix, and so was dlr, but I've been 
very busy lately, and I suspect he has as well.

I had the swig bindings compiling on my computer, but on the other hand 
very little was actually implemented on the swig bindings, and I suspect 
that this is still the case.

allthough, as stated in the beginning, I might be completely wrong here, 
since it was quite a while since I did anything.

cheers,
!g

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org