RPi, "Could not find all dependent libraries"

I have a Raspberry Pi - I think version 3? About half an hour ago I used NOOBS 2.4.5 to install Raspbian - likewise, I think it was the 2017-11-29 build of raspbian available from the raspberry pi website.

Installation went fine. The very first thing I did once the system started was download the RPi versions of BioGears Toolkit and SDK. I extracted the toolkit into ~/Downloads/toolkit, and ran ./BioGearsGUI.sh, but it failed with the following logs (omitting parts of the stack traces, because of character limit):

######

pi@raspberrypi:~/Downloads/toolkit $ ./BioGearsGUI.sh
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/xerces-c_3_1_vc120
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/xerces-c_3_1_vc120
java.lang.UnsatisfiedLinkError: no xerces-c_3_1_vc120 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/libxerces-c-3-1
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/libxerces-c-3-1
java.lang.UnsatisfiedLinkError: no libxerces-c-3-1 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/libxerces-c-3.1
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/log4cpp
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/log4cpp
java.lang.UnsatisfiedLinkError: no log4cpp in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/DataModelBindings
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/DataModelBindings
java.lang.UnsatisfiedLinkError: no DataModelBindings in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/CommonDataModel
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/CommonDataModel
java.lang.UnsatisfiedLinkError: no CommonDataModel in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/CommonDataModelTest
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/CommonDataModelTest
java.lang.UnsatisfiedLinkError: no CommonDataModelTest in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO FileUtils::69::Loading native library : /home/pi/Downloads/toolkit/release/CommonDataModelJNI
ERROR FileUtils::91::Unable to load /home/pi/Downloads/toolkit/release/CommonDataModelJNI
java.lang.UnsatisfiedLinkError: no CommonDataModelJNI in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at mil.tatrc.physiology.utilities.FileUtils.loadLibrary(FileUtils.java:86)
...
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at mil.tatrc.physiology.datamodel.properties.CommonUnits$LengthUnit.validUnit(CommonUnits.java:848)
at mil.tatrc.physiology.datamodel.properties.SEScalarLength.validUnit(SEScalarLength.java:96)
at mil.tatrc.physiology.datamodel.properties.SEScalar.setValue(SEScalar.java:273)
at mil.tatrc.physiology.datamodel.properties.SEScalar.load(SEScalar.java:77)
at mil.tatrc.physiology.datamodel.patient.SEPatient.load(SEPatient.java:139)
at mil.tatrc.physiology.datamodel.patient.SEPatient.loadPatientFile(SEPatient.java:265)
at mil.tatrc.physiology.biogears.gui.scenario.ScenarioEditor.(ScenarioEditor.java:257)
at mil.tatrc.physiology.biogears.gui.GUIContext.(GUIContext.java:56)
at mil.tatrc.physiology.biogears.gui.GUIContext.getAppFrame(GUIContext.java:72)
at mil.tatrc.physiology.biogears.gui.BioGearsGUI.createAndShowUI(BioGearsGUI.java:29)
at mil.tatrc.physiology.biogears.gui.BioGearsGUI$1.run(BioGearsGUI.java:22)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.RuntimeException: Could not find all dependent libraries : [log4cpp, DataModelBindings, CommonDataModel, CommonDataModelTest, CommonDataModelJNI]
at mil.tatrc.physiology.utilities.UnitConverter.(UnitConverter.java:52)
... 25 more

######

Some of those libraries look internal to BioGears, rather than things to install. I can't find a README or INSTALLATION file. If there were extra steps to get this working on a clean RPi, I'd have expected there to be mention of it on the site or at least in a README. I had the same problem earlier with an older RPi Zero W, but assumed it was because the OS was outdated or something. Any idea what's up?

Thanks!

Comments

  • Sorry; didn't use the CODE tags on the terminal output.
  • Ok, it looks like it's using the "release" folder when it should be using the "release64" folder. The former is nearly empty. When I renamed the "release" folder out of the way, and renamed "release64" to "release", it worked. (There were still errors shown in the logs, but the toolkit started up and ran a scenario.)

    The output of "java --version" is:
    [CODE]
    pi@raspberrypi:~/Downloads/toolkit $ java -version
    java version "1.8.0_65"
    Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
    Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
    [/CODE]
    (...does that work? The preview doesn't show the code block working.)

  • int main ( int arc, char* argv[]) {

    }


    Apparently it requires html style code tags.
Sign In or Register to comment.