milq / milq Goto Github PK
View Code? Open in Web Editor NEWUseful code of Manuel Ignacio López Quintero
Home Page: http://milq.github.io
License: MIT License
Useful code of Manuel Ignacio López Quintero
Home Page: http://milq.github.io
License: MIT License
In line 36 of the script have a command to install the qt5-default and libvtk6-dev, but the qt5-default not install, I have install before the script to use. I suggest part the line to:
sudo apt-get install -y qt5-default
sudo apt-get install -y libvtk6-dev
Ubuntu16.04
OpenCV 3.3.0
error:
OpenCV 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 /io/opencv/modules/highgui/src/window.cpp, line 605
Traceback (most recent call last):
File "/home/zhangxu/PycharmProjects/coconut/main.py", line 12, in
cv2.imshow('img',img)
cv2.error: /io/opencv/modules/highgui/src/window.cpp:605: 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
I set "-DWITH_QT=ON", but how to solve this error, other function to instead inshow()?
Hi, how can I add the contrib to this installation?
On an AWS GPU the make -j4 (in the install-opencv.sh file ) takes a long time.
Almost an hour, from what i can see.
Maybe a comment can help prepare a reader in advance ?
"fatal error: stdlib.h: No such file or directory" due to wrong assignments can be avoided by adding
-DENABLE_PRECOMPILED_HEADERS=OFF
in cmake.
Please remove (!!) the following lines from your setup:
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
... or at least remove the "-y" part from those commands.
Those type of "setups" will kill systems of users because other software is not prepared for the next linux version or configurations will be changed. Unprofessional setups like yours are the reason, why users ALWAYS have to check and read those scripts.
The minimum should be an explicit warning about those risks after the script execution.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/amila/opencv/OpenCV/build
Scanning dependencies of target opencv_highgui_automoc
Scanning dependencies of target opencv_test_highgui_automoc
[ 0%] [ 0%] Automoc for target opencv_highgui
Generating opencl_kernels_core.cpp, opencl_kernels_core.hpp
[ 0%] Automoc for target opencv_test_highgui
Generating moc_window_QT.cpp
[ 0%] Built target opencv_test_highgui_automoc
Scanning dependencies of target opencv_core
[ 0%] [ 0%] [ 0%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.cpp.o
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.o
Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.cpp.o
[ 0%] Built target opencv_highgui_automoc
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matop.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/glob.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/pca.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/datastructs.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.o
[ 1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_core.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdblas.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdfft.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel_pthreads.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stl.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/gl_core_3_1.cpp.o
[ 2%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_host_mem.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/copy.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ovx.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/downhill_simplex.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.o
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o
In file included from /home/amila/opencv/OpenCV/modules/core/src/hal_internal.cpp:49:0:
/home/amila/opencv/OpenCV/build/opencv_lapack.h:2:45: fatal error: LAPACKE_H_PATH-NOTFOUND/lapacke.h: No such file or directory
#include "LAPACKE_H_PATH-NOTFOUND/lapacke.h"
^
compilation terminated.
[ 3%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
[ 0%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o
In file included from /home/amila/opencv/OpenCV/modules/core/src/hal_internal.cpp:49:0:
/home/amila/opencv/OpenCV/build/opencv_lapack.h:2:45: fatal error: LAPACKE_H_PATH-NOTFOUND/lapacke.h: No such file or directory
#include "LAPACKE_H_PATH-NOTFOUND/lapacke.h"
^
compilation terminated.
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
In the install-opencv.sh script, at line 82, shouldn't there be a step to cd into 'opencv-${OPENCV_VERSION}' before creating the build folder? As written it appears it will just go into OpenCV and create the build folder but there is no CMakeLists.txt under OpenCV from the steps shown. It would be under 'OpenCV/opencv-${OPENCV_VERSION}' instead.
-- Performing Test HAVE_CXX_MNO_SSE4_1 - Success
-- Performing Test HAVE_C_MNO_SSE4_1
-- Performing Test HAVE_C_MNO_SSE4_1 - Success
-- Performing Test HAVE_CXX_MNO_SSE4_2
-- Performing Test HAVE_CXX_MNO_SSE4_2 - Success
-- Performing Test HAVE_C_MNO_SSE4_2
-- Performing Test HAVE_C_MNO_SSE4_2 - Success
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_C_FFUNCTION_SECTIONS
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed
-- FP16: Feature disabled
-- 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/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
-- Found WebP: /usr/lib/x86_64-linux-gnu/libwebp.so
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50")
-- Looking for /usr/include/libpng/png.h
-- Looking for /usr/include/libpng/png.h - found
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- checking for module 'gstreamer-base-1.0'
-- package 'gstreamer-base-1.0' not found
-- checking for module 'gstreamer-video-1.0'
-- package 'gstreamer-video-1.0' not found
-- checking for module 'gstreamer-app-1.0'
-- package 'gstreamer-app-1.0' not found
-- checking for module 'gstreamer-riff-1.0'
-- package 'gstreamer-riff-1.0' not found
-- checking for module 'gstreamer-pbutils-1.0'
-- package 'gstreamer-pbutils-1.0' not found
-- checking for module 'gstreamer-base-0.10'
-- found gstreamer-base-0.10, version 0.10.36
-- checking for module 'gstreamer-video-0.10'
-- found gstreamer-video-0.10, version 0.10.36
-- checking for module 'gstreamer-app-0.10'
-- found gstreamer-app-0.10, version 0.10.36
-- checking for module 'gstreamer-riff-0.10'
-- found gstreamer-riff-0.10, version 0.10.36
-- checking for module 'gstreamer-pbutils-0.10'
-- found gstreamer-pbutils-0.10, version 0.10.36
-- checking for module 'libdc1394-2'
-- found libdc1394-2, version 2.2.1
-- checking for module 'libxine'
-- found libxine, version 1.2.4
-- 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 modules 'libavcodec;libavformat;libavutil;libswscale'
-- found libavcodec, version 54.35.1
-- found libavformat, version 54.20.4
-- found libavutil, version 52.3.0
-- found libswscale, version 2.1.1
-- checking for module 'libavresample'
-- package 'libavresample' not found
-- checking for module 'libgphoto2'
-- package 'libgphoto2' not found
-- Found TBB: /usr/lib/libtbb.so
-- ICV: Downloading ippicv_linux_20151201.tgz...
CMake Error at 3rdparty/ippicv/downloader.cmake:73 (file):
file DOWNLOAD HASH mismatch
for file: [/home/andrewcz/opencv2/OpenCV/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/ippicv_linux_20151201.tgz]
expected hash: [808b791a6eac9ed78d32a7666804320e]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
status: [52;"Server returned nothing (no headers, no data)"]
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
CMake Error at 3rdparty/ippicv/downloader.cmake:77 (message):
ICV: Failed to download ICV package: ippicv_linux_20151201.tgz.
Status=52;"Server returned nothing (no headers, no data)"
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
-- Configuring incomplete, errors occurred!
See also "/home/andrewcz/opencv2/OpenCV/build/CMakeFiles/CMakeOutput.log".
See also "/home/andrewcz/opencv2/OpenCV/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop
[ 84%] Built target opencv_visualisation
Linking CXX executable ../../bin/opencv_version
../../lib/libopencv_core.so.3.2.0: undefined reference to dpotrf_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
dgesv_'
../../lib/libopencv_core.so.3.2.0: undefined reference to sgels_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
sgesv_'
../../lib/libopencv_core.so.3.2.0: undefined reference to sposv_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
dgetrf_'
../../lib/libopencv_core.so.3.2.0: undefined reference to sgetrf_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
dgels_'
../../lib/libopencv_core.so.3.2.0: undefined reference to dgeqrf_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
spotrf_'
../../lib/libopencv_core.so.3.2.0: undefined reference to sgeqrf_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
sgesdd_'
../../lib/libopencv_core.so.3.2.0: undefined reference to dgesdd_' ../../lib/libopencv_core.so.3.2.0: undefined reference to
dposv_'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/opencv_version] Error 1
make[1]: *** [apps/version/CMakeFiles/opencv_version.dir/all] Error 2
make: *** [all] Error 2
could you help please
Hi,
I suggest to include GLEW library to apt installation command since many use your openCV script for combination with Pangoline.
sudo apt-get install -y zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev
libopenexr-dev libgdal-dev libglew-dev libeigen3-dev
for file: [/home/Downloads/opencv-3.2.0/cmake/OpenCV/3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e/ippicv_linux_20151201.tgz]
expected hash: [808b791a6eac9ed78d32a7666804320e]
actual hash: [cbc2bea8e31e20adb8f6430054e22a99]
status: [56;"Failure when receiving data from the peer"]
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
CMake Error at 3rdparty/ippicv/downloader.cmake:77 (message):
ICV: Failed to download ICV package: ippicv_linux_20151201.tgz.
Status=56;"Failure when receiving data from the peer"
Call Stack (most recent call first):
3rdparty/ippicv/downloader.cmake:110 (_icv_downloader)
cmake/OpenCVFindIPP.cmake:243 (include)
cmake/OpenCVFindLibsPerf.cmake:37 (include)
CMakeLists.txt:558 (include)
-- Configuring incomplete, errors occurred!
See also "/home/Downloads/opencv-3.2.0/cmake/OpenCV/build/CMakeFiles/CMakeOutput.log".
See also "/home/Downloads/opencv-3.2.0/cmake/OpenCV/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
when i execute this command of wget, then it shows the following error
wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip
--2018-05-17 17:37:21-- https://github.com/opencv/opencv/archive/.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-05-17 17:37:23 ERROR 404: Not Found.
the file has been moved from your github archive, kindly guide me through the complete installation steps, if am doing something wrong.
Am following your these instructions from readme:
https://github.com/milq/milq/blob/master/scripts/bash/install-opencv.sh
I hope this is the right place to ask this , if not, just ignore it.
I have managed to execute one of he scripts - install-opencv.sh -
and have some issues with results.
First I like to know why the "lib" ends up in usr/local/lib , but that is not that important.
When I try to add library path into Eclipse linker (_L) option I get three directories Python x and a ton of grayed out .so files which I cannot access.
Even when I select one of the Python's directories for a path (_L) I cannot add any real library (-l) .
Hello, I am running into errors when I enter the following command:
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON ..
-- checking for module 'gstreamer-base-1.0'
-- package 'gstreamer-base-1.0' not found
-- checking for module 'gstreamer-video-1.0'
-- package 'gstreamer-video-1.0' not found
-- checking for module 'gstreamer-app-1.0'
-- package 'gstreamer-app-1.0' not found
-- checking for module 'gstreamer-riff-1.0'
-- package 'gstreamer-riff-1.0' not found
-- checking for module 'gstreamer-pbutils-1.0'
-- package 'gstreamer-pbutils-1.0' 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
-- checking for module 'libgphoto2'
-- package 'libgphoto2' not found
-- checking for module 'tbb'
-- package 'tbb' not found
and also,
-- VTK support is disabled. Incompatible combination: OpenCV + Qt5 and VTK ver.6.1.0 + Qt4
I tried Google'ing everything and can't seem to find a solution to my problem. I am running the NOOBS OS on the raspberry pi.
Thanks for the helpful script.
I am using scripts/bash/install-opencv.sh
.
Ubuntu 22.04 & Debian 11 repository dont have qt5-default package.
I got this error:
Package 'qt5-default' has no installation candidate
I added this:
# GUI (if you want GTK, change 'qt5-default' to 'libgtkglext1-dev' and remove '-DWITH_QT=ON'):
sudo apt-get install -y qt5-default libvtk6-dev
# for ubuntu 22.04 & debian 11
sudo apt-get install -y qtbase5-dev qt5-qmake
I found that the following command causes an error on debian11.
$ LANG=C sudo apt-get install -y python-dev python-tk pylint python-numpy \
python3-dev python3-tk pylint3 python3-numpy flake8
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
E: Unable to locate package python-numpy
So i changed:
# Python:
#sudo apt-get install -y python-dev python-tk pylint python-numpy \
# python3-dev python3-tk pylint3 python3-numpy flake8
sudo apt-get install -y flake8
sudo apt-get install -y python-dev python-tk pylint python-numpy
sudo apt-get install -y python3-dev python3-tk pylint3 python3-numpy
All went well.
$ opencv_version
3.4.16
$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.4.16'
>>> exit()
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
ry
#include_next <stdlib.h>
^
compilation terminated.
modules/core/CMakeFiles/pch_Generate_opencv_core.dir/build.make:62: recipe for target 'modules/core/precomp.hpp.gch/opencv_core_RELEASE.gch' failed
make[2]: *** [modules/core/precomp.hpp.gch/opencv_core_RELEASE.gch] Error 1
CMakeFiles/Makefile2:2014: recipe for target 'modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/pch_Generate_opencv_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I need install imutils to run my code, but I can't, I try adding install via (pip install imutils)on the install_opencv.sh file but is not posible, it feedback missing pip error also I cant insatall pip.
As title.
Ubuntu 16.10
[ 13%] Generating precomp.hpp.gch/opencv_highgui_Release.gch
In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
from /usr/include/c++/6/algorithm:62,
from /home/jonathan/Desktop/OpenCV/modules/core/include/opencv2/core/base.hpp:55,
from /home/jonathan/Desktop/OpenCV/modules/core/include/opencv2/core.hpp:54,
from /home/jonathan/Desktop/OpenCV/modules/highgui/include/opencv2/highgui.hpp:46,
from /home/jonathan/Desktop/OpenCV/build/modules/highgui/precomp.hpp:45:
/usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/build.make:62: recipe for target 'modules/highgui/precomp.hpp.gch/opencv_highgui_Release.gch' failed
make[2]: *** [modules/highgui/precomp.hpp.gch/opencv_highgui_Release.gch] Error 1
CMakeFiles/Makefile2:4262: recipe for target 'modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
I had to add DENABLE_PRECOMPILED_HEADERS=OFF to the cmake line on Ubuntu 17.04 as mentioned here: https://stackoverflow.com/questions/40262928/error-compiling-opencv-fatal-error-stdlib-h-no-such-file-or-directory
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DENABLE_PRECOMPILED_HEADERS=OFF ..
Hello Manuel,
The script works excellent in Ubuntu 14.04.
I'm wondering how should I do to run the script on a macOS Sierra ?
Thanks.
Error: [modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/src/graphcuts.cpp.o] Error 1
Fix: I had to use the latest code from Master due to this FIX
Hi. Debian9 Problem!
libjasper-dev not found!
Hello,
After OpenCV installation using the provided shell script, I'm facing problems when I try to run some example c++ OpenCV code.
It's a simple "imread-->imshow" code, nothing complicated. The problem appears to be a header file problem.
Here is the error message I'm getting.
anjulo@imac:~$ make cpp
g++ cpp.cpp -o cpp `pkg-config opencv --cflags --libs`
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
cpp.cpp:1:10: fatal error: opencv2/core.hpp: No such file or directory
1 | #include <opencv2/core.hpp>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:4: cpp] Error 1
I have found after some searching the command pkg-config opencv --cflags --libs
should tell me where the headers or libs are. But it's giving me part of the error above.
anjulo@imac:~$ pkg-config --libs opencv
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
I would appreciate any help to solve this problem.
I'm running on Ubuntu 20.04
The "make" command on Line 68 fails.
sh: 68: Syntax error: "(" unexpected
I believe it should be: make -j$(nproc)
Hello,
unfortunately, I ran your script without realizing that it will upgrade my system, could you please put a warning or add the option of asking the user if they want to upgrade their system.
Thank you,
install-opencv.sh works with older versions of OpenCV but when I run it with 4.1.1 I get:
FATAL: In-source builds are not allowed.
I think you need to put the build directory outside the OpenCV directory.
On a new(ish) install of 16.04 this script failed. This script got me the closest of any I have found online though :)
[ 10%] Linking CXX executable ../../../bin/opencv_test_cudev
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_CTX_free@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_get_version@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
CRYPTO_get_id_callback@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to BIO_int_ctrl@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_get_error@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_use_PrivateKey_file@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
X509_NAME_get_entry@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ASN1_STRING_length@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_set_ex_data@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to X509_STORE_set_flags@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
BIO_new@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSLv23_method@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
X509_get_subject_name@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ENGINE_load_private_key@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
X509_NAME_ENTRY_get_data@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to CRYPTO_set_id_callback@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to
TIFFClose@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_CTX_get_cert_store@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_check_private_key@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ENGINE_by_id@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
CRYPTO_set_locking_callback@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to BIO_clear_flags@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_write@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to X509_free@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_free@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_ctrl@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_set_verify@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_CIPHER_get_bits@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_use_PrivateKey@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to sk_free@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
ENGINE_finish@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to X509_get_ext_d2i@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_get_peer_certificate@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to CRYPTO_num_locks@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_get_current_compression@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ENGINE_free@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
ASN1_STRING_data@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to OPENSSL_config@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
X509_STORE_load_locations@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to TIFFDefaultStripSize@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_CIPHER_get_name@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to sk_num@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to
TIFFFdOpen@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to TIFFWriteScanline@LIBTIFF_4.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_read@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to BIO_set_flags@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
CRYPTO_get_locking_callback@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to sk_value@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_CTX_new@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ERR_put_error@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
ERR_get_error@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to BIO_s_socket@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_new@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_load_error_strings@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_get_current_cipher@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_CTX_load_verify_locations@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to
TIFFSetField@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ERR_clear_error@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
ENGINE_init@OPENSSL_1.0.0'
//usr/lib/libgdal.so.1: undefined reference to sqlite3_column_table_name' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_set_bio@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to ERR_reason_error_string@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_connect@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to X509_NAME_get_index_by_NID@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_CTX_ctrl@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to SSL_pending@OPENSSL_1.0.0' //usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to
SSL_library_init@OPENSSL_1.0.0'
//usr/lib/x86_64-linux-gnu/libpq.so.5: undefined reference to `SSL_shutdown@OPENSSL_1.0.0'
collect2: error: ld returned 1 exit status
modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/build.make:231: recipe for target 'bin/opencv_test_cudev' failed
make[2]: *** [bin/opencv_test_cudev] Error 1
CMakeFiles/Makefile2:1214: recipe for target 'modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all' failed
make[1]: *** [modules/cudev/test/CMakeFiles/opencv_test_cudev.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Code tested and still working with 3.3.0 version.
Only need to install Qt5
sudo apt install qtbase5-dev
and i change to put the version in a variable
`sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
sudo apt-get install -y build-essential cmake
sudo apt-get install -y qt5-default libvtk6-dev
sudo apt install qtbase5-dev
sudo apt-get install -y zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev libgdal-dev
sudo apt-get install -y libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev yasm libopencore-amrnb-dev libopencore-amrwb-dev libv4l-dev libxine2-dev
sudo apt-get install -y libtbb-dev libeigen3-dev
sudo apt-get install -y doxygen
version = "3.3.0"
sudo apt-get install -y unzip wget
wget https://github.com/opencv/opencv/archive/$version.zip
unzip $version.zip
rm $version.zip
mv opencv-$version OpenCV
cd OpenCV
mkdir build
cd build
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DENABLE_PRECOMPILED_HEADERS=OFF ..
make -j $(nproc)
sudo make install
sudo ldconfig
Product:milq
Download: https://github.com/milq/milq
Vunlerable Version: lastest version and probably prior
Tested Version: lastest version
Author: ADLab of Venustech
Advisory Details:
I have discovered multiple Cross-Site Scripting (XSS) in “milq”, which can be exploited to execute arbitrary code.
The vulnerability exists due to insufficient filtration of user-supplied data in multiple HTTP POST parameters passed to “milq-master/learn/web/form/process.php” url. An attacker could execute arbitrary HTML and script code in browser in context of the vulnerable website.
The exploitation exampleS below use the "alert()" JavaScript function to see a pop-up messagebox:
Poc:
(1)
POST: gender=><script>alert(1);</script><
To
http://localhost/.../milq-master/learn/web/form/process.php
(2)
POST: name=><script>alert(1);</script><
To
http://localhost/.../milq-master/learn/web/form/process.php
(3)
POST: age=><script>alert(1);</script><
To
http://localhost/.../milq-master/learn/web/form/process.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.