CMake and Qt4
Hi,
The FindQt4.cmake distributed with cmake (for some time now) is unable to find the libs installed by qt4e (I haven't tried qt4x11). This is because the libs installed by openembedded use an unusual naming convention that isnt known in FindQt4.cmake.
The below patch fixes the problem.
~Matt
Modules/FindQt4.cmake 2009-08-25 16:24:25.560194623 +1200 renamed from Modules/FindQt4.cmake 2009-02-22 09:36:50.000000000 +1300 +1 -1
@@ -642,7 +642,7 @@ IF (QT4_QMAKE_FOUND) FOREACH(QT_MODULE ${QT_MODULES}) STRING(TOUPPER ${QT_MODULE} _upper_qt_module) FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_RELEASE - NAMES ${QT_MODULE} ${QT_MODULE}4 + NAMES ${QT_MODULE} ${QT_MODULE}E ${QT_MODULE}4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH ) FIND_LIBRARY(QT_${_upper_qt_module}_LIBRARY_DEBUG
Quoted 8 lines · On Tuesday 25 August 2009 06:46:56 Matthew Dombroski wrote:
Hi,
The FindQt4.cmake distributed with cmake (for some time now) is unable to find the libs installed by qt4e (I haven't tried qt4x11). This is because the libs installed by openembedded use an unusual naming convention that isnt known in FindQt4.cmake.
The below patch fixes the problem.
This will not work when both qt4x11 and qt4e is built and staged. I have no specific knowledge of the current FindQt4 cmake module but there should be a way to tell it that we want the QtE, QtX11 or QtMac built...
Do you have any idea?
z.
Quoted 7 lines
This will not work when both qt4x11 and qt4e is built and staged. I have no specific knowledge of the current FindQt4 cmake module but there should be a way to tell it that we want the QtE, QtX11 or QtMac built...
Do you have any idea?
Do you know the naming convention of qt4x11? qt4e names libs with a big E like this: libQtCoreE.so.4.5
It shouldnt be hard to add another variable in FindQt4.cmake that controls what names we search for.
~Matt
Quoted 8 lines · On Tuesday 25 August 2009 07:22:58 Matthew Dombroski wrote:
Quoted 5 lines
This will not work when both qt4x11 and qt4e is built and staged. I have no specific knowledge of the current FindQt4 cmake module but there should be a way to tell it that we want the QtE, QtX11 or QtMac built...
Do you have any idea?
Do you know the naming convention of qt4x11? qt4e names libs with a big E like this: libQtCoreE.so.4.5
There is no convention. In Qt2 times an 'e' was appended to libqt. For Qt4 we (in OpenEmbedded) are using the library infix to append the E as we are supporting both QtX11 and QtEmbedded.
Quoted 3 lines
It shouldnt be hard to add another variable in FindQt4.cmake that controls what names we search for.
Qt4x11 should be already in that list. So the basic problem with "appending" 'E' to the list is that it will not be used when Qt4X11 was already staged.
To summarize. I'm not aware of any other distro that allows to install Qt4/X11 and Qt4/Embedded Linux. We are doing something that the KDE/CMake developers have not seen as it doesn't exist on the desktop.
The fix should include externally forcing FindQt4 to use X11 or EmbeddedLinux depending on the config.
z.
Quoted 8 lines · Holger Hans Peter Freyther
Quoted 7 lines · On Tuesday 25 August 2009 06:46:56 Matthew Dombroski wrote:
Hi,
The FindQt4.cmake distributed with cmake (for some time now) is unable to find the libs installed by qt4e (I haven't tried qt4x11). This is because the libs installed by openembedded use an unusual naming convention that isnt known in FindQt4.cmake.
Quoted 6 lines
Quoted 1 line
The below patch fixes the problem.
This will not work when both qt4x11 and qt4e is built and staged. I have no specific knowledge of the current FindQt4 cmake module but there should be a way to tell it that we want the QtE, QtX11 or QtMac built...
Do you have any idea?
No idea, but with only qt4e built and staged, I had come to the exact same solution that works like a charm.
Val