Opened 3 weeks ago
Last modified 41 hours ago
#189 needinfo enhancement
error compiling BNC v2.13.1 on Ubuntu 24.04 with QT5
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | BNC |
Version: | Keywords: | ||
Cc: |
Description
HI,
I'm compiling BNC v2.13.1 on Ubuntu 24.04 with QT5. From docker file, looks like "debian 12" is supported, but Ubuntu 24.04 uses "debian 13". Should I move to Ubuntu 22.04?
Here is the error:
g++ -c -pipe -O2 -fPIC -Wall -Wextra -D_REENTRANT -DQWT_NO_OPENGL -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtConcurrent -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qwt_symbol.o qwt_symbol.cpp
qwt_symbol.cpp:20:10: fatal error: qsvgrenderer.h: No such file or directory
20 | #include <qsvgrenderer.h>
|
~
compilation terminated.
make[1]: * [Makefile:1231: .obj/qwt_symbol.o] Error 1
make[1]: Leaving directory '/home/garyli/tools/packages/bnc-2.13.1-sources/BNC_2.13.1/qwt'
make: * [Makefile:93: sub-qwt-make_first-ordered] Error 2
I think I got the QT5 SVG package installed:
sudo apt install libqt5svg5-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libqt5svg5-dev is already the newest version (5.15.13-1).
The following packages were automatically installed and are no longer required:
linux-headers-6.8.0-47 linux-tools-6.8.0-47
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Thanks,
Gary
Attachments (0)
Change History (2)
comment:1 by , 2 weeks ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 41 hours ago
see Dockerfile.trixie
As you said, 24.04 is based on debian13 (trixie). Only difference to bookworm is to use just "qmake" instead of "qmake -qt=5".
In case of a correct installation the above commandline should contain " -I/usr/include/x86_64-linux-gnu/qt5/QtSvg". You should verify if /usr/include/x86_64-linux-gnu/qt5/ really contains the correct directories and files.
If everything is correct I'd suggest to resetup the source directory. Maybe some previous state is cached.