diff --git a/CMakeLists.txt b/CMakeLists.txt index 0aa6fa0a5..9a0fa37d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,15 +39,6 @@ if(VCPKG_TOOLCHAIN) message(STATUS "BUILDING_WITH_VCPKG") endif() -# Include PkgConfig module -find_package(PkgConfig REQUIRED) - -# Use pkg_check_modules to find ZeroMQ -pkg_check_modules(ZEROMQ REQUIRED IMPORTED_TARGET libzmq) - -# Include ZeroMQ directories -include_directories(${ZEROMQ_INCLUDE_DIRS}) - find_package(ament_cmake QUIET) find_package(catkin QUIET) diff --git a/COMPILE.md b/COMPILE.md index 081238438..fbae2d4e0 100644 --- a/COMPILE.md +++ b/COMPILE.md @@ -87,7 +87,7 @@ docker buildx build -o . . On Mac, the dependencies can be installed using [brew](https://brew.sh/) with the following command: ```shell -brew install cmake qt@5 protobuf mosquitto zeromq zstd zmqpp +brew install cmake qt@5 protobuf mosquitto zeromq zstd ``` If a newer version of qt is installed, you may need to temporarily link to qt5 @@ -103,6 +103,7 @@ Add CMake into your env-vars to be detected by cmake echo 'QT_HOME=$(brew --prefix qt@5) \ export CPPFLAGS="-I $QT_HOME/include" \ export PKG_CONFIG_PATH="$QT_HOME/lib/pkgconfig" \ +export LDFLAGS="$QT_HOME/lib"' >> $HOME/.zshrc ``` If you don't want to permanently add them into your main file, you can try by just exporting locally in the current terminal with: @@ -111,6 +112,7 @@ If you don't want to permanently add them into your main file, you can try by ju QT_HOME=$(brew --prefix qt@5) export CPPFLAGS="-I $QT_HOME/include" export PKG_CONFIG_PATH="$QT_HOME/lib/pkgconfig" +export LDFLAGS="$QT_HOME/lib" ``` Clone the repository into **~/plotjuggler_ws**: