diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ae4e69..efd71fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,8 @@ cmake_minimum_required(VERSION 3.5) SET(CMAKE_CXX_STANDARD 17) -include_directories(/usr/local/include/ddscxx /usr/local/include/iceoryx/v2.0.2) +include_directories(include thirdparty/include thirdparty/include/ddscxx thirdparty/include/iceoryx/v2.0.2) +link_directories(lib/${CMAKE_HOST_SYSTEM_PROCESSOR} thirdparty/lib/${CMAKE_HOST_SYSTEM_PROCESSOR}) link_libraries(unitree_sdk2 ddsc ddscxx rt pthread) add_executable(test_publisher example/helloworld/publisher.cpp example/helloworld/HelloWorldData.cpp) diff --git a/README.md b/README.md index 0ffd31c..d5fa8f7 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,6 @@ Unitree robot sdk version 2. * CPU (aarch64 and x86_64) * Compiler (gcc version 9.4.0) -### Installation -```bash -sudo ./install.sh - -``` ### Build examples ```bash diff --git a/install.sh b/install.sh deleted file mode 100755 index 16bcca9..0000000 --- a/install.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -WorkDir=$(cd $(dirname $0); pwd) -echo "WrokDir=$WorkDir" - -Arch=$(uname -m) -echo "CPU Arch=$Arch" - -ThirdParty=$WorkDir/thirdparty - -set -e - -cp -r $WorkDir/include/* /usr/local/include -cp -r $WorkDir/lib/$Arch/* /usr/local/lib - -cp -r $ThirdParty/include/* /usr/local/include -cp -r $ThirdParty/lib/$Arch/* /usr/local/lib - -ldconfig