Ask Your Question

josemgm's profile - activity

2015-06-23 03:26:23 -0600 asked a question Problems compiling OpenCV

I'm trying to compile OpenCV 2.4.11 on Ubuntu 14.04. My settings are the following.

OS: Ubuntu 14.04 Server CPU: 8 cores RAM: 64GB HDD: 2TB

I'm getting the following error.

[ 67%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl.dir/src/cl_runtime/clamdblas_runtime.cpp.o

c++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file: usr="" share="" doc="" gcc-4.9="" readme.bugs=""> for instructions. make[2]: * [modules/ocl/CMakeFiles/opencv_ocl.dir/src/cl_runtime/clamdblas_runtime.cpp.o] Error 4 make[1]: [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2 make: ** [all] Error 2

I tried to increment the swap memory, also I updated the g++ from 4.8 to 4.9 and the error persists. I compiled in other similar server without problems.

How can I solve it?

Thanks in advance.

Kind regards,

2014-06-16 10:52:55 -0600 commented question Build OpenCV 2.4.5 in Sparc and Java Errors

Note: With OpenCV 2.4.9, i've got the same error.

Edit: it's a compatibility problem with javacv libs and SunOS?

2014-06-13 07:27:52 -0600 received badge  Editor (source)
2014-06-13 07:24:46 -0600 asked a question Build OpenCV 2.4.5 in Sparc and Java Errors


I've building OpenCV 2.4.5 in Sparc SunOS 5.10. Build is correct with following cmake.


pkg-config --modversion opencv command shows 2.4.5

But, when trying to call javacv libraries from java application running under jboss 5.1.0 GA, get the following error.

Caused by java.lang.UnsatisfiedLinKerror: no jniopencv_core in java.library.path

Caused by java.lang.UnsatisfiedLinKerror: /usr/local/lib/ java: fatal: relocation error: file /usr/local/lib/ symbol _ZNSs4_Rep20_S_empty_rep_storageE: referenced symbol not found.

How can i solved it?

EDIT: After execute crle command, get the following error.

NoClassDefFoundError: Could not initialize class com.googlecode.javacv.cpp.opencv_highgui

I've got javacv.jar javacpp.jar and javacv-linux-x86_64.jar in my application.ear/lib and works under Windows/Linux

Thanks in advance

Best regards