Build failled !

Hi heverybody !

I get an error while build MRL . Can someone help me to find the problem ?

 

    [junit] Running org.myrobotlab.service.InMoovScriptTest
    [junit] Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 530,106 sec

BUILD FAILED
C:\MRL2\myrobotlab\build.xml:995: Test org.myrobotlab.service.InMoovScriptTest failed

That all the compilator say .My java version is 1.8 and i'm runing the ant build with develop branch.

All the test before this one are ok.

thx for yout help

 

kwatters's picture

test output might have a clue

Ahoy Beetle!  We've added some unit tests to make sure the build doesn't break compatability for a hand full of default scripts.  The InMoov minimal scripts are among them.

When running the build and the junit tests the output shows up  "build/report" directory.  Each test that runs has an output xml file that contains all of the environmental info and the stdout/stderr generated by the test.

Take a look at the file :   TEST-org.myrobotlab.service.InMoovScriptTest.xml

It might have more clues for you.  I suspect the test failed due to not being connected to the internet while trying to run, or maybe there was a failure to download and install some of the MarySpeech services?  (These are just a guess. it could be anything really.)
 
It also could be due to some issues that are specific to your operating system / bitnes? What OS are you runniing on?  64 or 32 bit?  
 
Hopefully this gives you a dedent pointer, if you want you canattach that xml file to this thread and I can try to have a look ...
 
Good luck!
 
 
 
beetlejuice's picture

thx kwatters, My os is unning

thx kwatters, My os is unning 32bits version of win 7 . Internet is connected. I had a look to the XML file, And if found several error " not installed "

So i launch MRL from eclipse, and that right, lot os services aren't installed. I install all ,and run again ant build ; same error ! And again if i run MRL from eclipse, the installed service are gone and i need to reinstall all ..

I don't unserstand what's wrong . I attach the test file to the first post .

 

 

kwatters's picture

are you up to date?

I notice that your code was referencing java cv 1.1 ... i recently upgraded that to java cv 1.3  .. the error that you are seeing is because you're missing a java cv librarary.  It might be something specific to windows 32 bit.  Are you up to date?  Are you building from the develop branch?

If so,  I would have expected that your scripts would be pulling in javacv 1.3  ...  

 

the error message is in the test output.

Caused by: java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_65]
at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_65]
at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_65]
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:963) ~[javacpp.jar:3.1.0-1.3]
at org.bytedeco.javacpp.Loader.load(Loader.java:764) ~[javacpp.jar:3.1.0-1.3]
at org.bytedeco.javacpp.Loader.load(Loader.java:671) ~[javacpp.jar:3.1.0-1.3]
at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10) ~[opencv.jar:3.1.0-1.3]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_65]
at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_65]
at org.bytedeco.javacpp.Loader.load(Loader.java:726) ~[javacpp.jar:3.1.0-1.3]
at org.bytedeco.javacpp.Loader.load(Loader.java:671) ~[javacpp.jar:3.1.0-1.3]
at org.bytedeco.javacpp.opencv_imgproc$CvFont.<clinit>(opencv_imgproc.java:2315) ~[opencv.jar:3.1.0-1.3]
at org.myrobotlab.opencv.VideoProcessor.<init>(VideoProcessor.java:77) ~[myrobotlab.jar:na]
at org.myrobotlab.service.OpenCV.<init>(OpenCV.java:161) ~[myrobotlab.jar:na]
... 52 common frames omitted
Caused by: java.lang.UnsatisfiedLinkError: no opencv_imgproc310 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) ~[na:1.8.0_65]
at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[na:1.8.0_65]
at java.lang.System.loadLibrary(System.java:1122) ~[na:1.8.0_65]
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:963) ~[javacpp.jar:3.1.0-1.3]
at org.bytedeco.javacpp.Loader.load(Loader.java:752) ~[javacpp.jar:3.1.0-1.3]
... 61 common frames omitted
 
 
This indicates that there is amissing library for opencv service.  I may have missed something in the javacv 1.3 ivy.xml file.    I think it's correct.. here's the link to what I think it says is missing:
 
https://github.com/MyRobotLab/repo/blob/develop/org.bytedeco.javacv/1.3/ivy.xml#L26

 

beetlejuice's picture

Thx for your help. All seem

Thx for your help. All seem to be ok, myrobotlab and repo folders are up to date .

I don't know why, but i just tryed again and the build is successfull !

Strange, the alone thing changed is ; when i start my computer this mornig, windows install an update .

Thx again for your help !