Modify

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: garyli@… Owned by: garyli@…
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 stoecker, 2 weeks ago

Owner: changed from stuerze to garyli@…
Status: newneedinfo

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.

comment:2 by wiese, 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".

Modify Ticket

Change Properties
Action
as needinfo The owner will remain garyli@….
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from garyli@… to the selected user. Next status will be 'assigned'.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from garyli@… to anonymous. Next status will be 'accepted'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.