How to build .so on a C++ cmake project which uses static lib? #4207
lucasjinreal
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a cmake project which forced output static lib. But I want add a pybind to it.
Now , I got this error on generated .so file:
wnn.cpython-39-darwin.so' (not a mach-o file)
but I have this cmake setting:
I tried use this pybind11 cmake in a standalone project, it works, but in my c++ project using static lib , it was always fail.
How can I resolve it?
Beta Was this translation helpful? Give feedback.
All reactions