Comments (8)
No, there have not as yet been any android-specific patches applied to JNA.
On Aug 25, 2011, at 4:05 PM, Jotschi wrote:
Hello,
has this patch been merge into the codebase?
http://code.google.com/p/javacv/downloads/detail?name=jna-android-20101202.patchI'm currently eager to evaluate JNA for Android as described here:
http://code.google.com/p/javacv/wiki/JNAOnAndroidThank you
Greetings
Jotschi
Reply to this email directly or view it on GitHub:
#23
from jna.
Feel free to fork to get that patch working and share it.
from jna.
I'm also interested in looking at this. I've forked the project and applied the patch. It required a couple of minor changes since there have been some changes to Structure.java since the patch was created it looks like. Though I'm running into some issues getting it to compile... currently tracking that down.
from jna.
Sounds interesting. Which problems have you encountered?
from jna.
So far I'm running into the following issue when running ant to build the android version with the following command:
ant jar compile-tests -DCC=/Users/ben/Work/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/darwin-x86/bin/arm-eabi-gcc -DANDROID_HOME=/Users/ben/Work/android-ndk-r5b/platforms/android-8/arch-arm
This results in the following error:
[javac] /Users/ben/Work/jna-android/src/com/sun/jna/NativeLibrary.java:141: cannot find symbol
[javac] symbol : method open(java.lang.String)
[javac] location: class com.sun.jna.NativeLibrary
[javac] handle = open(libraryPath);
[javac] ^
[javac] 1 error
But I have a suspicion that this is due to some configuration error with the project... I just didn't have time to keep looking at it earlier due to work constraints. The original patches were developed against an earlier version of the NDK... so it's possible that's the core source of the problem. Feel free to look into it. I already pushed the integrated patch to my fork.
from jna.
All native functions now live in the Native class; only publicly accessible native functions had aliases left in for them.
So to fix that error you just need to change "open" to "Native.open".
On Sep 15, 2011, at 6:06 PM, netjunki wrote:
So far I'm running into the following issue when running ant to build the android version with the following command:
ant jar compile-tests -DCC=/Users/ben/Work/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/darwin-x86/bin/arm-eabi-gcc -DANDROID_HOME=/Users/ben/Work/android-ndk-r5b/platforms/android-8/arch-armThis results in the following error:
[javac] /Users/ben/Work/jna-android/src/com/sun/jna/NativeLibrary.java:141: cannot find symbol
[javac] symbol : method open(java.lang.String)
[javac] location: class com.sun.jna.NativeLibrary
[javac] handle = open(libraryPath);
[javac] ^
[javac] 1 errorBut I have a suspicion that this is due to some configuration error with the project... I just didn't have time to keep looking at it earlier due to work constraints. The original patches were developed against an earlier version of the NDK... so it's possible that's the core source of the problem. Feel free to look into it. I already pushed the integrated patch to my fork.
Reply to this email directly or view it on GitHub:
#23 (comment)
from jna.
Ah... hadn't gotten to look deeply at this... but that's now fixed... next we have a compilation error with the native portions...
[exec] checking whether make sets $(MAKE)...
[exec] configure: error: in `/Users/ben/Work/jna-android/build-d64/native/libffi':
[exec] configure: error: C compiler cannot create executables
[exec] See `config.log' for more details
[exec] make: *** [/Users/ben/Work/jna-android/build-d64/native/libffi/.libs/libffi.a] Error 77
Though it looks like the main issue here is that configure is picking up the wrong settings for doing cross compilation.
from jna.
There is now an android branch created, set up for cross-compiling. Please make contributions to that branch, and open specific issues that you find.
from jna.
Related Issues (20)
- Unnecessary synchronisation? HOT 1
- Unnecessary synchronisation? HOT 1
- Unsafe increment of static field HOT 2
- Unsafe increment of mutable static field HOT 1
- Loading dll crashing + not up to date complation HOT 1
- IndexOutOfBoundsException in ELFSectionHeaders runnning on old IcedTea Java 8 version on ARMv7 HOT 7
- Monitor JNA's security posture with the Scorecard Action HOT 5
- Android Unable to load library from android-aarch64 HOT 1
- The free_callback function has a JNI weak global reference leak problem HOT 6
- loongarch64 need glibc2.36 HOT 29
- Consider adding M1 test on CI HOT 5
- Cannot run unsigned DLLs from user writeable PATH (windows) HOT 2
- Appveyor CI is broken HOT 3
- Enable RELRO HOT 4
- Collate License File Content HOT 1
- struct get different result with same code and process same data HOT 1
- JNA 7.0.0 Incompatible Native Library. HOT 1
- Segfault in jnadispatch.dll HOT 4
- Please provide a method for getting the NativeLibrary instance from Library interface
- Very heavy lock contention under load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jna.