forked from facontidavide/PlotJuggler
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS build fix #1
Merged
Merged
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
06f1da5
Rev1
farhangnaderi 77c10ff
Rev2
farhangnaderi d0d157f
Added force relinking qt@5
farhangnaderi f7dc121
Update COMPILE.md
farhangnaderi 84108a1
Getting CI corrections- disabling WF for other buld on push
farhangnaderi d2cf078
revert 84108a1
farhangnaderi 1479a56
fix libzmq mosquitto parquet missing
farhangnaderi f9bb5ce
homebrew installation fix
farhangnaderi 4ce1d72
zeromq brew installation fix
farhangnaderi 216e5c1
Action v4 update, remove homebrew install
farhangnaderi 1156cc5
add matrix for both archs
farhangnaderi b0e77b8
added cmake env and qt link force
farhangnaderi bb3fc2b
Added QT5 link or intsall!
farhangnaderi 1d0866a
Conflicting ID resolution
farhangnaderi daaa685
remove aqt, py7zrversion
farhangnaderi 2666b78
separating matrices
farhangnaderi 67e16f1
add tmate
farhangnaderi 7f6d857
removed Qt cache, switch to tmate if only fails
farhangnaderi cfebef8
added cmake flags, changed shell to bash
farhangnaderi f4dcfd9
introducting homebrew clear cache
farhangnaderi 39e54ba
Compile doc added note, macos wokrflow file cleanups
farhangnaderi 532e1bb
clang format correction in error_collector header file
farhangnaderi d7f42ea
error_collectors clang corrections
farhangnaderi 757b0ee
clang newline format
farhangnaderi 0e4864b
matrix format
farhangnaderi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,54 @@ | ||
# Check for vcpkg, conan, or manual build environments | ||
if(BUILDING_WITH_VCPKG) | ||
message(STATUS "Finding ZeroMQ with vcpkg") | ||
elseif(BUILDING_WITH_CONAN) | ||
message(STATUS "Finding ZeroMQ with conan") | ||
else() | ||
message(STATUS "Finding ZeroMQ without package managers") | ||
set(ZeroMQ_LIBS ${ZeroMQ_LIBRARIES}) | ||
|
||
# Find ZeroMQ using PkgConfig | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(ZMQ REQUIRED libzmq) | ||
|
||
# Set the ZeroMQ libraries and include directories for manual configuration | ||
set(ZeroMQ_LIBRARIES ${ZMQ_LIBRARIES}) | ||
set(ZeroMQ_INCLUDE_DIRS ${ZMQ_INCLUDE_DIRS}) | ||
set(ZeroMQ_LIBRARY_DIRS /opt/homebrew/lib) # Add this line | ||
|
||
# Add the library path explicitly | ||
link_directories(${ZeroMQ_LIBRARY_DIRS}) # Add this line | ||
endif() | ||
|
||
# Find ZeroMQ library | ||
find_package(ZeroMQ QUIET) | ||
|
||
# Check if ZeroMQ was found | ||
if(ZeroMQ_FOUND) | ||
message(STATUS "[ZeroMQ] found") | ||
|
||
# Add QT definitions if needed | ||
add_definitions(${QT_DEFINITIONS}) | ||
add_definitions(-DQT_PLUGIN) | ||
|
||
QT5_WRAP_UI ( UI_SRC datastream_zmq.ui ) | ||
# Wrap the UI file for Qt | ||
QT5_WRAP_UI(UI_SRC datastream_zmq.ui) | ||
|
||
add_library(DataStreamZMQ SHARED datastream_zmq.cpp ${UI_SRC} ) | ||
# Add the DataStreamZMQ library | ||
add_library(DataStreamZMQ SHARED datastream_zmq.cpp ${UI_SRC}) | ||
|
||
# Link Qt5Widgets and the plotjuggler_base target to DataStreamZMQ | ||
target_link_libraries(DataStreamZMQ ${Qt5Widgets_LIBRARIES} plotjuggler_base) | ||
|
||
# Handle different library linking for vcpkg, conan, or manual builds | ||
if(BUILDING_WITH_VCPKG OR BUILDING_WITH_CONAN) | ||
target_link_libraries(DataStreamZMQ libzmq-static) | ||
else() | ||
target_link_libraries(DataStreamZMQ ${ZeroMQ_LIBRARIES}) | ||
target_include_directories(DataStreamZMQ PRIVATE ${ZeroMQ_INCLUDE_DIRS}) | ||
target_link_libraries(DataStreamZMQ zmq) # Changed this to just 'zmq' | ||
endif() | ||
|
||
install(TARGETS DataStreamZMQ DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY} ) | ||
# Install the plugin | ||
install(TARGETS DataStreamZMQ DESTINATION ${PJ_PLUGIN_INSTALL_DIRECTORY}) | ||
else() | ||
message("[ZeroMQ] not found. Skipping plugin DataStreamZMQ.") | ||
message(STATUS "[ZeroMQ] not found. Skipping plugin DataStreamZMQ.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You no longer need this step