Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525868 - =media-libs/mlt-0.9.0 USE=qt4 with x11-libs/qt-meta:3 - kdenlivetitle_wrapper.cpp:23:24: fatal error: QtGui/QImage: No such file or directory
Summary: =media-libs/mlt-0.9.0 USE=qt4 with x11-libs/qt-meta:3 - kdenlivetitle_wrapper...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 536510 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-19 14:43 UTC by J.Borme
Modified: 2016-05-11 17:51 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,60.10 KB, text/plain)
2014-10-19 14:43 UTC, J.Borme
Details
emerge--info (emerge-info.txt,5.47 KB, text/plain)
2014-10-19 14:44 UTC, J.Borme
Details
Output-emerge-qv (output.txt,219 bytes, text/plain)
2014-10-19 14:44 UTC, J.Borme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J.Borme 2014-10-19 14:43:17 UTC
I tried to install kdenlive-0.9.2. It requires mlt with USE flag qt4. But i tries to compile with qt5 which is also on this machine, and it fails because some tweaks would be needed.

Error is "QApplication: No such file or directory", for which I found an explanation at https://qt-project.org/forums/viewthread/23425

Reproducible: Always
Comment 1 J.Borme 2014-10-19 14:43:48 UTC
Created attachment 386944 [details]
Build log
Comment 2 J.Borme 2014-10-19 14:44:10 UTC
Created attachment 386946 [details]
emerge--info
Comment 3 J.Borme 2014-10-19 14:44:43 UTC
Created attachment 386948 [details]
Output-emerge-qv
Comment 4 Michael Palimaka (kensington) gentoo-dev 2014-10-20 12:17:45 UTC
> Qt version 3.x detected, will compile Qt3 qimage producer
> Include directory:  /usr/qt/3/include

It looks to not be detecting your Qt 4, rather than mis-detecting Qt 5.

Which version of Qt 4 do you have installed, and are you using qtchooser at all? Is QTDIR envvar exported in your environment at all?
Comment 5 Paweł Stankowski 2014-10-21 22:18:35 UTC
Misdetecting Qt5? I guess that directory called '/usr/qt/3/include' really contains Qt3, but build is broken because in qt3 you were supposed to include qapplication.h header and not QtGui/QApplication

I suppose that the problem is that upstream developers forgot to remove qt3 support when they started to use qt4-only features. This bug should no longer block qt5 tracker bug as it seems to be a problem with qt3 support.

[1] http://www.qtforum.org/article/37604/qapplication-no-such-file-or-directory.html
[2] http://doc.qt.digia.com/3.3/qapplication.html
Comment 6 Michael Palimaka (kensington) gentoo-dev 2014-10-22 13:12:24 UTC
(In reply to Paweł Stankowski from comment #5)
> Misdetecting Qt5? I guess that directory called '/usr/qt/3/include' really
> contains Qt3, but build is broken because in qt3 you were supposed to
> include qapplication.h header and not QtGui/QApplication
> 
> I suppose that the problem is that upstream developers forgot to remove qt3
> support when they started to use qt4-only features. This bug should no
> longer block qt5 tracker bug as it seems to be a problem with qt3 support.
> 
> [1]
> http://www.qtforum.org/article/37604/qapplication-no-such-file-or-directory.
> html
> [2] http://doc.qt.digia.com/3.3/qapplication.html

This build system assumes that if Qt 4 cannot be detected for whatever reason, that Qt 3 is definitely present. Given that Qt 3 has been removed from portage for over 4 years, it seems more likely that there is some issue with Qt 4 being detected (which may or may not be related to Qt 5) rather than some random Qt 3 build failure.
Comment 7 J.Borme 2014-10-22 16:18:50 UTC
Thank very much to all for the support. I have the following comments: 

* I do not have qtchooser installed (it is blocked by stable version qtcore-4.8.5). It does ot seem to be compulsory to all packacges, for example owncloud-client can be compiled with qt4 or qt5 without qtchooser (see bug #512726).
* I did have qt-meta:3 from kde-sunset overlay installed (before May 2013, qucs was only in kde-sunset with qt3; then it was imported into main tree with qt4 support, and by that time I had forgotten to uninstall qt3).

After uninstalling qt-meta:3, mlt compiled fine.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2014-10-22 16:29:43 UTC
Huh, that's a surprise to see Qt 3 still in use. :-)
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 17:20:10 UTC
*** Bug 536510 has been marked as a duplicate of this bug. ***
Comment 10 barade.barade 2015-01-13 17:24:38 UTC
Confirmed: I have the same error and dev-qt/qt-meta-3.3.8b-r2 emerged from overlay kde-sunset.
Trying to unmerge it now.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2016-05-11 17:51:25 UTC
0.9.8 appears to drop support for Qt 3 so this should no longer be an issue.