[Development] Qt5PlatformSupport, PKGCONFIG and QMAKE_PRL_LIBS
Tomasz Olszak
olszak.tomasz at gmail.com
Thu Aug 22 11:23:38 CEST 2013
Hi, I struggled yesterday a lot with building qtwayland for Tizen. I found
out the "cause" of my torment but I don't know what should be considered as
the right solution.
So qtwayland/src/plugins/platforms/wayland_common_shared.pri has
QT += platformsupport-private
My libQt5PlatformSupport.prl has empty QMAKE_PRL_LIBS (it was removed in
packaging process in *.spec file). Because Qt5PlatformsSupport.pc was
available, I added PKGCONFIG += Qt5PlatformSupport to
wayland_common_shared.pri. Unfortunately flags from Libs.private were not
taken into account so I ended up with undefined symbols from
libQt5PlatformSupport.a (glib, fontconfig and so on).
When I modified Qt5PlatformSupport.pc and copied added Libs.private to Libs
section. Result was much better but I needed to add also
CONFIG += no_lflags_merge
because -lfontconfig appeared before Qt5PlatformSupport in compiler
arguments list.
So the question is what really causes the problem:
1. Empty QMAKE_PRL_LIBS in prl file
2. qmake doesn't use Libs.private flags
I would like to also ask if adding CONFIG += no_lflags_merge is reasonable
or ugly workaround in such case?
--
regards / pozdrawiam, Tomasz Olszak
Qt for Tizen | http://qt-project.org/wiki/Tizen
Qt Certified Developer | http://qt-project.org
http://linkedin.com/in/tolszak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130822/c21d8f9a/attachment.html>
More information about the Development
mailing list