Closed isircu closed 1 year ago
I don't know how to reproduce your problem. Are you compiling with catkin or cmake?
I've tried the exact steps but it still doesn't work :(. I am compiling with cmake and tried instaling everything from source:
cd ~
git clone https://github.com/facontidavide/PlotJuggler.git
cd PlotJuggler
mkdir build; cd build
cmake ..
make
sudo make install
cd ~
git clone --recurse-submodules https://github.com/PlotJuggler/plotjuggler-mqtt.git
cd plotjuggler-mqtt
mkdir build; cd build
cmake ..
make
sudo make install
plotjuggler installs and runs fine but the moment I run cmake ..
on the mqtt plugin it produces the following:
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Submodule update
-- CMake version: 3.16.3
-- CMake system name: Linux
-- Timestamp is 2021-10-06T11:33:32Z
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find PlotJuggler (missing: PlotJuggler_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
cmake/FindPlotJuggler.cmake:56 (find_package_handle_standard_args)
CMakeLists.txt:105 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/isircu/plotjuggler-mqtt/build/CMakeFiles/CMakeOutput.log".
Can you share the output of
sudo make install
When you install PlotJuggler? I want to check the location fo the installed files
Sure :)
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /usr/local/share/applications/PlotJuggler.desktop
-- Up-to-date: /usr/local/share/icons/plotjuggler.svg
-- Up-to-date: /usr/local/lib/libplotjuggler_base.a
-- Up-to-date: /usr/local/include
-- Up-to-date: /usr/local/include/PlotJuggler
-- Up-to-date: /usr/local/include/PlotJuggler/svg_util.h
-- Up-to-date: /usr/local/include/PlotJuggler/statepublisher_base.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/core.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/ostream.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/format.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/printf.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/format-inl.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/locale.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/os.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/chrono.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/ranges.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/xchar.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/compile.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/args.h
-- Up-to-date: /usr/local/include/PlotJuggler/fmt/color.h
-- Up-to-date: /usr/local/include/PlotJuggler/dataloader_base.h
-- Up-to-date: /usr/local/include/PlotJuggler/messageparser_base.h
-- Up-to-date: /usr/local/include/PlotJuggler/toolbox_base.h
-- Up-to-date: /usr/local/include/PlotJuggler/alphanum.hpp
-- Up-to-date: /usr/local/include/PlotJuggler/plotdata.h
-- Up-to-date: /usr/local/include/PlotJuggler/timeseries.h
-- Up-to-date: /usr/local/include/PlotJuggler/stringseries.h
-- Up-to-date: /usr/local/include/PlotJuggler/plotdatabase.h
-- Up-to-date: /usr/local/include/PlotJuggler/plotwidget_base.h
-- Up-to-date: /usr/local/include/PlotJuggler/datastreamer_base.h
-- Up-to-date: /usr/local/include/PlotJuggler/ring_span.hpp
-- Up-to-date: /usr/local/include/PlotJuggler/string_ref_sso.h
-- Up-to-date: /usr/local/include/PlotJuggler/transform_function.h
-- Up-to-date: /usr/local/include/PlotJuggler/pj_plugin.h
-- Up-to-date: /usr/local/lib/libplotjuggler_qwt.a
-- Up-to-date: /usr/local/bin/plotjuggler
-- Up-to-date: /usr/local/bin/libDataLoadCSV.so
-- Up-to-date: /usr/local/bin/libDataLoadULog.so
-- Up-to-date: /usr/local/bin/libDataStreamSample.so
-- Up-to-date: /usr/local/bin/libDataStreamWebSocket.so
-- Up-to-date: /usr/local/bin/libDataStreamUDP.so
-- Up-to-date: /usr/local/bin/libPublisherCSV.so
-- Up-to-date: /usr/local/bin/libToolboxQuaternion.so
-- Up-to-date: /usr/local/bin/libToolboxFFT.so
-- Up-to-date: /usr/local/bin/libDataStreamZMQ.so
Hi @facontidavide,
Thanks for your amazing work on Plotjuggler - it definitely speeds up development time for many engineers.
In continuation with the above issue report, I wanted to check if FindPlotJuggler.cmake script has got the correct name for PlotJuggler_LIBRARY
symbol i.e. in this line, shouldn't it be plotjuggler_base
instead of plotjuggler_plugin_base
, since that is the library which gets installed when building Plotjuggler from source.
Just tested with the change suggested by @ashishraste and it worked :)
Tried to compile after installing PlotJugler from source on Ubuntu 20. When performing cmake .. it always fails with the same error:
"Could NOT find PlotJuggler (missing: PlotJuggler_LIBRARY)"
Also tried installing ros-noetiic-plotjugler-ros but the plugin still can't be built. Anyone have any advice?