Results 1 to 5 of 5

Thread: Problem compiling qwt 6.3.0

  1. #1
    Join Date
    Jan 2020
    Posts
    53
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Problem compiling qwt 6.3.0

    I am trying to compile qwt-6.3.0 on Kubuntu 24.04 thus
    /home/me/Logiciels/Dev/Qt/qt-everywhere-src-6.7.0/qtbase/qmake qwt.pro
    make

    I initially ended up with the following error message:

    qwt_symbol.cpp:20:10: fatal error: qsvgrenderer.h: Aucun fichier ou dossier de ce type
    20 | #include <qsvgrenderer.h>
    | ^~~~~~~~~~~~~~~~
    compilation terminated.

    When I commented out
    QWT_CONFIG += QwtSvg
    in qwrconfig.pri I got past this error, but got a linker error:

    make[2] : on entre dans le répertoire « /home/me/Kode/Qwt/qwt-6.3-0/qwt-6.3.0/examples/animation »
    compiling Plot.cpp
    compiling main.cpp
    linking ../bin/animation
    /usr/bin/ld : obj/Plot.o : dans la fonction « Plot::updateCurves() » :
    Plot.cpp.text+0xf9) : référence indéfinie vers « QwtPlotCurve::setSamples(QList<QPointF> const&) »
    /usr/bin/ld : obj/Plot.o : dans la fonction « Curve::updateSamples(double) » :
    Plot.cpp.text._ZN5Curve13updateSamplesEd[_ZN5Curve13updateSamplesEd]+0x4c) : référence indéfinie vers « QwtPlotCurve::setSamples(QList<QPointF> const&) »
    collect2: error: ld returned 1 exit status
    make[2]: *** [Makefile:320 : ../bin/animation] Erreur 1
    make[2] : on quitte le répertoire « /home/me/Kode/Qwt/qwt-6.3-0/qwt-6.3.0/examples/animation »
    make[1]: *** [Makefile:72 : sub-animation-make_first] Erreur 2
    make[1] : on quitte le répertoire « /home/me/Kode/Qwt/qwt-6.3-0/qwt-6.3.0/examples »
    make: *** [Makefile:225 : sub-examples-make_first-ordered] Erreur 2

    gcc version: 13.2.0
    cmake version: 3.29.3

    Any suggestions?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,318
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem compiling qwt 6.3.0

    Try to remove the line "CONFIG += silent" in qwtbuild.pri. Then you will see a lot more information about what is going on.
    My guess is, that you have different Qwt/Qt combinations in the various build steps.

    HTH,
    Uwe

  3. #3
    Join Date
    Jan 2020
    Posts
    53
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Problem compiling qwt 6.3.0

    Commenting out "CONFIG += silent" was a good idea.

    It seems I was using the wrong version of qmake.
    /usr/lib/qt5/bin/qmake qwt.pro
    works on Kubunti 24.04.

    I still have to comment out QWT_CONFIG += QwtSvg in qwtconfig.pri, but that is OK as I do not need SVG for the time being.
    Last edited by buster; 28th May 2024 at 14:44.

  4. #4
    Join Date
    Jan 2020
    Posts
    53
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Problem compiling qwt 6.3.0

    When attempting to compile a Qt app to test Qwt I end up with lots of linking errors, like this:

    [ 97%] Building CXX object CMakeFiles/qwttest.dir/src/ui/stackedconfigpages.cpp.o
    [100%] Linking CXX executable qwttest
    /usr/bin/ld: CMakeFiles/qwttest.dir/qwttestl_autogen/mocs_compilation.cpp.o: in function `BodePlot::qt_metacall(QMetaObject::Call, int, void**)':
    mocs_compilation.cpp.text+0x40f5): undefined reference to `QwtPlot::qt_metacall(QMetaObject::Call, int, void**)'
    /usr/bin/ld: CMakeFiles/qwttest.dir/qwttest_autogen/mocs_compilation.cpp.o: in function `BodePlot::qt_metacast(char const*)':
    mocs_compilation.cpp.text+0x40c5): undefined reference to `QwtPlot::qt_metacast(char const*)'
    /usr/bin/ld: CMakeFiles/qwttest.dir/qwttest_autogen/mocs_compilation.cpp.o.data.rel.ro+0xa80): undefined reference to `QwtPlot::staticMetaObject'
    /usr/bin/ld: CMakeFiles/qwttest.dir/qwttest_autogen/mocs_compilation.cpp.o.data.rel.ro._ZTI8BodePlot[_ZTI8BodePlot]+0x10): undefined reference to `typeinfo for QwtPlot'

    I compiled Qwt thus: /usr/lib/qt5/bin/qmake qwt.pro
    so perhaps the libs are for Qt 5? I am building with Qt 6.7.

  5. #5
    Join Date
    Jan 2020
    Posts
    53
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Problem compiling qwt 6.3.0

    Compiling Qwt with qmake6 that comes with Qt 6 (~/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/bin/qmake6) makes no difference.

Similar Threads

  1. Compiling problem
    By Astrologer in forum Qt Programming
    Replies: 9
    Last Post: 11th May 2010, 08:25
  2. Problem compiling Qt 4.6
    By dentharg in forum Installation and Deployment
    Replies: 0
    Last Post: 8th December 2009, 08:32
  3. problem compiling
    By mesman00 in forum Qt Programming
    Replies: 2
    Last Post: 13th August 2009, 20:49
  4. Problem in compiling
    By ja_sapienza in forum Qt Programming
    Replies: 7
    Last Post: 11th July 2008, 16:10
  5. xlC V9 problem compiling Qt 3.3.8
    By kevinm in forum Installation and Deployment
    Replies: 0
    Last Post: 8th April 2008, 21:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.