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

qt_gui_cpp_sip: Add python include dirs #46

Closed

Conversation

NikolausDemmel
Copy link

I need a change to this effect to compile on OSX 10.9

I need a change to this effect to compile on OSX 10.9
@dirk-thomas
Copy link
Contributor

I don't think that this is the right location to address your problem. Instead python_qt_binding should be able to take care of this in a more generic way (without requiring every package which uses sip to deal with it).

Please use the latest checkouts of all repos since some related issues have recently been fixed already - may be the problem is already fixed by these changes:

If the issue still exists can you please try to address the problem in the following file instead? https://github.com/ros-visualization/python_qt_binding/blob/groovy-devel/cmake/sip_helper.cmake

@NikolausDemmel
Copy link
Author

I don't think this is related to any of the cmake 3.0.0

set(PythonLibs_FIND_VERSION "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
find_package(PythonLibs REQUIRED)

vs

find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED)

issues (which don't seem to affect me anyway). I wounder why this ever worked in the first place on systems where the Python.h doesn't happen to be in a folder that is added to the include paths by some other means.

It seems that adding find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED) to sip_helper.cmake and then including the header files in the sip command directly might be the right thing.

@dirk-thomas
Copy link
Contributor

Can you please provide a pull request for python_qt_binding which works for you?

NikolausDemmel added a commit to NikolausDemmel/python_qt_binding that referenced this pull request Jul 1, 2014
This fixes ros-visualization/qt_gui_core#46 and ros-visualization/rviz#788; needed at least on OS X, likely some other platforms as well.
@dirk-thomas
Copy link
Contributor

Closing this in favor of the new PR: ros-visualization/python_qt_binding#12

@dirk-thomas dirk-thomas closed this Jul 1, 2014
@NikolausDemmel NikolausDemmel deleted the patch-1 branch July 2, 2014 17:33
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 this pull request may close these issues.

None yet

2 participants