bytedeco / javacpp-presets

The missing Java distribution of native C++ libraries
Other
2.62k stars 730 forks source link

javacpp/ffmpeg link error #1261

Open jdowdle opened 1 year ago

jdowdle commented 1 year ago

when I run ReadFewFrame.java in debug, I get: Debug: Failed to load for jnijavacpp: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path: C:\Users\Jim.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\Jim.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257\jre\bin;C:/Users/Jim/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/bin/server;C:/Users/Jim/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\AOMEI Backupper;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\VisualSVN Server\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\MAVProxy;C:\Program Files\Calibre2\;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\apache-maven-3.8.6\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\MinGW\bin;C:\msys64\usr\bin;C:\Program Files\Java\jdk1.8.0_172;C:\Program Files\Java\jdk1.8.0_172\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt;C:\apache-ant-1.10.12\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.3.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Jim\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\Jim\AppData\Local\Programs\Python\Python310\;C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\11.2 2022.02\bin;C:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q2-update\bin;C:\Users\Jim\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\Hostx64\x86;C:\Users\Jim\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Jim.dotnet\tools;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt;;C:\WINDOWS\system32;;.

I have located jnijavacpp.obj in: C:\msys64\home\Jim\javacpp\target\integration-test\projects\osgi\target\classes\org\bytedeco\javacpp\test\osgi\windows-x86_64

it is an obj, not a lib or dll, dont know if that is the problem...... I have tried adding this lib path in various places in eclipse project properties, and it always replaces all the paths above, yet still does not satisfy the linkage for jnijavacpp

I think I am at wits end, any help appreciated.

I imported the projects javacpp and ffmpeg into eclipse as maven project, was hoping all required links would come along cooperatively. What am I missing? thanks

saudet commented 1 year ago

Don't use M2Eclipse, it's known to be quite buggy.