On Tuesday 11 September 2012 08:12:52 Laszlo Papp wrote: > Hi, > > Trying to build the kde-frameworks branch on ARM, but I am facing the issue > below. I had the impression the reduce_relocations changes in Qt5 is > managed by cmake from the version 2.8.9 which I have been using in this > environment. I have been using the Qt Beta 1 packages. > > Any help welcome. Thank you in advance. :) > > Laszlo > > make > [ 0%] Automoc for target kdeqt5staging > [ 0%] Built target kdeqt5staging_automoc > [ 0%] Built target kdeqt5staging > [ 0%] Automoc for target tst_qsavefile > [ 0%] Built target tst_qsavefile_automoc > [ 0%] Building CXX object > libkdeqt5staging/autotests/CMakeFiles/tst_qsavefile.dir/tst_qsavefile.cpp.o > In file included from > /scratchbox/users/lpapp/home/lpapp/git/kdelibs/libkdeqt5staging/autotests/.. > /../kde_qt5_compat.h:23, from > /scratchbox/users/lpapp/home/lpapp/git/kdelibs/libkdeqt5staging/autotests/ts > t_qsavefile.cpp:43: /opt/qt5/include/QtCore/qglobal.h:1084: error: #error > "You must build your code with position independent code if Qt was built > with > -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
^^^ This is not limited to ARM btw, I got the same on x86. I worked around this for now by adding -fPIC to my compiler flags. Latest CMake indeed has the solution for this, but it apparently needs to be enabled explicitly in kdelibs, which I think isn't done yet. regards, Volker
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel