Ask Your Question
1

Compiling OpenCV 2.4.4a - Java Test Fails

asked 2013-03-11 15:43:15 -0600

Constantin S gravatar image

All, I am attempting to build OpenCV 2.4.4a. I have built OpenCV many times but it seems like the newest distribution has malfunctioning build code.

My compilation fails at:

[ 87%] Build Java tests
Buildfile: .../OpenCV-2.4.4/release/modules/java/test/.build/build.xml

build:

compile:
    [javac] Compiling 104 source files to .../OpenCV-2.4.4/release/modules/java/test/.build/build/classes

BUILD FAILED
.../OpenCV-2.4.4/release/modules/java/test/.build/build.xml:55: The following error occurred while executing this line:
.../OpenCV-2.4.4/release/modules/java/test/.build/build.xml:19: .../OpenCV-2.4.4/release/modules/java/test/.build/lib does not exist.

I have tried finding information on how to disable this java library, I have no use for it. Can anyone offer some advice?

edit retag flag offensive close merge delete

Comments

This problem is incredibly unnerving as OpenCV is a very large library that doesn't build very quickly. I am attempting to reuse builds but I continuously have to recompile a few modules only to return to this problem. I have tried many flags.

Constantin S gravatar imageConstantin S ( 2013-03-11 16:01:41 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-13 20:36:32 -0600

Constantin S gravatar image

Very Active Q & A ... Anyways my solution was to blow away the source directory in modules/java with a nice little

rm -rf java

Seriously...

edit flag offensive delete link more

Comments

try to use this option -DBUILD_opencv_java=OFF in order to close the new java integration till to fix the problem in a newer version. According to the following link seems to work. http://answers.opencv.org/question/7623/opencv-244-beta-java-test-error/

theodore gravatar imagetheodore ( 2013-03-14 10:35:08 -0600 )edit

That didn't work for me, as the flag does not exist in any of the CMake files.

Constantin S gravatar imageConstantin S ( 2013-04-05 12:01:59 -0600 )edit

i noticed that it does not exist in any of the CMake files but it worked for me. However, in the new updated version v2.4.5 the problem seems to be solved, so you do not need to use this option.

theodore gravatar imagetheodore ( 2013-04-14 06:16:51 -0600 )edit
-1

answered 2013-03-11 17:43:02 -0600

theodore gravatar image

updated 2013-03-11 17:44:15 -0600

hi, i think that i have more or less the same problem, or at least java related one. Any idea...

    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:474: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                        ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:474: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                         ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:474: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                          ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:549: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                        ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:549: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                         ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:549: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                          ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:700: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                        ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:700: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                         ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:700: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                          ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:775: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                        ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:775: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                         ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:775: error: unmappable character for encoding ASCII
    [javac]  * @param mask optional operation mask ??? 8-bit single channel array, that
    [javac]                                          ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:2506: error: unmappable character for encoding ASCII
    [javac]  * on) ??? pass the flag to enable the function to produce a full-size complex
    [javac]        ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core/Core.java:2506: error: unmappable character for encoding ASCII
    [javac]  * on) ??? pass the flag to enable the function to produce a full-size complex
    [javac]         ^
    [javac] .../opencv_tbb_ipp_qt-2.4.4-1/src/OpenCV-2.4.4/src/org/opencv/core ...
(more)
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-11 15:43:15 -0600

Seen: 408 times

Last updated: Mar 13 '13