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

Compile misc3d in conda's virtual environment #32

Open
kungkook opened this issue Dec 13, 2022 · 6 comments
Open

Compile misc3d in conda's virtual environment #32

kungkook opened this issue Dec 13, 2022 · 6 comments

Comments

@kungkook
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

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