<div dir="ltr"><div><div>Hi Sinny, <br></div>I tried it, but it is still giving error:<br><br>**********---------------------------------***********<br><br>-- Found Qt-Version 4.8.6 (using /usr/bin/qmake-qt4)<br>Change Dir: /home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp<br>
<br>Run Build Command:/usr/bin/make "cmTryCompileExec293582953/fast"<br>/usr/bin/make -f CMakeFiles/cmTryCompileExec293582953.dir/build.make CMakeFiles/cmTryCompileExec293582953.dir/build<br>make[1]: Entering directory `/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp'<br>
/usr/bin/cmake -E cmake_progress_report /home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp/CMakeFiles 1<br>Building CXX object CMakeFiles/cmTryCompileExec293582953.dir/check_qt_application.cpp.o<br>/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<br>
In file included from /usr/include/qt5/QtCore/QtGlobal:1:0,<br> from /home/devanshu/Documents/PMC/plasma-mediacenter/CMakeTmp/check_qt_application.cpp:1:<br>/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."<br>
# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\<br> ^<br>make[1]: *** [CMakeFiles/cmTryCompileExec293582953.dir/check_qt_application.cpp.o] Error 1<br>
make[1]: Leaving directory `/home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp'<br>make: *** [cmTryCompileExec293582953/fast] Error 2<br><br>CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):<br>
Unable to compile a basic Qt application. Qt has not been found correctly.<br>Call Stack (most recent call first):<br> /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)<br> CMakeLists.txt:20 (find_package)<br>
<br><br>-- Configuring incomplete, errors occurred!<br><br><br>*******-----------------------------****************<br></div>Thanx<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 3:09 PM, Sinny Kumari <span dir="ltr"><<a href="mailto:ksinny@gmail.com" target="_blank">ksinny@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Thu, Jul 10, 2014 at 12:33 PM, Devanshu Jain <span dir="ltr"><<a href="mailto:devanshu.jain919@gmail.com" target="_blank">devanshu.jain919@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sir,<br>
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:<br>
<br>
****--------------------------<div>--***<br>
<br>
devanshu@devanshu-pc:~/Documents/PMC/plasma-mediacenter/build$ cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DKDE4_BUILD_TESTS=OFF<br>
-- Found Qt-Version 5.2.1 (using /usr/bin/qmake)<br></div></div></blockquote><div><br></div></div><div>Looks like, it is using Qt5 instead of Qt4. PMC currently works with Qt4 (Qt5 port is still in progress). <br><br></div>
<div>
After clearing your build directory, try adding flag -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 to the cmake too and see if it works.<br></div><div>So, your final cmake command would be:<br><br>cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DKDE4_BUILD_TESTS=OFF<br>
<br></div><div>Thanks<br></div></div></div></div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br></div>