Skip to content
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

docu / build - Qt5Svg not found #54

Open
s-light opened this issue Dec 28, 2023 · 0 comments
Open

docu / build - Qt5Svg not found #54

s-light opened this issue Dec 28, 2023 · 0 comments

Comments

@s-light
Copy link

s-light commented Dec 28, 2023

i have no knowledge of cmake - so maybe i do something very silly here..

following the readme -
cmake on Kubuntu 23.10 failed for me:

serialplot/build (master)$ cmake -D BUILD_QWT=false ..


.....


-- Could NOT find Qt5Svg (missing: Qt5Svg_DIR)
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreMacros.cmake:454 (message):
  Cannot use "Svg" module which has not yet been found.
Call Stack (most recent call first):
  CMakeLists.txt:150 (qt5_use_modules)

i also had to sudo apt install libqt5svg5-dev

with this cmake is fine.
but make fails with

[ 29%] Building CXX object CMakeFiles/serialplot.dir/src/plot.cpp.o
/home/stefan/mydata/tools/serialplot/src/plot.cpp: In member function ‘void Plot::setLegendPosition(Qt::AlignmentFlag)’:
/home/stefan/mydata/tools/serialplot/src/plot.cpp:278:12: error: ‘class QwtPlotLegendItem’ has no member named ‘setAlignmentInCanvas’
  278 |     legend.setAlignmentInCanvas(alignment);
      |            ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/serialplot.dir/build.make:214: CMakeFiles/serialplot.dir/src/plot.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:89: CMakeFiles/serialplot.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

as the documentation
clearly shows that setAlignmentInCanvas is available i think somehow i have now included the wrong version...

so i tried again with out the -D BUILD_QWT=false and this time it build successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant