JNI在不同平台上编译

问题描述 投票:0回答:1

我正在尝试编译 0MQ java JNI 绑定... 如果我在 mac os x 上编译 jar 可以将其复制到 Linux 发行版吗?

Download jzmq, the java JNI lib for zmq. Uncompress and cd into that dir, and build it:
./autogen.sh  
./configure  
make  
make install  
You'll end up with the zmq.jar in /usr/local/share/java/ and the native lib in /usr/local/lib

http://blog.pmorelli.com/getting-zeromq-and-jzmq-running-on-mac-os-x

macos java-native-interface zeromq
1个回答
0
投票

你的问题不是很清楚,但是JAR文件是可移植的:JNI库不是。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.