Unspecified error - cvShowImage

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unspecified error - cvShowImage

opencv-users mailing list
Dear all,
Under Ubuntu 15.04 I am getting the following error:


***********************Starting /helloworld_opencv/helloworld_opencv...image size: 512 512OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /home/brian/opencv/modules/highgui/src/window.cpp, line 501terminate called after throwing an instance of 'cv::Exception' what(): /home/brian/opencv/modules/highgui/src/window.cpp:501: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage
The program has unexpectedly finished.
/helloworld_opencv/helloworld_opencv crashed
***********************
I have re-installed libgtk2.0-dev and pkg-config and re-run cmake, but when I build with
make -j7 # to runs 7 jobs in parallel
I get the following errors:
*************************
Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o
[ 31%] Built target pch_Generate_opencv_test_superres
[ 32%] Built target pch_Generate_opencv_videostab
nvcc fatal   : Unsupported gpu architecture 'compute_11'
CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message):
  Error generating
  /home/brian/opencv/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o




modules/core/CMakeFiles/opencv_core.dir/build.make:55: recipe for target 'modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o' failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] Error 1
CMakeFiles/Makefile2:992: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
************************
Any help?
Thank you
BS
Reply | Threaded
Open this post in threaded view
|

Re: Unspecified error - cvShowImage

keghn
 I like to use cmake as little as possible. With that said i compile and link, my c/++programs, with:

g++ pro.cpp -o pro `pkg-config --cflags --libs opencv`

 For OpenCV using gpu:

nvcc pro.cu -o pro `pkg-config --cflags --libs opencv` -lopencv_gpu

 Running all of this in the terminal, with:

./pro
Reply | Threaded
Open this post in threaded view
|

Re: Unspecified error - cvShowImage

keghn
 Is this installation error or a compiling error of a hello world program?