Menu

#11 Failed to build in Ubuntu on ARM device

v1.0 (example)
closed-works-for-me
nobody
None
5
2016-06-30
2011-08-14
Maker
No

We have an ARM Panda Box. The device has Ubuntu 10.10 installed.

We get the latest version jxgrabkey-0.3.2 from http://sourceforge.net/projects/jxgrabkey/.
But when we build the jar, it brings us the following error:

Buildfile: /home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/Java/build.xml

-pre-init:

-init-private:

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

-post-init:

-init-check:

-init-macrodef-javac:

-init-macrodef-junit:

-init-debug-args:

-init-macrodef-nbjpda:

-init-macrodef-debug:

-init-macrodef-java:

-init-presetdef-jar:

init:

deps-jar:

-check-automatic-build:

-clean-after-automatic-build:

-verify-automatic-build:

-pre-pre-compile:

-pre-compile:

-compile-depend:

-do-compile:

-post-compile:

compile:

-pre-pre-compile-test:

-pre-compile-test:

-compile-test-depend:

-do-compile-test:

-post-compile-test:

compile-test:

-pre-test-run:

-do-test-run:
[junit] Testsuite: jxgrabkey.JXGrabKeyTest
[junit] Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: jxgrabkey.JXGrabKey.listen()V
[junit] at jxgrabkey.JXGrabKey.listen(Native Method)
[junit] at jxgrabkey.JXGrabKey.access$000(JXGrabKey.java:30)
[junit] at jxgrabkey.JXGrabKey$1.run(JXGrabKey.java:47)
[junit] Tests run: 0, Failures: 0, Errors: 2, Time elapsed: 0.281 sec
[junit]
[junit] ------------- Standard Error -----------------
[junit] Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: jxgrabkey.JXGrabKey.listen()V
[junit] at jxgrabkey.JXGrabKey.listen(Native Method)
[junit] at jxgrabkey.JXGrabKey.access$000(JXGrabKey.java:30)
[junit] at jxgrabkey.JXGrabKey$1.run(JXGrabKey.java:47)
[junit] ------------- ---------------- ---------------
[junit] Testcase: jxgrabkey.JXGrabKeyTest: Caused an ERROR
[junit] /home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so: /home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so: undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
[junit] java.lang.UnsatisfiedLinkError: /home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so: /home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so: undefined symbol: _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE
[junit] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
[junit] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
[junit] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1646)
[junit] at java.lang.Runtime.load0(Runtime.java:787)
[junit] at java.lang.System.load(System.java:1022)
[junit] at jxgrabkey.JXGrabKeyTest.setUpClass(JXGrabKeyTest.java:18)
[junit]
[junit]
[junit] Testcase: jxgrabkey.JXGrabKeyTest: Caused an ERROR
[junit] jxgrabkey.JXGrabKey.clean()V
[junit] java.lang.UnsatisfiedLinkError: jxgrabkey.JXGrabKey.clean()V
[junit] at jxgrabkey.JXGrabKey.clean(Native Method)
[junit] at jxgrabkey.JXGrabKey.cleanUp(JXGrabKey.java:95)
[junit] at jxgrabkey.JXGrabKeyTest.tearDownClass(JXGrabKeyTest.java:25)
[junit]
[junit]
[junit] Test jxgrabkey.JXGrabKeyTest FAILED

test-report:

-post-test-run:

BUILD FAILED
/home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/Java/nbproject/build-impl.xml:611: Some tests failed; see details above.

Total time: 4 seconds

Discussion

  • Maker

    Maker - 2011-08-14
    • priority: 5 --> 8
     
  • Edwin Stang

    Edwin Stang - 2011-08-14

    Can you try to run jxgrabkey/trunk/misc/Ant/build.xml to build a release? It seems as if the libJXGrabKey.so was not compiled properly.

    Also if it already compiled the file on your computer, it is funny taht it still tries to use
    "/home/tiliu/zhilib/jxgrabkey-0.3.2/JXGrabKey/C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so"
    maybe the output dir changed to something like "GNU-Linux-ARM" and the path is just incorrect?

    In JXGrabKeyTest.java, you will have to edit the line 18:
    System.load(new File("../C++/dist/Release/GNU-Linux-x86/libJXGrabKey.so").getCanonicalPath());
    to fix this.

     
  • Edwin Stang

    Edwin Stang - 2011-08-14
    • priority: 8 --> 5
     
  • Maker

    Maker - 2011-08-14

    Thanks for your quick comment, I will take a try tomorrow.

     
  • Maker

    Maker - 2011-08-15

    Works now, thanks.

     
  • Maker

    Maker - 2011-08-15
    • status: open --> open-works-for-me
     
  • Edwin Stang

    Edwin Stang - 2016-06-30

    ARM needs custom compilation, since I have no ARM device, users will have to build their own releases via the included ant build.xml

     
  • Edwin Stang

    Edwin Stang - 2016-06-30
    • status: open-works-for-me --> closed-works-for-me
    • Group: --> v1.0 (example)
     

Log in to post a comment.

MongoDB Logo MongoDB