Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opecvDirectInstall: Bug fixing #20

Open
3 of 6 tasks
rajat2004 opened this issue Apr 4, 2019 · 5 comments
Open
3 of 6 tasks

opecvDirectInstall: Bug fixing #20

rajat2004 opened this issue Apr 4, 2019 · 5 comments

Comments

@rajat2004
Copy link
Collaborator

rajat2004 commented Apr 4, 2019

The following CMake errors or warnings occur while building OpenCV:

  • Make OpenCV use the compiled FFmpeg and it's associated libraries rather than the ones installed through APT (Fixed in Some more OpenCV fixes #56)

  • Build opencv with GStreamer (790c378)

  • Likely a Travis PATH problem, it has conda in 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 29fe262)
-- 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

execute sudo apt-get install libopenblas-dev liblapacke-dev libatlas-base-dev gfortran -y

  • 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.

@rsnk96
Copy link
Owner

rsnk96 commented Jun 19, 2019

  1. 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

@rsnk96
Copy link
Owner

rsnk96 commented Jul 16, 2019

  1. 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

@rajat2004
Copy link
Collaborator Author

rajat2004 commented Jul 16, 2019

  1. 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

Nice, this got missed somehow so didn't look into it
The Travis is failing for all Bionic builds, not related to this issue
image

I've restarted one build, but this is happening on all 4

Edit: Nope! Didn't work

@rajat2004
Copy link
Collaborator Author

The Travis is failing for all Bionic builds, not related to this issue
image

I've restarted one build, but this is happening on all 4

Edit: Nope! Didn't work

Fixed with 0d40c46

@rajat2004
Copy link
Collaborator Author

Issue has been updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants