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
pyside2 5.12.1 win: wrong SHIBOKEN_SHARED_LIBRARY_DIR #43
Comments
btw.: the configuration file doesn't look very good:
|
looks like an upstream issue, please open an issue on their jira |
@looooo I think there is no bug ihmo SHIBOKEN_SHARED_LIBRARY_DIR is intended to contain the path to the runtime library (.so/.dylib/.dll); see pyside2/tests/CMakeLists.txt:12: |
Ah I see, so the real problem is linking to the runtime-library. This is the output if I try to do so:
|
Try to link to the one of the provided targets: Shiboken2::shiboken2 or Shiboken2::libshiboken |
I think we are already doing so:
It works on linux and osx but results in the error reported above for win: #43 (comment) |
you want IMPORTED_IMPLIB instead of IMPORTED_LOCATION |
thx, I will check in the next iteration. |
hmm, didn't work out of the box. I now see undefined references to shiboken funtions (windows, linux). Osx seems to work with your suggestion. Does it make any sense to use IMPORTED_IMPLIB_RELEASE insead of IMPORTED_IMPLIB? |
I dont think you have to use IMPORTED_IMPLIB_RELEASE nor IMPORTED_IMPLIB at all. |
thanks. Using the imported target indeed works. |
in /Library/lib/cmake/Shiboken2-5.13.1/Shiboken2Config.cp37-win_amd64.cmake
should be:
Edit: we are now using library dir via imported target properties.: https://github.com/FreeCAD/FreeCAD/blob/master/cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake#L49
The text was updated successfully, but these errors were encountered: