-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
PYBIND11 cmake error #420
Comments
There is no difference as far as |
I also met same problem. Maybe, it has some problems. And, I don't need any python interfacce for Open3D, I need only c++ libraries. |
The error is caused by 3rd line of Open3D/src/External/CMakeList.txt. |
Even after deleting the CMake cache, the error also happens. |
I've just tested on my Windows 10 64bit machine, Python 2.7 32bit, CMake 3.11.0. Thanks! Building pybind11 from source:
Disabled building pybind11 and the python module:
|
My PC is Windows 10 64bit with Python 3.5.2 32bit and CMake 3.11.4. |
@yoshiyama can you try the solution in #66 ?
(Sorry I don't have a Windows machine at hand so I can't test it right now.) You can start with adding It is a known issue CMake gets confused when looking for Python executable and library and directory. On pybind11 repo they also note this pybind/pybind11#99 |
@dotchang Sorry for the late reply. I am trying to fix the build system. Yeah, it has not been managed well and has some issues. If you want to turn off Python binding, can you try to use the following switch:
Will the error still exist? I can't duplicate the error so need your help, :) |
Thank you qianyizh. |
@yoshiyama Hi, I met the same the problem on my win 10. But I am kind of new to CMake, can you share how you exactly specify the location of directory of python? Thanks |
@LLDavid , please see @qianyizh 's comment above . If you remove the build directory and start from scratch, for me it's sufficient to specify the E.g. if you're using a conda environment: ylao@DESKTOP-CFLLFA0 C:\Users\ylao
$ activate py36
(py36) ylao@DESKTOP-CFLLFA0 C:\Users\ylao
$ where python
C:\Users\ylao\Miniconda3\envs\py36\python.exe
(py36) ylao@DESKTOP-CFLLFA0 C:\Users\ylao
$ cmake -DPYTHON_EXECUTABLE=C:\Users\ylao\Miniconda3\envs\py36\python.exe -DYOUR_OTHER_CMAKE_FLAGS .. |
@yxlao Thanks! Now I can get the open3d.sln, and I rebuild the 'ALL_BUILD' as the tutorial says (on VS 2015 2017). Then I try to build the 'INSTALL' and I got following one error:
Any idea what I am missing? |
It's a little bit hard to tell from the limited information. From the error code, seems like it's similar to this one. One thing you could try is to specify a path that a non-admin user can access, as described in. Otherwise, by default, it will be installed to
Or, start the CMD console with Administrator rights. |
@yxlao You are right. I first tried to add DCMAKE_INSTALL_PREFIX=\some\non\admin\path , and got same error. Then I open both my cmake gui and VS with Admin rights, it succeed. |
Currently, we're undergoing some dramatic changes for the python build system: see #604 and #618. If you're on the lastest master (as of this commit point), Following #604, all you'll need to do is to build
If you run into permission issue again, instead, try
And then find your wheel
Lastly, we'd recommend using a python virtual environment (can be pip virtualenv or conda virtualenv). This will solve a lot of the permission issues. If everything is done properly, 1) we wouldn't need to use the |
@yxlao Now I can get it work. Really appreciate your help! |
In cmake-gui for latest src, installation of pybind11 have an error of PYBIND directory not found.
My environment is windows 10 64bit.
But for src downloaded on 5th June, it succeed completely.
What are the differences between latest and old src ?
The text was updated successfully, but these errors were encountered: