I am working on Java Chromium Embedded Framework https://bitbucket.org/chromiumembedded/java-cef/src/master/. I aim to embed the browser into IntelliJ IDEA plugins for Windows and Linux.
I build native library parts from source code. Project example apps work both Win and Linux, but when I embed it into IntelliJ IDEA it crashes on Ubuntu at initialization method (works on windows though). Previously I had some issues on Windows and was able to debug C++ code with Visual Studio. Now I am not sure how to debug on Ubuntu.
On Linux I use cmake and make to build the library:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug..
Init crash error stack trace:
at org.cef.CefApp.N_PreInitialize(Native Method)
I tried loading my lib with jna.library.path, LD_LIBRARY_PATH, adding to class path; but neither works on Ubuntu (as suggested here https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000123070--Jar-with-native-libraries-is-not-added-to-the-runtime-classpath-thru-module-dependencies)
On JCEF forum there is thread with similar issues on Linux (https://github.com/CodeBrig/Journey/issues/3), but no good tips on debugging. Any suggestions would be appreciated, thank you