-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
distribute and use .so files for linux platform #3240
Comments
Does it work when you run the app from the IDE? Only the packaged app fails? |
Yes i tried everything, it fails as for 'run' and 'runDistributable' I don't mentioned it but manually copying files works |
@AlexeyTsvetkov Can you help here? By the way, in my app I put resources (although they're not native libs) under |
@Lefix2 Also, you could ask in our #compose-desktop slack channel; maybe someone could help you faster. |
I've also pointed that: |
I'll do that! |
Take a look at this thread #2618 My native loader looks like this: val resDir = File(systemProperty("compose.application.resources.dir"))
val libFile = File(resDir, libFilename(libName))
System.load(libFile.canonicalPath) |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Hello,
I'm struggling while installing/loading some dynamic libraries into my app.
I'm currently developing only for Linux but i want to be "future-proof" for possible windows port of my application.
Currently, i have so custom .so files, some used with jni, that i want to embed in my App without creating an AppImage.
The solution I found is to put my libraries into ${PROJECT_DIR}/main/resources/linux/lib/*.so and addig the following lines to my build.gradle:
Then in my application load libraries with:
Note that calling a .so is platform dependant and I will prefer something like
But when I create distributable (./gradlew createDistributable) the files are not copied into
build/compose/binaries/main/app/MyApp/lib/app/resources/
At runtime, the path to search for library is correct:
The text was updated successfully, but these errors were encountered: