Skip to content

Commit

Permalink
Added ZeroMQ and updated docs (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaldot authored Apr 29, 2024
1 parent eedbd9c commit 94b0526
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ 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)

Expand Down
4 changes: 1 addition & 3 deletions COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
brew install cmake qt@5 protobuf mosquitto zeromq zstd zmqpp
```

If a newer version of qt is installed, you may need to temporarily link to qt5
Expand All @@ -103,7 +103,6 @@ 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:
Expand All @@ -112,7 +111,6 @@ 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**:
Expand Down

0 comments on commit 94b0526

Please sign in to comment.