Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Internal error while loading opencv shared library shared

I had cross-compiled the opencv shared library and copied into imx6 board(armv7l) and getting the following code while running the application

1.error while loading shared libraries: /usr/lib/libopencv_calib3d.so.2.4: internal error

Board on which error is coming Linux iWave-G15 4.1.15+gb63f3f5 #10 SMP PREEMPT Mon Jul 2 18:25:13 IST 2018 armv7l armv7l armv7l GNU/Linux

Internal error while loading opencv shared library shared

I had cross-compiled the opencv shared library and copied into imx6 board(armv7l) and getting the following code while running the application

1.error while loading shared libraries: /usr/lib/libopencv_calib3d.so.2.4: internal error

Board on which error is coming Linux iWave-G15 4.1.15+gb63f3f5 #10 SMP PREEMPT Mon Jul 2 18:25:13 IST 2018 armv7l armv7l armv7l GNU/Linux

$ cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake ../opencv-2.4.9 -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_V4L=ON -DWITH_FFMPEG=OFF -DBUILD_opencv_python2=ON -- Detected version of GNU GCC: 47 (407) -- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.8") -- 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 -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable exact version "2.7.6") -- Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV) -- If you want to enable Python/Numpy support, set the following variables: -- PYTHON_INCLUDE_PATH -- PYTHON_LIBRARIES -- PYTHON_NUMPY_INCLUDE_DIR

-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)

-- General configuration for OpenCV 2.4.9 =====================================

-- Version control: unknown

-- Platform: -- Host: Linux 3.13.0-137-generic x86_64 -- Target: Linux arm -- 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/arm-linux-gnueabi-g++ (ver 4.7.3) -- 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 -mfpu=neon -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 -mfpu=neon -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/arm-linux-gnueabi-gcc -- 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 -mfpu=neon -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 -mfpu=neon -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -- 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 stitching superres ts videostab -- Disabled: world -- Disabled by dependency: -

-- Unavailable: androidcamera dynamicuda java python viz

-- GUI: -- QT: NO -- GTK+ 2.x: NO -- GThread : NO -- GtkGlExt: NO -- OpenGL support: NO

-- VTK support: NO

-- Media I/O: -- ZLib: zlib (ver 1.2.7) -- JPEG: NO -- PNG: NO -- TIFF: NO -- JPEG 2000: NO

-- OpenEXR: NO

-- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: NO -- FFMPEG: NO -- codec: NO -- format: NO -- util: NO -- swscale: NO -- gentoo-style: NO -- GStreamer: NO -- 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: NO -- Use TBB: YES (ver 4.2 interface 7000) -- Use OpenMP: NO -- Use GCD NO -- Use Concurrency NO -- Use C=: NO -- Use Cuda: NO

-- Use OpenCL: YES

-- OpenCL: -- Version: dynamic -- Include path: /home/user/Desktop/EMETY/opencv-2.4.9/3rdparty/include/opencl/1.2 -- Use AMD FFT: NO

-- Use AMD BLAS: NO

-- Python: -- Interpreter: /usr/bin/python2 (ver 2.7.6) -- Libraries: NO -- numpy: NO (Python wrappers can not be generated)

-- packages path: lib/python2.7/dist-packages

-- Java: -- ant: NO -- JNI: /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include

-- Java tests: NO

-- Documentation: -- Build Documentation: NO -- Sphinx: NO

-- PdfLaTeX compiler: /usr/bin/pdflatex

-- Tests and samples: -- Tests: YES -- Performance tests: YES

-- C/C++ Examples: YES

-- Install path: /home/user/Desktop/EMETY/build/install

-- cvconfig.h is in: /home/user/Desktop/EMETY/build

-- -----------------------------------------------------------------

-- Configuring done -- Generating done -- Build files have been written to: /home/user/Desktop/EMETY/build

click to hide/show revision 3
None

updated 2018-07-20 06:49:40 -0600

berak gravatar image

Internal error while loading opencv shared library shared

I had cross-compiled the opencv shared library and copied into imx6 board(armv7l) and getting the following code while running the application

 1.error while loading shared libraries: /usr/lib/libopencv_calib3d.so.2.4: internal error

error

Board on which error is coming coming

Linux iWave-G15 4.1.15+gb63f3f5 #10 SMP PREEMPT Mon Jul 2 18:25:13 IST 2018 armv7l armv7l armv7l GNU/Linux

GNU/Linux $ cmake -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake ../opencv-2.4.9 -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_V4L=ON -DWITH_FFMPEG=OFF -DBUILD_opencv_python2=ON -- Detected version of GNU GCC: 47 (407) -- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.8") -- 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 -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable exact version "2.7.6") -- Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV) -- If you want to enable Python/Numpy support, set the following variables: -- PYTHON_INCLUDE_PATH -- PYTHON_LIBRARIES -- PYTHON_NUMPY_INCLUDE_DIR

PYTHON_NUMPY_INCLUDE_DIR -- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)

-- -- General configuration for OpenCV 2.4.9 =====================================

===================================== -- Version control: unknown

unknown -- -- Platform: -- Host: Linux 3.13.0-137-generic x86_64 -- Target: Linux arm -- CMake: 2.8.12.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make

/usr/bin/make -- Configuration: RELEASE

RELEASE -- -- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/arm-linux-gnueabi-g++ (ver 4.7.3) -- 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 -mfpu=neon -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 -mfpu=neon -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /usr/bin/arm-linux-gnueabi-gcc -- 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 -mfpu=neon -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 -mfpu=neon -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release):
-- Linker flags (Debug):

-- Precompiled headers: YES

YES -- -- OpenCV modules: -- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab -- Disabled: world -- Disabled by dependency: -

- -- Unavailable: androidcamera dynamicuda java python viz

viz -- -- GUI: -- QT: NO -- GTK+ 2.x: NO -- GThread : NO -- GtkGlExt: NO -- OpenGL support: NO

NO -- VTK support: NO

NO -- -- Media I/O: -- ZLib: zlib (ver 1.2.7) -- JPEG: NO -- PNG: NO -- TIFF: NO -- JPEG 2000: NO

NO -- OpenEXR: NO

NO -- -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: NO -- FFMPEG: NO -- codec: NO -- format: NO -- util: NO -- swscale: NO -- gentoo-style: NO -- GStreamer: NO -- 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

NO -- Xine: NO

NO -- -- Other third-party libraries: -- Use IPP: NO -- Use Eigen: NO -- Use TBB: YES (ver 4.2 interface 7000) -- Use OpenMP: NO -- Use GCD NO -- Use Concurrency NO -- Use C=: NO -- Use Cuda: NO

NO -- Use OpenCL: YES

YES -- -- OpenCL: -- Version: dynamic -- Include path: /home/user/Desktop/EMETY/opencv-2.4.9/3rdparty/include/opencl/1.2 -- Use AMD FFT: NO

NO -- Use AMD BLAS: NO

NO -- -- Python: -- Interpreter: /usr/bin/python2 (ver 2.7.6) -- Libraries: NO -- numpy: NO (Python wrappers can not be generated)

generated) -- packages path: lib/python2.7/dist-packages

lib/python2.7/dist-packages -- -- Java: -- ant: NO -- JNI: /usr/lib/jvm/java-8-oracle/include /usr/lib/jvm/java-8-oracle/include/linux /usr/lib/jvm/java-8-oracle/include

/usr/lib/jvm/java-8-oracle/include -- Java tests: NO

NO -- -- Documentation: -- Build Documentation: NO -- Sphinx: NO

NO -- PdfLaTeX compiler: /usr/bin/pdflatex

/usr/bin/pdflatex -- -- Tests and samples: -- Tests: YES -- Performance tests: YES

YES -- C/C++ Examples: YES

YES -- -- Install path: /home/user/Desktop/EMETY/build/install

/home/user/Desktop/EMETY/build/install -- -- cvconfig.h is in: /home/user/Desktop/EMETY/build

-- -----------------------------------------------------------------

/home/user/Desktop/EMETY/build -- ----------------------------------------------------------------- -- -- Configuring done -- Generating done -- Build files have been written to: /home/user/Desktop/EMETY/build

/home/user/Desktop/EMETY/build