New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BridJ and Mac #311

Closed
axet opened this Issue Apr 27, 2012 · 11 comments

Comments

Projects
None yet
2 participants
@axet

axet commented Apr 27, 2012

I just moved from jnaerator 0.9.6 to 0.10 version and my java code start to crashes.

seems like problem in org.bridj.JNI.getLibrarySymbols.

stack:

http://pastebin.com/rKd6UeKf

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Apr 28, 2012

Member

Hi @axet ,

Thanks a lot for your report !

This org.bridj.JNI.getLibrarySymbols crash is probably the same as issue #294 and as this thread, which prevents me from sleeping since a while :-D :
http://groups.google.com/group/nativelibs4java/browse_thread/thread/dc657b730f1e5b0d

Could you please attach your libtorrent.dylib file here ? (doesn't seem to want to build on my mac :-S)
(and maybe also your config.log, so that I see exactly which linker options were used to build the lib)

Cheers

Member

ochafik commented Apr 28, 2012

Hi @axet ,

Thanks a lot for your report !

This org.bridj.JNI.getLibrarySymbols crash is probably the same as issue #294 and as this thread, which prevents me from sleeping since a while :-D :
http://groups.google.com/group/nativelibs4java/browse_thread/thread/dc657b730f1e5b0d

Could you please attach your libtorrent.dylib file here ? (doesn't seem to want to build on my mac :-S)
(and maybe also your config.log, so that I see exactly which linker options were used to build the lib)

Cheers

@axet

This comment has been minimized.

Show comment
Hide comment
@axet

axet commented Apr 28, 2012

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Apr 28, 2012

Member

Works great, thanks !
Now twisting my head around symtab_command and other mach-o niceties :-)

Cheers

Member

ochafik commented Apr 28, 2012

Works great, thanks !
Now twisting my head around symtab_command and other mach-o niceties :-)

Cheers

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik May 21, 2012

Member

Hi guys,

It seems that BridJ / dyncall has does not support some MacOS X 10.6+ features, namely LC_DYLD_INFO / LC_DYLD_INFO_ONLY commands in Mach-O binaries (a new, compressed way of storing symbols in Leopard, Snow Leopard and Lion).

I'm currently trying to add support for that particular feature, but in the meanwhile you might want to try recompiling your shared library with -mmacosx-version-min=10.5

Cheers

Member

ochafik commented May 21, 2012

Hi guys,

It seems that BridJ / dyncall has does not support some MacOS X 10.6+ features, namely LC_DYLD_INFO / LC_DYLD_INFO_ONLY commands in Mach-O binaries (a new, compressed way of storing symbols in Leopard, Snow Leopard and Lion).

I'm currently trying to add support for that particular feature, but in the meanwhile you might want to try recompiling your shared library with -mmacosx-version-min=10.5

Cheers

ochafik added a commit that referenced this issue May 21, 2012

BridJ: don't try to list symbols from binaries built for MacOS X 10.6…
…+ with unhanded Mach-O commands such as LC_DYLD_INFO / LC_DYLD_INFO_ONLY, or any LC_REQ_DYLD command in general (issue #311)
@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik May 21, 2012

Member

Actually, one needs to also set the following environment variable for the -mmacosx-version-min=10.5 workaround to work :

export MACOSX_DEPLOYMENT_TARGET=10.5

(see https://discussions.apple.com/thread/3197542)

Member

ochafik commented May 21, 2012

Actually, one needs to also set the following environment variable for the -mmacosx-version-min=10.5 workaround to work :

export MACOSX_DEPLOYMENT_TARGET=10.5

(see https://discussions.apple.com/thread/3197542)

ochafik added a commit that referenced this issue May 21, 2012

ochafik added a commit that referenced this issue May 23, 2012

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik May 23, 2012

Member

Hi @axet ,

Thanks for your patience.

BridJ / dyncall now supports Mach-O LC_DYLD_INFO commands (compressed symbols introduced in MacOS X 10.6).

This is available as of the latest 0.6.2-SNAPSHOT, please let me know if you still experience troubles.

Cheers

Member

ochafik commented May 23, 2012

Hi @axet ,

Thanks for your patience.

BridJ / dyncall now supports Mach-O LC_DYLD_INFO commands (compressed symbols introduced in MacOS X 10.6).

This is available as of the latest 0.6.2-SNAPSHOT, please let me know if you still experience troubles.

Cheers

@ochafik ochafik closed this May 23, 2012

@axet

This comment has been minimized.

Show comment
Hide comment
@axet

axet Jun 1, 2012

i dont know how to build -SNAPSHOT from your source. first look dosnt give me a solution

axet commented Jun 1, 2012

i dont know how to build -SNAPSHOT from your source. first look dosnt give me a solution

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Jun 1, 2012

Member

Hi @axet ,

Sorry about this, "SNAPSHOT" is a Maven idiom referring to deployed development binaries, which you can download manually from the Maven repository or automatically from a Maven project.
You'll find more information here, please let me know if you need further clarification :
https://code.google.com/p/bridj/wiki/Download#Direct_downloads

For your convenience, here's the direct link to the latest snapshot as of this writing :
https://oss.sonatype.org/content/groups/public/com/nativelibs4java/bridj/0.6.2-SNAPSHOT/bridj-0.6.2-20120523.214254-7.jar

Cheers

Member

ochafik commented Jun 1, 2012

Hi @axet ,

Sorry about this, "SNAPSHOT" is a Maven idiom referring to deployed development binaries, which you can download manually from the Maven repository or automatically from a Maven project.
You'll find more information here, please let me know if you need further clarification :
https://code.google.com/p/bridj/wiki/Download#Direct_downloads

For your convenience, here's the direct link to the latest snapshot as of this writing :
https://oss.sonatype.org/content/groups/public/com/nativelibs4java/bridj/0.6.2-SNAPSHOT/bridj-0.6.2-20120523.214254-7.jar

Cheers

@axet

This comment has been minimized.

Show comment
Hide comment
@axet

axet Jun 1, 2012

it hungs on call

axet commented Jun 1, 2012

it hungs on call

@axet

This comment has been minimized.

Show comment
Hide comment
@axet

axet Jun 5, 2012

not working!!! reopen plz

axet commented Jun 5, 2012

not working!!! reopen plz

@ochafik ochafik reopened this Jun 5, 2012

@ochafik ochafik referenced this issue Mar 18, 2015

Open

BridJ and Mac #19

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Mar 18, 2015

Member

This issue was moved to nativelibs4java/BridJ#19

Member

ochafik commented Mar 18, 2015

This issue was moved to nativelibs4java/BridJ#19

@ochafik ochafik closed this Mar 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment