ubuntu compilation error with 2.4.5 [closed]
hello,
I try to add comments to the following thread , but the site is not working or so anyone could look at the issue related in this thread ? :
http://answers.opencv.org/question/40348/error-compiling-245-on-ubuntu/?answer=41017#post-id-41017
appreciate
I tried compiling without the gui wich caused the error, but I got some other error
here is my config line a result
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_EXAMPLES=ON -D WITH_JPEG=ON -D WITH_OPENGL=ON -D WITH_QT=ON -DBUILD_opencv_highgui=OFF ..
-- Detected version of GNU GCC: 48 (408)
-- Found OpenEXR: /usr/lib/arm-linux-gnueabihf/libIlmImf.so
-- checking for module 'gstreamer-base-0.10'
-- package 'gstreamer-base-0.10' not found
-- 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
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Module opencv_python disabled because opencv_highgui dependency can't be resolved!
-- Module opencv_videostab disabled because opencv_highgui dependency can't be resolved!
--
-- General configuration for OpenCV 2.4.9 =====================================
-- Version control: 2.4.9
--
-- Platform:
-- Host: Linux 3.4.75 armv7l
-- CMake: 2.8.12.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 4.8.2)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- Precompiled headers: YES
--
-- OpenCV modules:
-- To be built: core flann imgproc features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts
-- Disabled: highgui world
-- Disabled by dependency: python(deps: highgui) videostab(deps: highgui)
-- Unavailable: androidcamera dynamicuda java viz
--
-- GUI:
-- QT 5.x: YES (ver 5.2.1)
-- QT OpenGL support: YES (Qt5::OpenGL 5.2.1)
-- OpenGL support: YES (/usr/lib/arm-linux-gnueabihf/libGLU.so /usr/lib/arm-linux-gnueabihf/libGL.so /usr/lib/arm-linux-gnueabihf/libSM.so /usr/lib/arm-linux-gnueabihf/libICE.so /usr/lib/arm-linux-gnueabihf/libX11.so /usr/lib/arm-linux-gnueabihf/libXext.so)
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/arm-linux-gnueabihf/libz.so (ver 1.2.8)
-- JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so (ver )
-- PNG: /usr/lib/arm-linux-gnueabihf/libpng ...
Actually I deleted the answer because that is not the way of pushing up your message. Closed the other one, this one is way better prepared and has better information in it. To bump a topic just edit it and add a bump notice on the bottom.
>-- Could NOT find JNI
Maybe you need to install Java JNI?
Nope that message just says that java is not installed and thus java bindings will not be generated. But this is not the goal right?
Unless thus are not need to android build?
@Victor1234 the topic starter clearly states he is building for Ubuntu, not for android development.
@StevenPuttemans thx for letting me hanging there, hopefully I created another post besides I need highgui cos of imread and imwrite, so I am screwed
Dude, read the rules, stick to a single topic and add all remarks by using the edit button. All your posts are about not being able to fix an ubuntu build... So keep your stuff together and there isn't a single problem...