yuecideng / Misc3D

A unified library for 3D data processing with both c++ and python API
MIT License
62 stars 10 forks source link

Compile misc3d in conda's virtual environment #32

Open kungkook opened 1 year ago

kungkook commented 1 year ago

All of my environments are installed in conda's virtual environment,And the source code is compiled to open3d with the python path specified as: /home/tsy/anaconda3/envs/ttt/bin/python, and after testing open3d is compiled successfully,How does misc3d compile into conda's virtual environment? Can't seem to specify a python path? ERROR: could not find a package configuration file provided by "Eigen3"

yuecideng commented 1 year ago

Hey @kungkook , you should install pybind and eigen by your self in your system. eigen is python independent so you can install it from offical guide. pybind can be installed using pip or build it from source.

kungkook commented 1 year ago

you should install pybind and eigen by your self in your system. eigen is python independent so you can install it from offical guide. pybind can be installed using pip or build it from source.

Thank u, But I failed to compile Misc3D. i use "pip install "pybind11[global]"" to install pybind11-2.10.1 successful and sucess install eigen successful; i use cmake.. -DCMAKE_INSTALL_PREFIX=/home/tsy/anaconda3/envs/ttt/lib/cmake/Misc3D and make install -j ERROR: undefined reference to "cudaGetERRORName" and so on

kungkook commented 1 year ago

undefined reference to "cudaGetERRORName" and so on

I have successfully compiled and installed the Misc3D library, but the python interpreter in my conda virtual environment cannot find Misc3D

yuecideng commented 1 year ago

Hey @kungkook , when you configure the misc3d, you can see the cmake output message about the version and path of python interpreter. Make sure that is the same with the one you used in your conda environment.

kungkook commented 1 year ago

I check the python path in cmake. txt is the path of my conda. Can I specify the python path during compilation? For example, when compiling open3d,cmake .. DPython3_ROOT=usr/bin/python3

yuecideng commented 1 year ago

I havn't try this before, but you can have a try. Also, don't forget to add the paths bash: image