summaryrefslogtreecommitdiff
path: root/examples/file-transfer
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-04-04 17:36:37 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-04-04 17:36:37 -0300
commitf87b7484d122f5f6cd027267fd5707d03758078a (patch)
tree794641d766e4f5fa209da140c46a55c870955729 /examples/file-transfer
parent7e993408ddaf5ead064f86a5cfe59f1be3a93329 (diff)
Properly build against Qt 5 alpha.
Qt 5 alpha release has some build issues that should be addressed in order to build tp-qt against it: - When running configure in Qt 5 alpha, the pkgconfig files are properly generated, but when make is executed, the files are replaced with empty ones, so to build tp-qt one must either backup the pkgconfig files generated during the configure phase before running make and replace them afterwards, or re-run configure with the same parameters after building it. (reported and should be fixed when beta is out) - If Qt 5 alpha is built with -reduce-relocations enabled, one must add the keyword "reduce_relocations" to qtbase/lib/pkgconfig/QtCore.pc in the qt_config section, so that tp-qt knows when to use -fPIC/PIE accordingly. (reported and should be fixed when beta is out)
Diffstat (limited to 'examples/file-transfer')
-rw-r--r--examples/file-transfer/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/file-transfer/CMakeLists.txt b/examples/file-transfer/CMakeLists.txt
index def615c6..976cf3fa 100644
--- a/examples/file-transfer/CMakeLists.txt
+++ b/examples/file-transfer/CMakeLists.txt
@@ -18,7 +18,8 @@ target_link_libraries(ft-receiver
${QT_QTDBUS_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTXML_LIBRARY}
- telepathy-qt${QT_VERSION_MAJOR})
+ telepathy-qt${QT_VERSION_MAJOR}
+ ${TP_QT_EXECUTABLE_LINKER_FLAGS})
set(ft-sender_SRCS
file-sender.cpp
@@ -38,4 +39,5 @@ target_link_libraries(ft-sender
${QT_QTDBUS_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${QT_QTXML_LIBRARY}
- telepathy-qt${QT_VERSION_MAJOR})
+ telepathy-qt${QT_VERSION_MAJOR}
+ ${TP_QT_EXECUTABLE_LINKER_FLAGS})