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

arm cross compilation issue when need to compile to different python #1718

Closed
lironmo opened this issue Mar 4, 2019 · 2 comments · Fixed by #2370
Closed

arm cross compilation issue when need to compile to different python #1718

lironmo opened this issue Mar 4, 2019 · 2 comments · Fixed by #2370

Comments

@lironmo
Copy link

lironmo commented Mar 4, 2019

hellos,
i need to compile my app to different architecture and SBCs (like raspberry pi pi / banana pi /rock64/ etc)
and i see that even if i defined the python arm libs the code: find_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} REQUIRED) ignore my flags and try to detect the interpreter by it's own and failed.

knarfS added a commit to knarfS/pybind11 that referenced this issue Feb 8, 2020
This is needed when using linuxdeploy / appimagecraft to create an AppImage
and when cross compiling (f.e. with MXE) to find the python libraries.
You may need to set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to BOTH when cross
compiling.

This may fix issues pybind#1718, pybind#1159, pybind#1330 and pybind#99.
knarfS added a commit to knarfS/pybind11 that referenced this issue Apr 11, 2020
This is needed when using linuxdeploy / appimagecraft to create an AppImage
and when cross compiling (f.e. with MXE) to find the python libraries.
You may need to set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to BOTH when cross
compiling.

This may fix issues pybind#1718, pybind#1159, pybind#1330 and pybind#99.
knarfS added a commit to knarfS/pybind11 that referenced this issue Apr 20, 2020
This is needed when using linuxdeploy / appimagecraft to create an AppImage
and when cross compiling (f.e. with MXE) to find the python libraries.
You may need to set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to BOTH when cross
compiling.

This may fix issues pybind#1718, pybind#1159, pybind#1330 and pybind#99.
@YannickJadoul
Copy link
Collaborator

This will probably get fixed by PR #2370 (in progress)? If not, please reopen.

@henryiii
Copy link
Collaborator

Let's let #2370 close it. I'm happy to add to the list the get closed. ;)

When #2370 goes in, just use either the new Python support by finding Python yourself (using the new FindPython package in CMake) or use PYTHON_NOPYTHON=ON to disable the integration with Python entirely, which allows you to handle Python yourself.

@henryiii henryiii reopened this Aug 15, 2020
knarfS added a commit to knarfS/pybind11 that referenced this issue Aug 15, 2020
This is needed when using linuxdeploy / appimagecraft to create an AppImage
and when cross compiling (f.e. with MXE) to find the python libraries.
You may need to set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to BOTH when cross
compiling.

This may fix issues pybind#1718, pybind#1159, pybind#1330 and pybind#99.
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

Successfully merging a pull request may close this issue.

3 participants