Opencv 2.4.9 unable to build on Ubuntu 14.04 AMD A6 with Radeon Graphics card
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
opencv (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to build OpenCV 2.4.9 on Ubuntu 14.04 AMD A6 with Radeon Graphics card.
I checked out the source from git and I am building using the following command as described in
http://
My intention is to get the jar file
cmake -DBUILD_
make -j8
This is resulting in the following error
Linking CXX executable ../../bin/
/usr/bin/ld: ../../lib/
//usr/lib/
collect2: error: ld returned 1 exit status
make[2]: *** [bin/opencv_
make[1]: *** [modules/
make[1]: *** Waiting for unfinished jobs....
Please note libv4l-dev v4l-utils are installed
When I run the cmake command the following gets printed, please note my directory is called opencv2.4.6 but actually I have checked out 2.4.9 using git
:~/opencv2.
-- The CXX compiler identification is GNU 4.8.2
-- The C compiler identification is GNU 4.8.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detected version of GNU GCC: 48 (408)
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Success
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Success
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Success
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Success
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Success
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_WUNDEF
-- Performing Test HAVE_CXX_WUNDEF - Success
-- Performing Test HAVE_C_WUNDEF
-- Performing Test HAVE_C_WUNDEF - Success
-- Performing Test HAVE_CXX_WINIT_SELF
-- Performing Test HAVE_CXX_WINIT_SELF - Success
-- Performing Test HAVE_C_WINIT_SELF
-- Performing Test HAVE_C_WINIT_SELF - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_WSHADOW
-- Performing Test HAVE_CXX_WSHADOW - Success
-- Performing Test HAVE_C_WSHADOW
-- Performing Test HAVE_C_WSHADOW - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_PTHREAD
-- Performing Test HAVE_CXX_PTHREAD - Success
-- Performing Test HAVE_C_PTHREAD
-- Performing Test HAVE_C_PTHREAD - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_MSSE
-- Performing Test HAVE_CXX_MSSE - Success
-- Performing Test HAVE_C_MSSE
-- Performing Test HAVE_C_MSSE - Success
-- Performing Test HAVE_CXX_MSSE2
-- Performing Test HAVE_CXX_MSSE2 - Success
-- Performing Test HAVE_C_MSSE2
-- Performing Test HAVE_C_MSSE2 - Success
-- Performing Test HAVE_CXX_MSSE3
-- Performing Test HAVE_CXX_MSSE3 - Success
-- Performing Test HAVE_C_MSSE3
-- Performing Test HAVE_C_MSSE3 - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Found ZLIB: /usr/lib/
-- Found TIFF: /usr/lib/
-- Found JPEG: /usr/lib/
-- Found Jasper: /usr/lib/
-- Found PNG: /usr/lib/
-- Looking for /usr/include/
-- Looking for /usr/include/
-- Found OpenEXR: /usr/lib/
-- checking for module 'gtk+-2.0'
-- found gtk+-2.0, version 2.24.23
-- checking for module 'gthread-2.0'
-- found gthread-2.0, version 2.40.0
-- checking for module 'gstreamer-
-- found gstreamer-
-- checking for module 'gstreamer-
-- found gstreamer-app-0.10, version 0.10.36
-- checking for module 'gstreamer-
-- found gstreamer-
-- checking for module 'libdc1394-2'
-- found libdc1394-2, version 2.2.1
-- checking for module 'libv4l1'
-- found libv4l1, version 1.0.1
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- checking for module 'libavcodec'
-- found libavcodec, version 54.35.0
-- checking for module 'libavformat'
-- found libavformat, version 54.20.4
-- checking for module 'libavutil'
-- found libavutil, version 52.3.0
-- checking for module 'libswscale'
-- found libswscale, version 2.1.1
-- Looking for libavformat/
-- Looking for libavformat/
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.6", minimum required is "2.0")
-- Found PythonLibs: /usr/lib/
-- Found Sphinx 1.2.2: /usr/bin/
-- Found apache ant 1.9.3: /usr/bin/ant
-- Found JNI: /usr/lib/
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_WNO_SHADOW
-- Performing Test HAVE_CXX_WNO_SHADOW - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
--
-- General configuration for OpenCV 2.4.9 =======
-- Version control: 2.4.9
--
-- Platform:
-- Host: Linux 3.13.0-24-generic x86_64
-- CMake: 2.8.12.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: Release
--
-- C/C++:
-- Built as dynamic libs?: NO
-- C++ Compiler: /usr/bin/c++ (ver 4.8.2)
-- C++ flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=
-- C++ flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=
-- C flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=
-- Linker flags (Release):
-- Linker flags (Debug):
-- Precompiled headers: YES
--
-- OpenCV modules:
-- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib java python stitching superres ts videostab
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: androidcamera dynamicuda viz
--
-- GUI:
-- QT: NO
-- GTK+ 2.x: YES (ver 2.24.23)
-- GThread : YES (ver 2.40.0)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/
-- JPEG: /usr/lib/
-- PNG: /usr/lib/
-- TIFF: /usr/lib/
-- JPEG 2000: /usr/lib/
-- OpenEXR: /usr/lib/
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.1)
-- FFMPEG: YES
-- codec: YES (ver 54.35.0)
-- format: YES (ver 54.20.4)
-- util: YES (ver 52.3.0)
-- swscale: YES (ver 2.1.1)
-- gentoo-style: YES
-- GStreamer:
-- base: YES (ver 0.10.36)
-- app: YES (ver 0.10.36)
-- video: YES (ver 0.10.36)
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: Using libv4l (ver 1.0.1)
-- XIMEA: NO
-- Xine: NO
--
-- Other third-party libraries:
-- Use IPP: NO
-- Use Eigen: YES (ver 2.0.17)
-- Use TBB: NO
-- Use OpenMP: NO
-- Use GCD NO
-- Use Concurrency NO
-- Use C=: NO
-- Use Cuda: NO
-- Use OpenCL: YES
--
-- OpenCL:
-- Version: dynamic
-- Include path: /home/krishnak/
-- Use AMD FFT: NO
-- Use AMD BLAS: NO
--
-- Python:
-- Interpreter: /usr/bin/python2 (ver 2.7.6)
-- Libraries: /usr/lib/
-- numpy: /usr/lib/
-- packages path: lib/python2.
--
-- Java:
-- ant: /usr/bin/ant (ver 1.9.3)
-- JNI: /usr/lib/
-- Java tests: YES
--
-- Documentation:
-- Build Documentation: YES
-- Sphinx: /usr/bin/
-- PdfLaTeX compiler: /usr/bin/pdflatex
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/krishnak/
-- -------
--
-- Configuring done
Could some one point out why the build is failing and suggest me whether its a bug or a configuration issue.
I had to perform this hack to get going
http:// code.opencv. org/issues/ 3726