Giter VIP home page Giter VIP logo

Comments (6)

ubaldot avatar ubaldot commented on July 3, 2024

I had the same problem. Note that the error is the following:

ld: file cannot be mmap()ed, errno=22 path=/opt/homebrew/opt/qt@5/lib in '/opt/homebrew/opt/qt@5/lib'

and that happens around the 75% of the build.

However, I managed at some point to reach 84% but then it failed again due to an include not found.
I reached there simply by not setting the LDFLAGS variable.
The error at 84% is about a missing include file:

/Users/ubaldot/plotjuggler_ws/src/PlotJuggler/plotjuggler_plugins/DataStreamZMQ/zmq.hpp:36:10: fatal error: 'zmq.h' file not found

Unfortunately I am not a cmake guy, so I don't know how to specify the path of such an include.
However, I found the file and it is located here: /opt/homebrew/Cellar/zeromq/4.3.5_1/include/zmq.h I think this path shall be specified somehow in the cmake config file somehow and/or /opt/homebrew/Cellar/zeromq/4.3.5_1/lib/pkgconfig. No idea how to do it.

from plotjuggler.

ubaldot avatar ubaldot commented on July 3, 2024

SOLVED

  1. Add the following to your CMakeList.txt file:
# 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})

  1. Don't export the LDFLAG environment variable i.e. use the following:
QT_HOME=$(brew --prefix qt@5)
export CPPFLAGS="-I $QT_HOME/include"
export PKG_CONFIG_PATH="$QT_HOME/lib/pkgconfig"

instead of the following (as written in the guide):

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"
image

from plotjuggler.

facontidavide avatar facontidavide commented on July 3, 2024

can you please create a PR, with the required corrections?

from plotjuggler.

ubaldot avatar ubaldot commented on July 3, 2024

Sure! That I am able to do :D

from plotjuggler.

lgkimjy avatar lgkimjy commented on July 3, 2024

@ubaldot Could you tell me which CMakeLists.txt should I modify?

from plotjuggler.

ubaldot avatar ubaldot commented on July 3, 2024

@lgkimjy it is written in this PR: #950
:

from plotjuggler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.