Open RENyunfan opened 8 months ago
Same here. I could only get all the way to this point with the comments from https://github.com/facontidavide/PlotJuggler/issues/947, following the discussion here https://github.com/facontidavide/PlotJuggler/pull/950/files
When are those changes going to be merged?
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,18 @@ 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)
Thanks!
I could build it using an older version of protobuf.
brew install protobuf@21
brew link protobuf@21 --overwrite
Still having issues compiling. I modified the files based on: https://github.com/facontidavide/PlotJuggler/pull/950/files updates.
Tried to compile and got same error. What am I missing?
@TalGlantz, I have the same issue. Could you let me know if you solved this compile error?
I had the same issue, I used recipe from here https://github.com/facontidavide/PlotJuggler/issues/961#issuecomment-2068415634 but I had to add path to protobuf and mosquitto. It's not a fully correct solution but it solved my issue
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 16477dd3..a240e057 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,6 +39,16 @@ 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)
@@ -103,6 +113,8 @@ if(APPLE AND EXISTS /usr/local/opt/qt5)
set(CMAKE_MACOSX_RPATH 1)
elseif(APPLE AND EXISTS /opt/homebrew/opt/qt@5)
list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew/opt/qt@5")
+ list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew/opt/protobuf@21")
+ list(APPEND CMAKE_PREFIX_PATH "/opt/homebrew/opt/mosquitto")
set(CMAKE_MACOSX_RPATH 1)
endif()
I'm on macOS 15.1 (Sequoia) and FWIW, I couldn't compile completely with either the latest protobuf or protobuf@21. If I uninstall all protobuf versions and make the changes here (or removing ZMQ from CMakeLists.txt
) I can compile. That's fine for me because I don't need protobuf for now, but presumably this won't work for everyone.
Per the pending pull request that fixes building on Mac, some code changes are actually needed to remove the override
errors reported: https://github.com/facontidavide/PlotJuggler/pull/1019/commits/7657fb56944b7dc14d037008192ac7f920feb90d#diff-f7cae0d361d127176e8a7c1887d71ef4043b24be0fb36ea7545a2545ae04c71b. The CI run for that same commit built successfully, but without protobuf, so I take it that protobuf isn't essential.
Problem description
Following #947, I still cannot compile plotjuggler on Mac with macOS 14.4.1 and Apple M3 chip. Need help.