From e2dd7f2dafcd9b740982e34cda1211fdfec361a6 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Sat, 15 Dec 2018 15:21:43 +0100 Subject: [PATCH] Problem solved that the libraries could not be found with sudo. --- CMakeLists.txt | 6 ++++ launch/pioneerMasterLaunchFile.launch | 40 +++++++++++++-------------- launch/wlanSignal.launch | 8 ++++++ 3 files changed, 33 insertions(+), 21 deletions(-) create mode 100644 launch/wlanSignal.launch diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b20653..8c63334 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,3 +34,9 @@ link_directories( add_executable(wlanSignal src/wlanSignal.cpp) target_link_libraries(wlanSignal ${catkin_LIBRARIES} wifi-scan) add_dependencies(wlanSignal wlan_pioneer_generate_messages_cpp) + + +SET(CMAKE_INSTALL_RPATH ${catkin_LIBRARIES}) +SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--disable-new-dtags") diff --git a/launch/pioneerMasterLaunchFile.launch b/launch/pioneerMasterLaunchFile.launch index edd45cb..7a7512a 100644 --- a/launch/pioneerMasterLaunchFile.launch +++ b/launch/pioneerMasterLaunchFile.launch @@ -8,32 +8,30 @@ - - - + + + - - - - - + + + - - - - + + + + - + - + @@ -41,34 +39,34 @@ - + - + - + - + - + - + diff --git a/launch/wlanSignal.launch b/launch/wlanSignal.launch new file mode 100644 index 0000000..552e704 --- /dev/null +++ b/launch/wlanSignal.launch @@ -0,0 +1,8 @@ + + + + + + + +