I'm trying to install graph-tool python library and i run ./configure in cygwin as told here: https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#generic-instructions and I'm getting configure: error: expat library not found although i have already gotten expat-win32bin-2.2.9.exe from https://github.com/libexpat/libexpat/releases and installed it right next to graph-tool folder. I also added its /bin to $PATH.
I want to build and install(using Cmake) PCL on ubuntu18.04 but for this, I need to install Flann, eigen, vtk etc. but I want these to use conda virtual environment.
I was trying to build and install Flann using Cmake but I also want it to install pyflann(python bindings of flann) in virual environment(conda) but when after build by command
cmake ..
make
in build folder of source code.I used
sudo make install
and tested the installation in python
import pyflann
This all installed flann(pyflann) in core python of ubuntu but now I want to install it in virtual environment and also in a specifies directory.
While installing VTK I tried to change interpreter path in cmakCache.txt file and then run make and sudo make install for vtk but this also not worked
import vtk not worked.
I am under OSX (Mojave) and using Python 3.7.0. In order to install a python package to visualise results (Mayavi) I need to install vtk with python 3 bindings.
I have installed python 3.7.0 with brew
I attempted the following:
python3 -m pip install vtk. I get:
Collecting vtk
Could not find a version that satisfies the requirement vtk (from versions: )
No matching distribution found for vtk
brew install vtk --without-python#2does not allow to install the python 3 wrappers
brew install vtk --with-python --without-python#2 gives:
[10%] Built target vtkCommonMath
make: *** [all] Error 2
READ THIS: https://docs.brew.sh/Troubleshooting
I also tried to follow this tutorial but I could not find VTK_WRAP_TCL in the available options of the ccmake. I set the following options:
PYTHON_EXECUTABLE :/usr/local/bin/python3
PYTHON_INCLUDE_DIR: /usr/local/Frameworks/Python.framework/Versions/3.7/include/python3.7m
Compiling VTK goes fine. But when I try to compile the wrappers, the sudo make install gives:
[100%] Built target vtkpython
Install the project...
-- Install configuration: "Debug"
-- Installing: /usr/lib/libvtkCommonCorePython37D-8.2.1.dylib
CMake Error at cmake_install.cmake:36 (file):
file INSTALL cannot copy file "/Users/marco.magliulo/Software/vtkBuild/lib/libvtkCommonCorePython37D-8.2.1.dylib"
to "/usr/lib/libvtkCommonCorePython37D-8.2.1.dylib".
Is there a simple way to get the python 3 wrappers that I did not try ?
Is there something obvious that I am missing in the different attempts I made?
Following the steps given here, i have completed the installation process, however Python (IDLE) is giving me an ImportError. For which the guide suggests :
Python may return to you an error like "No module named cv" The trouble is that the python module is installed in /usr/local/lib/python2.6/site-packages. But, on Debian and on Ubuntu, Python only looks in /usr/local/lib/python2.6/dist-packages
You can fix it using three ways (Use only one of those, the first is the best):
move the cv.so file from the site-packages to the dist-packages:
sudo mv /usr/local/lib/python2.6/site-packages/cv.so /usr/local/lib/python2.6/dist-packages/cv.so
However, both the site-packages as well as dist-packages, for both 2.7 and 3.2 are empty.
What went wrong and how do i solve it ?
I solved the problem by installing all the packages and dependencies again using the Software Center. OpenCV Python bindings are available for OpenCV 2.3 and Python 2.7 directly from the software center which I used the second time.
OpenCv python bindings for 3.2 are not available for 12.04. They are being developed for Raring (Ubuntu 13.04) only. Hence, the solution is to use either backports, or to use OpenCv on Python 2.7
Backports also have a problem as they are available only for 32 bit OS systems and not 64 bit.
So, the only safe and stable way to run OpenCV Python on Ubuntu seems to be using OpenCV 2.3 on Python 2.7
I also get the empty dist-packages folder with OpenCV2.4.4 and Ubuntu 12.04. It turns out that I need to install python-dev and python-numpy in order to make the cv.so compiled into the dist-packages.
sudo apt-get install python-dev python-numpy
After that, using cmake to build OpenCV again and everything will be fine
UPDATE
it depends on your system pretty much.
On my Lion (10.8), I have java installed, and openCV complaints about cannot build the unit test and stop at 92%. It turned out that I have to manually create the build folder and put the junit jar into the lib folder in order to let opencv compile all the test case. After that, everything is ok
On my ubuntu (12.04, fresh installation with build-essential and all packages are up-to-date), eveything is compiled fine, except that "No module named cv" and there is not cv.so in the dist-packages and site-packages. Searching around and then finally, it turned out that I have to have python-dev and python-numpy
I am trying to use the text-icu library as a dependency in a cabal package on Mac OS. I have icu installed but when I try to build my package cabal gives me this error:
Missing C libraries: icui18n, icudata, icuuc
I'm am unsure what debugging steps to use.
You can use either MacPorts or Homebrew to install the icu package, and have cabal refer to the custom header and library path:
MacPorts
sudo port install icu
cabal install text-icu --extra-include-dirs=/opt/local/include --extra-lib-dirs=/opt/local/lib
Homebrew
brew install icu4c
cabal install text-icu --extra-lib-dirs=/usr/local/opt/icu4c/lib --extra-include-dirs=/usr/local/opt/icu4c/include