-
Notifications
You must be signed in to change notification settings - Fork 0
Kyle/py6 #7
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
base: chef/melodic-devel
Are you sure you want to change the base?
Kyle/py6 #7
Changes from all commits
62233e4
ea8daad
93ec829
ae991c9
2f3c745
29a905d
dd08430
237031b
cc61a68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ find_package(catkin REQUIRED COMPONENTS | |
| rosconsole | ||
| ) | ||
|
|
||
| find_package(PythonInterp REQUIRED) | ||
| find_package(PythonInterp ${CHEF_FORCE_PYTHON_VERSION} REQUIRED) | ||
| find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED) | ||
|
|
||
| find_package(Boost REQUIRED) | ||
|
|
@@ -46,8 +46,11 @@ find_package(Boost REQUIRED COMPONENTS | |
| system | ||
| thread | ||
| ) | ||
|
|
||
|
|
||
| find_package(Eigen3 REQUIRED) | ||
| find_package(eigenpy REQUIRED) | ||
| # TODO: probably need different eigenpy | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is done |
||
|
|
||
| set(THIS_PACKAGE_INCLUDE_DIRS | ||
| py_bindings_tools/include | ||
|
|
@@ -58,13 +61,19 @@ set(THIS_PACKAGE_INCLUDE_DIRS | |
| ) | ||
|
|
||
| catkin_python_setup() | ||
| # Set boost_python_component if needed | ||
|
|
||
| if("${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}" EQUAL "37") | ||
| set(Boost_PYTHON_LIBRARY "/usr/local/lib/libboost_python3.so") | ||
| set(Boost_LIBRARIES "${Boost_PYTHON_LIBRARY}") | ||
| endif() | ||
| link_directories("/usr/local/lib") | ||
| catkin_package( | ||
| LIBRARIES | ||
| moveit_common_planning_interface_objects | ||
| moveit_planning_scene_interface | ||
| moveit_move_group_interface | ||
| moveit_py_bindings_tools | ||
| # moveit_py_bindings_tools_py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't figure out the proper syntax to export this, but we don't need to anyhow |
||
| moveit_cpp | ||
| INCLUDE_DIRS | ||
| ${THIS_PACKAGE_INCLUDE_DIRS} | ||
|
|
@@ -82,6 +91,8 @@ catkin_package( | |
| EIGEN3 | ||
| ) | ||
|
|
||
| list(REMOVE_ITEM catkin_LIBRARIES /usr/lib/x86_64-linux-gnu/libpython2.7.so) | ||
|
|
||
| include_directories(${THIS_PACKAGE_INCLUDE_DIRS} | ||
| ${Boost_INCLUDE_DIRS} | ||
| ${catkin_INCLUDE_DIRS}) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| set(MOVEIT_LIB_NAME moveit_py_bindings_tools) | ||
|
|
||
| add_library(${MOVEIT_LIB_NAME} src/roscpp_initializer.cpp) | ||
|
|
||
| set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}") | ||
| target_link_libraries(${MOVEIT_LIB_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES}) | ||
| set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES OUTPUT_NAME moveit_py_bindings_tools_py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}.so ) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we remove the boost::python dev from this library, we likely don't need to rename it |
||
|
|
||
| install(TARGETS ${MOVEIT_LIB_NAME} | ||
| ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FORCE_PYTHON_VERSION isn't strictly necessary, but helps make it obvious when you need to wipe the build dir