cmake does not work
Devanshu Jain
devanshu.jain919 at gmail.com
Thu Jul 10 09:56:19 UTC 2014
Hi Sinny,
I tried it, but it is still giving error:
**********---------------------------------***********
-- Found Qt-Version 4.8.6 (using /usr/bin/qmake-qt4)
Change Dir:
/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec293582953/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec293582953.dir/build.make
CMakeFiles/cmTryCompileExec293582953.dir/build
make[1]: Entering directory
`/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object
CMakeFiles/cmTryCompileExec293582953.dir/check_qt_application.cpp.o
/usr/bin/c++ -std=c++11 -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
-fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common
-Woverloaded-virtual -fno-threadsafe-statics -I/usr/include/qt4/phonon
-I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml
-I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools
-I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql
-I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript
-I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner
-I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus
-I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt
-I/usr/share/qt4/mkspecs/default -I/usr/include/qt5 -o
CMakeFiles/cmTryCompileExec293582953.dir/check_qt_application.cpp.o -c
/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeTmp/check_qt_application.cpp
In file included from /usr/include/qt5/QtCore/QtGlobal:1:0,
from
/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeTmp/check_qt_application.cpp:1:
/usr/include/qt5/QtCore/qglobal.h:1008:4: 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."
# error "You must build your code with position independent code if Qt
was built with -reduce-relocations. "\
^
make[1]: ***
[CMakeFiles/cmTryCompileExec293582953.dir/check_qt_application.cpp.o] Error
1
make[1]: Leaving directory
`/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec293582953/fast] Error 2
CMake Error at
/usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):
Unable to compile a basic Qt application. Qt has not been found
correctly.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
CMakeLists.txt:20 (find_package)
-- Configuring incomplete, errors occurred!
*******-----------------------------****************
Thanx
On Thu, Jul 10, 2014 at 3:09 PM, Sinny Kumari <ksinny at gmail.com> wrote:
>
>
>
> On Thu, Jul 10, 2014 at 12:33 PM, Devanshu Jain <
> devanshu.jain919 at gmail.com> wrote:
>
>> Sir,
>> I am new to open source commity and am trying to get involved with KDE
>> plasma media center. I am trying to build plasma media center on my pc. But
>> while running the command, I am getting the following message:
>>
>> ****--------------------------
>> --***
>>
>> devanshu at devanshu-pc:~/Documents/PMC/plasma-mediacenter/build$ cmake ..
>> -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DKDE4_BUILD_TESTS=OFF
>> -- Found Qt-Version 5.2.1 (using /usr/bin/qmake)
>>
>
> Looks like, it is using Qt5 instead of Qt4. PMC currently works with Qt4
> (Qt5 port is still in progress).
>
> After clearing your build directory, try adding flag
> -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 to the cmake too and see if it
> works.
> So, your final cmake command would be:
>
> cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
> -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DKDE4_BUILD_TESTS=OFF
>
> Thanks
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140710/f4605231/attachment.html>
More information about the Plasma-devel
mailing list