Closed HJarausch closed 3 years ago
Hi,
include QURL like this #include <QUrl>
and modify like this:
// QDesktopServices::openUrl(QUrl::fromLocalFile(outname));
QUrl url = QUrl::fromLocalFile(outname);
QDesktopServices::openUrl(url)
```;
Many thanks pointer. Now, all files compile but I get a lot of linkage errors which I don't understand:
Acquirer.cc:(.text+0x3): undefined reference to `vtable for Acquirer'
Config.cc:(.text+0x1d81): undefined reference to `vtable for Config'
and many more. Do you have an idea what's going wrong?
Many thanks Sandro, it builds fine now on my Gentoo machine. Helmut
With QT 5.15.2 I get
/var/tmp/portage/media-gfx/gimagereader-3.3.1/work/gimagereader-3.3.1/qt/src/hocr/HOCROdtExporter.cc: In member function 'bool HOCROdtExporter::run(const HOCRDocument*, QString&)': /var/tmp/portage/media-gfx/gimagereader-3.3.1/work/gimagereader-3.3.1/qt/src/hocr/HOCROdtExporter.cc:261:35: error: incomplete type 'QUrl' used in nested name specifier 261 | QDesktopServices::openUrl(QUrl::fromLocalFile(outname));
Is there any fix? Thanks, Helmut