Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCv 3.0 install error on Ubuntu 14.04

I followed this guide http://milq.github.io/install-opencv-ubuntu-debian/

I have Linux Mint 17.2 (Ubuntu 14.04.3) and I want to install opencv3.0 for python2.7.

For cmake I used

cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DWITH_FFMPEG=OFF ..

I dont have opengl support on my laptop and I dont need video module, I need it only for photos.

I get this error during make -j4

Linking CXX executable ../../bin/opencv_traincascade

[ 64%] Built target opencv_createsamples

[ 64%] Built target opencv_videostab

Scanning dependencies of target example_tapi_bgfg_segm

Scanning dependencies of target example_tapi_camshift

[ 73%] [ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_bgfg_segm.dir/bgfg_segm.cpp.o

Built target opencv_java

Scanning dependencies of target example_tapi_clahe

[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_camshift.dir/camshift.cpp.o

[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_clahe.dir/clahe.cpp.o

../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'

collect2: error: ld returned 1 exit status

make[2]: * [bin/opencv_traincascade] Error 1

make[1]: * [apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2

make[1]: * Waiting for unfinished jobs....

Linking CXX executable ../../bin/tapi-example-clahe

Linking CXX executable ../../bin/tapi-example-bgfg_segm

Linking CXX executable ../../bin/tapi-example-camshift

[ 74%] Built target example_tapi_clahe

[ 74%] Built target example_tapi_bgfg_segm

[ 74%] Built target example_tapi_camshift

make: * [all] Error 2

What do I need to do? What other options could I use in cmake so it's only for photos?

OpenCv 3.0 install error on Ubuntu 14.04

I followed this guide http://milq.github.io/install-opencv-ubuntu-debian/

I have Linux Mint 17.2 (Ubuntu 14.04.3) and I want to install opencv3.0 for python2.7.

For cmake I used

cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DWITH_FFMPEG=OFF ..

I dont have opengl support on my laptop and I dont need video module, I need it only for photos.

I get this error during make -j4

Linking CXX executable ../../bin/opencv_traincascade

[ 64%] Built target opencv_createsamples

[ 64%] Built target opencv_videostab

Scanning dependencies of target example_tapi_bgfg_segm

Scanning dependencies of target example_tapi_camshift

[ 73%] [ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_bgfg_segm.dir/bgfg_segm.cpp.o

Built target opencv_java

Scanning dependencies of target example_tapi_clahe

[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_camshift.dir/camshift.cpp.o

[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_clahe.dir/clahe.cpp.o

../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'

collect2: error: ld returned 1 exit status

make[2]: * [bin/opencv_traincascade] Error 1

make[1]: * [apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2

make[1]: * Waiting for unfinished jobs....

Linking CXX executable ../../bin/tapi-example-clahe

Linking CXX executable ../../bin/tapi-example-bgfg_segm

Linking CXX executable ../../bin/tapi-example-camshift

[ 74%] Built target example_tapi_clahe

[ 74%] Built target example_tapi_bgfg_segm

[ 74%] Built target example_tapi_camshift

make: * [all] Error 2

What do I need to do? What other options could I use in cmake so it's only for photos?

OpenCv 3.0 install error on Ubuntu 14.0414.04 - undefined reference to `glXGetProcAddressARB'

I followed this guide http://milq.github.io/install-opencv-ubuntu-debian/

I have Linux Mint 17.2 (Ubuntu 14.04.3) and I want to install opencv3.0 for python2.7.

For cmake I used

cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DWITH_FFMPEG=OFF ..

I dont have opengl support on my laptop and I dont need video module, I need it only for photos.

I get this error during make -j4

Linking CXX executable ../../bin/opencv_traincascade


[ 64%] Built target opencv_createsamples


[ 64%] Built target opencv_videostab


Scanning dependencies of target example_tapi_bgfg_segm


Scanning dependencies of target example_tapi_camshift


[ 73%] [ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_bgfg_segm.dir/bgfg_segm.cpp.o


Built target opencv_java


Scanning dependencies of target example_tapi_clahe


[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_camshift.dir/camshift.cpp.o


[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_clahe.dir/clahe.cpp.o


../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'


collect2: error: ld returned 1 exit status


make[2]: * * [bin/opencv_traincascade] Error 1


make[1]: *
[apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2


make[1]: * Waiting for unfinished jobs....


Linking CXX executable ../../bin/tapi-example-clahe


Linking CXX executable ../../bin/tapi-example-bgfg_segm


Linking CXX executable ../../bin/tapi-example-camshift


[ 74%] Built target example_tapi_clahe


[ 74%] Built target example_tapi_bgfg_segm


[ 74%] Built target example_tapi_camshift


make: *
[all] Error 2

What do I need to do? What other options could I use in cmake so it's only for photos?

EDIT:

According to the comment by berak I used

cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON >-DBUILD_EXAMPLES=OFF -DWITH_FFMPEG=OFF -DFORCE_VTK=OFF ..

and it's basicaly the same error

Linking CXX executable ../../bin/opencv_test_stitching
../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'
collect2: error: ld returned 1 exit status
make[2]: * [bin/opencv_traincascade] Error 1
make[1]:
[apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make[1]:
Waiting for unfinished jobs....
[ 88%] Built target opencv_createsamples
[ 88%] Built target opencv_perf_stitching
[ 88%] Built target opencv_test_stitching
make: *
[all] Error 2

The problem is undefined reference to `glXGetProcAddressARB'. Is there a library I'm missing or can I even install it when I dont have OpenGL?

OpenCv 3.0 install error on Ubuntu 14.04 - undefined reference to `glXGetProcAddressARB'

I followed this guide http://milq.github.io/install-opencv-ubuntu-debian/

I have Linux Mint 17.2 (Ubuntu 14.04.3) and I want to install opencv3.0 for python2.7.

For cmake I used

cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DWITH_FFMPEG=OFF ..

I dont have opengl support on my laptop and I dont need video module, I need it only for photos.

I get this error during make -j4

Linking CXX executable ../../bin/opencv_traincascade
[ 64%] Built target opencv_createsamples
[ 64%] Built target opencv_videostab
Scanning dependencies of target example_tapi_bgfg_segm
Scanning dependencies of target example_tapi_camshift
[ 73%] [ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_bgfg_segm.dir/bgfg_segm.cpp.o
Built target opencv_java
Scanning dependencies of target example_tapi_clahe
[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_camshift.dir/camshift.cpp.o
[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_clahe.dir/clahe.cpp.o
../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'
collect2: error: ld returned 1 exit status
make[2]: * [bin/opencv_traincascade] Error 1
make[1]:
[apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make[1]:
Waiting for unfinished jobs....
Linking CXX executable ../../bin/tapi-example-clahe
Linking CXX executable ../../bin/tapi-example-bgfg_segm
Linking CXX executable ../../bin/tapi-example-camshift
[ 74%] Built target example_tapi_clahe
[ 74%] Built target example_tapi_bgfg_segm
[ 74%] Built target example_tapi_camshift
make: *
[all] Error 2

What do I need to do? What other options could I use in cmake so it's only for photos?

EDIT:EDIT:

According to the comment by berak I used

cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON >-DBUILD_EXAMPLES=OFF -DWITH_FFMPEG=OFF -DFORCE_VTK=OFF ..

and it's basicaly the same error

Linking CXX executable ../../bin/opencv_test_stitching
../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'
collect2: error: ld returned 1 exit status
make[2]: * [bin/opencv_traincascade] Error 1
make[1]:
[apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make[1]:
Waiting for unfinished jobs....
[ 88%] Built target opencv_createsamples
[ 88%] Built target opencv_perf_stitching
[ 88%] Built target opencv_test_stitching
make: *
[all] Error 2

The problem is undefined reference to `glXGetProcAddressARB'. Is there a library I'm missing or can I even install it when I dont have OpenGL?