OSUrobotics / ros_ovr_sdk

A ROS package which builds the Oculus SDK as a shared library and link the appropriate libraries in other packages that build with it.
MIT License
9 stars 7 forks source link

Error in the WIKI setup page #7

Open adhamalkhaja opened 8 years ago

adhamalkhaja commented 8 years ago

I have tried to set another catkin package as stated in the WIKI setup page but i get that oculus_rviz_plugin is not built in the current buildspace..... any help with that ?

the issue is in setting up the CMakelist.txt

cmake_minimum_required(VERSION 2.8.3) project(bebopOculus)

find_package(catkin REQUIRED COMPONENTS roscpp geometry_msgs std_msgs ros_ovr_sdk)

if(NOT ros_ovr_sdk_FOUND) message("ros_ovr_sdk Library cannot be found.") endif(NOT ros_ovr_sdk_FOUND)

catkin_package( INCLUDE_DIRS LIBRARIES bar CATKIN_DEPENDS rviz DEPENDS ros_ovr_sdk # Dependency for Oculus SDK ) include_directories(include ${ROS_PACKAGE_PATH} ${catkin_INCLUDE_DIRS} ${ros_ovr_sdk_INCLUDE_DIRS} ${bebop_autonomy_INCLUDE_DIRS} )

include_directories(${home/adham/bebop_ws/src/bebop_autonomy/bebop_driver})

link_directories( /home/adham/catkin_ws/src/ros_ovr_sdk /home/adham/catkin_ws/src/oculus_rviz_plugins ) add_executable(bebopocu bebopocu.cpp) target_link_libraries(bebopocu ${catkin_LIBRARIES})

target_link_libraries( ${catkin_LIBRARIES} ${ROS_PACKAGE_PATH}

)

rebhuhnd commented 8 years ago

You don't appear to be listing oculus_rviz_plugins as a dependency, so it might not be building it.

adhamalkhaja commented 8 years ago

rebhuhnd , i have already done that , but what i did was remove it completely and it compiled fine