Updated by Andrey Pavlenko about 12 years ago

Hello,
I have just downloaded the latest stable version of OpenCV (2.4.4) and tried to compile it. The compilation fails with the following messages:
<pre>


Build:
compile:
[mkdir] Created dir: /Users/u/Desktop/OpenCV-2.4.4/release/modules/java/test/.build/build/classes
[javac] Compiling 104 source files to /Users/u/Desktop/OpenCV-2.4.4/release/modules/java/test/.build/build/classes
[ 94%]
BUILD FAILED
/Users/u/Desktop/OpenCV-2.4.4/release/modules/java/test/.build/build.xml:55: The following error occurred while executing this line:
/Users/u/Desktop/OpenCV-2.4.4/release/modules/java/test/.build/build.xml:19: /Users/u/Desktop/OpenCV-2.4.4/release/modules/java/test/.build/lib does not exist.
Total time: 0 seconds
</pre>


[[ ==
then it compiles some more...
<pre>
more == ]]

[98%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o
Linking CXX shared library ../../lib/libopencv_stitching.dylib
[ 98%] Built target opencv_stitching
Linking CXX executable ../../bin/opencv_perf_gpu
[ 98%] Built target opencv_perf_gpu
make: *** [all] Error 2
</pre>



The command used for compilation is (from http://opencv.willowgarage.com/wiki/InstallGuide):
@cmake


cmake
-D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/Users/u/lib/opencv@
CMAKE_INSTALL_PREFIX=/Users/u/lib/opencv

with:
@$->


$->
cmake --version
cmake version 2.8.10@
2.8.10

and
<pre>$->


$->
g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~148/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
</pre>

Back