Ubuntu-Setup-Scripts
Ubuntu-Setup-Scripts copied to clipboard
opecvDirectInstall: Bug fixing
The following CMake errors or warnings occur while building OpenCV:
-
[x] Make OpenCV use the compiled FFmpeg and it's associated libraries rather than the ones installed through APT (Fixed in https://github.com/rsnk96/Ubuntu-Setup-Scripts/pull/56)
-
[x] Build opencv with GStreamer (https://github.com/rsnk96/Ubuntu-Setup-Scripts/commit/790c37824cc1665047b70f4cb2c0ca702911241b)
-
[x] Likely a Travis PATH problem, it has
condain it, but it's not actually installed (Fixed in Travis settings)
Some of your Conda libraries will be renamed so that QT windows display properly
./opencvDirectInstall.sh: line 191: cd: /opt/anaconda3/envs/py27/: No such file or directory
./opencvDirectInstall.sh: line 192: cd: lib: No such file or directory
mv: cannot stat 'libfontconfig.so*': No such file or directory
mv: cannot stat 'libpangoft2-1.0.so*': No such file or directory
- [ ] Python 2 problems in CMake, Python2 args have been removed but still looking for them, the Numpy error is also related to that (Seems to be a packaging problem, PythonLibs error on last line fixed with https://github.com/rsnk96/Ubuntu-Setup-Scripts/commit/29fe262f2c4434ca8e81098d54669bdcbf58422d)
-- Found PythonInterp: /opt/pyenv/shims/python2.7 (found suitable version "2.7.17", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable exact version "2.7.17")
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named numpy.distutils
-- Found PythonInterp: /home/travis/virtualenv/python3.7.5/bin/python3 (found suitable version "3.7.5", minimum required is "3.2")
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable exact version "3.7.5")
- [ ] OpenBLAS error, this is from the 18.04 build, 16.04 is slightly different
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
The packages are being downloaded https://github.com/rsnk96/Ubuntu-Setup-Scripts/blob/eef7fdb4ed8eac62b63a9efdb48ae4424e73db1c/opencvDirectInstall.sh#L61
- [ ] VTK error (the last line shows VTK has been found, so could be that the second one is useless)
-- The imported target "vtkRenderingPythonTkWidgets" references the file
"/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
but not all the files it references.
-- Found VTK 6.3.0 (/usr/lib/cmake/vtk-6.3/UseVTK.cmake)
Right now, building opencv with VTK is commented out, but will be a problem if someone requires it.
- Need to update removal of conda during opencv installation. Reason: with update in how conda activates environments with
conda.sh, the current script does not remove conda completely while building opencv. This leads to a non-working highgui module since it is linked to conda's qt and not the system qt
- Need to update removal of conda during opencv installation. Reason: with update in how conda activates environments with
conda.sh, the current script does not remove conda completely while building opencv. This leads to a non-working highgui module since it is linked to conda's qt and not the system qt
Fixed
- Need to update removal of conda during opencv installation. Reason: with update in how conda activates environments with
conda.sh, the current script does not remove conda completely while building opencv. This leads to a non-working highgui module since it is linked to conda's qt and not the system qtFixed
Nice, this got missed somehow so didn't look into it
The Travis is failing for all Bionic builds, not related to this issue

I've restarted one build, but this is happening on all 4
Edit: Nope! Didn't work
The Travis is failing for all Bionic builds, not related to this issue
I've restarted one build, but this is happening on all 4
Edit: Nope! Didn't work
Fixed with https://github.com/rsnk96/Ubuntu-Setup-Scripts/commit/0d40c46aed8202555bfae01329d0d06a6102c21e
Issue has been updated