You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I couldn't find example how to generate binding for already compiled library. I tried using gradle-javacpp-android as example but I couldn't figure out how can I link my shared library.
I have 4 libraries for 4 architectures:
This is my forked example I added libs to src/main/jniLibs added my test.h to src/main/cpp and edited NativeLibraryConfig
package com.example.myapplication;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import org.bytedeco.javacpp.tools.*;
@Properties(
value = @Platform(include = {"NativeLibrary.h", "test.h"}),
target = "com.example.myapplication.NativeLibrary"
)
public class NativeLibraryConfig implements InfoMapper {
static {
// Let Android take care of loading JNI libraries for us
System.setProperty("org.bytedeco.javacpp.loadLibraries", "false");
}
public void map(InfoMap infoMap) {
}
}
Where should I specify linkage to my test_library? Without linking to my library I get error:
app/src/main/cpp/jniNativeLibrary.cpp:760: error: undefined reference to 'Test::Test()'
Hello,
I couldn't find example how to generate binding for already compiled library. I tried using gradle-javacpp-android as example but I couldn't figure out how can I link my shared library.
I have 4 libraries for 4 architectures:
test.h
The text was updated successfully, but these errors were encountered: