[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Mac OS X version mismatch crash

From: David Findley <davidnfindley_at_yahoo.com>
Date: 2004-05-01 05:50:54 CEST

McClain,

Thanks for the suggestion, it worked great! For any other Mac OS X
users who have run into the same problem I did that want to build
libsvnjavah.dylib, here are the steps I followed:

(from the root of the source tree, and I'm using the tcsh shell)
cd subversion/bindings/java/javahl
setenv CXXFLAGS
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Headers
setenv CFLAGS
-I/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Headers
./configure --with-jdk=/Library/Java/Home
make
cp native/.libs/libsvnjavahl.dylib ~/Desktop/libsvnjavahl.jnilib

(Notice the rename in the final cp command...)

Now, on your desktop, you've got a file called libsvnjavahl.jnilib.
Make sure Eclipse is quit to be safe, and replace the old
libsvnjavahl.jnilib in the
plugins/org.tigris.subversion.subclipse.core_0.9.0 folder.

Thanks again for the suggestion!
David

P.S. The Apple developer docs say that the include path should be
/System/Library/Frameworks/JavaVM.framework/Headers (on this page:
http://developer.apple.com/documentation/Java/Conceptual/
Java141Development/Core_APIs/chapter_6_section_4.html ), but I kept
getting a "jni.h not found" error during compile. So I just found out
where /System/Library/Frameworks/JavaVM.framework/Headers actually
linked to on my system and used that in CXXFLAGS and CFLAGS. It wasn't
the most elegant or general solution, but it worked.

On Apr 30, 2004, at 9:59 AM, McClain Looney wrote:

> On Thursday 29 April 2004 04:06 pm, David Findley wrote:
>> However, I'm stuck on this error (after symbolic
>> linking to the version in
>> /usr/local/BerkeleyDB.4.2/lib):
>
>> java_swt version mismatch for library:
>> /sw/lib/libdb-4.2.dylib (compatibility version of
>> user: 4.2.0 greater than library's version: 0.0.0)
>
>
> you should seriously consider compiling javahl locally (especially
> since you
> managed to build svn). this will most likely solve this problem. just
> build
> libsvnjavah.dylib and overwrite the one in the subclipse packages. the
> javahl stuff is in subversion/bindings/java/javahl
>
> I can give you some pointers if you run into problems with the javahl
> build.
>
> --
> McClain Looney
> LoonSoft LLC
> m@loonsoft.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: users-help@subclipse.tigris.org
>
Received on Sat May 1 13:50:54 2004

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.