* CMake and Qt4
@ 2009-08-25 4:46 Matthew Dombroski
2009-08-25 5:09 ` Holger Hans Peter Freyther
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Dombroski @ 2009-08-25 4:46 UTC (permalink / raw)
To: openembedded dev
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
diff -rNuap cmake-a/Modules/FindQt4.cmake cmake-b/Modules/FindQt4.cmake
--- cmake-a/Modules/FindQt4.cmake 2009-02-22 09:36:50.000000000 +1300
+++ cmake-b/Modules/FindQt4.cmake 2009-08-25 16:24:25.560194623 +1200
@@ -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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: CMake and Qt4
2009-08-25 4:46 CMake and Qt4 Matthew Dombroski
@ 2009-08-25 5:09 ` Holger Hans Peter Freyther
2009-08-25 5:22 ` Matthew Dombroski
2009-08-25 9:08 ` Valentin Longchamp
0 siblings, 2 replies; 5+ messages in thread
From: Holger Hans Peter Freyther @ 2009-08-25 5:09 UTC (permalink / raw)
To: openembedded-devel
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CMake and Qt4
2009-08-25 5:09 ` Holger Hans Peter Freyther
@ 2009-08-25 5:22 ` Matthew Dombroski
2009-08-25 6:34 ` Holger Hans Peter Freyther
2009-08-25 9:08 ` Valentin Longchamp
1 sibling, 1 reply; 5+ messages in thread
From: Matthew Dombroski @ 2009-08-25 5:22 UTC (permalink / raw)
To: openembedded-devel
>
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CMake and Qt4
2009-08-25 5:22 ` Matthew Dombroski
@ 2009-08-25 6:34 ` Holger Hans Peter Freyther
0 siblings, 0 replies; 5+ messages in thread
From: Holger Hans Peter Freyther @ 2009-08-25 6:34 UTC (permalink / raw)
To: openembedded-devel
On Tuesday 25 August 2009 07:22:58 Matthew Dombroski wrote:
> > 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.
>
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: CMake and Qt4
2009-08-25 5:09 ` Holger Hans Peter Freyther
2009-08-25 5:22 ` Matthew Dombroski
@ 2009-08-25 9:08 ` Valentin Longchamp
1 sibling, 0 replies; 5+ messages in thread
From: Valentin Longchamp @ 2009-08-25 9:08 UTC (permalink / raw)
To: openembedded-devel
Holger Hans Peter Freyther wrote:
> 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?
>
No idea, but with only qt4e built and staged, I had come to the exact
same solution that works like a charm.
Val
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-08-25 9:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 4:46 CMake and Qt4 Matthew Dombroski
2009-08-25 5:09 ` Holger Hans Peter Freyther
2009-08-25 5:22 ` Matthew Dombroski
2009-08-25 6:34 ` Holger Hans Peter Freyther
2009-08-25 9:08 ` Valentin Longchamp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.