cmake does not work

2014-07-10 Thread Devanshu Jain
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: -- --***

cmake does not work

2014-07-10 Thread Devanshu Jain
Please find enclosed the cmake error log file. Determining if the Q_WS_X11 exist failed with the following output: Change Dir: /home/devanshu/Documents/PMC/plasma-mediacenter/CMakeFiles/CMakeTmp Run Build Command:/usr/bin/make cmTryCompileExec3690683921/fast /usr/bin/make -f

Re: cmake does not work

2014-07-10 Thread Akshay Ratan
Hello Devanshu, You followed the PMC build instructions from here : http://sinny.in/node/25 ? Let us know if you still need help in building the source code after following Sinny's blog post. Cheers, Akshay Ratan On Thu, Jul 10, 2014 at 12:34 PM, Devanshu Jain devanshu.jain...@gmail.com

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Hi Akshay, Thanks for such quick reply. And yes, I followed instructions from there. On Thu, Jul 10, 2014 at 12:57 PM, Akshay Ratan akshayra...@gmail.com wrote: Hello Devanshu, You followed the PMC build instructions from here : http://sinny.in/node/25 ? Let us know if you still need

Re: cmake does not work

2014-07-10 Thread Sinny Kumari
On Thu, Jul 10, 2014 at 12:33 PM, Devanshu Jain devanshu.jain...@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

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
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

cmake does not work

2014-07-10 Thread Devanshu Jain
Please find the enclosed cmake output log file The system is: Linux - 3.13.0-30-generic - x86_64 Compiling the C compiler identification source file CMakeCCompilerId.c succeeded. Compiler: /usr/bin/cc Build flags: Id flags: The output was: 0 Compilation of the C compiler identification

cmake does not work

2014-07-10 Thread Devanshu Jain
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: ***

Re: cmake does not work

2014-07-10 Thread R.Harish Navnit
On Thu, Jul 10, 2014 at 12:35 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: Please find the enclosed cmake output log file Hi Devanshu, I would suggest using pastebin http://paste.kde.org instead of attaching the output logs in your mails. I think that's a lot easier and attachments in

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Hi Harish, Thanks for pastebin suggestion. I would keep it in mind next time. As for the typos: No I didn't make any typos. I double checked everything. On Thu, Jul 10, 2014 at 4:37 PM, R.Harish Navnit harishnav...@gmail.com wrote: On Thu, Jul 10, 2014 at 12:35 PM, Devanshu Jain

Re: cmake does not work

2014-07-10 Thread Shantanu Tushar Jha
Hi Devanshu, What distro are you using? Also, how have you installed Qt? On Thu, Jul 10, 2014 at 4:48 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: Hi Harish, Thanks for pastebin suggestion. I would keep it in mind next time. As for the typos: No I didn't make any typos. I double

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Hi Shantanu, I am using Ubuntu 14.04 and yes I have Qt installed. On Thu, Jul 10, 2014 at 8:26 PM, Shantanu Tushar Jha shant...@kde.org wrote: Hi Devanshu, What distro are you using? Also, how have you installed Qt? On Thu, Jul 10, 2014 at 4:48 PM, Devanshu Jain devanshu.jain...@gmail.com

Re: cmake does not work

2014-07-10 Thread Tomaz Canabrava
Devanshu, I know it's frustrating to begin in a very complex and huge software as KDE and Plasma, belive me - this happened to me 6 years ago. It's very important to try to understand the errors that you have before asking for help, really. Holding hands is cool but not the most efficient way to

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
I already tried that but I think cmake does not realise -fPIC/fPIE as a valid option. So it considers that a file exists with the same name and shows me the following error: *CMake Error: The source directory /home/devanshu/Documents/PMC/plasma-mediacenter/build/-fPIC does not exist.* On Thu,

Re: cmake does not work

2014-07-10 Thread Tomaz Canabrava
On Thu, Jul 10, 2014 at 12:17 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: I already tried that but I think cmake does not realise -fPIC/fPIE as a valid option. So it considers that a file exists with the same name and shows me the following error: CMake Error: The source directory

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Hi Tomaz, The CXX_COMPILER_FLAGS part of cmakeLists.txt looks like: - include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG(-std=c++11 COMPILER_SUPPORTS_CXX11) CHECK_CXX_COMPILER_FLAG(-std=c++0x COMPILER_SUPPORTS_CXX0X) if(COMPILER_SUPPORTS_CXX11)

Re: cmake does not work

2014-07-10 Thread Tomaz Canabrava
I don't seem to find the -fPIC there... put it. :) On Thu, Jul 10, 2014 at 12:29 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: Hi Tomaz, The CXX_COMPILER_FLAGS part of cmakeLists.txt looks like: - include(CheckCXXCompilerFlag)

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Thanks a lot Tomaz for the help. I put the line: *set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIC)* It worked. On Thu, Jul 10, 2014 at 9:05 PM, Tomaz Canabrava tcanabr...@kde.org wrote: I don't seem to find the -fPIC there... put it. :) On Thu, Jul 10, 2014 at 12:29 PM, Devanshu Jain

Re: cmake does not work

2014-07-10 Thread Shantanu Tushar Jha
Cool, though I had asked how have you installed Qt ;) Because I've never encountered this error. Anyway, you can even add the fPIC flag like this - cmake .. -DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DKDE4_BUILD_TESTS=OFF

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Hi Shantanu, Sorry for misreading. But I downloaded Qt using synaptic. And I guess it is still causing troubles. When doing *make install*, another error is produced ( http://paste.kde.org/prtoragcp). It says: This file was generated using the moc from 4.8.6. It cannot be used with the include

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
I started from scratch but make command is again giving the same error. On Thu, Jul 10, 2014 at 9:45 PM, Shantanu Tushar Jha shant...@kde.org wrote: Something tells me its still using Qt5 (and thats why it regards 4.8.6 as old), can you try removing your build dir and start from scratch?

Re: cmake does not work

2014-07-10 Thread Shantanu Tushar Jha
try running this and pastebin the output - VERBOSE=1 make On Thu, Jul 10, 2014 at 9:57 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: I started from scratch but make command is again giving the same error. On Thu, Jul 10, 2014 at 9:45 PM, Shantanu Tushar Jha shant...@kde.org wrote:

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Here is the link to the output: http://paste.kde.org/pjyrnmzag On Thu, Jul 10, 2014 at 10:33 PM, Shantanu Tushar Jha shant...@kde.org wrote: try running this and pastebin the output - VERBOSE=1 make On Thu, Jul 10, 2014 at 9:57 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: I

Re: cmake does not work

2014-07-10 Thread Shantanu Tushar Jha
Hmm that is very strange. Edit the file build/libs/mediacenter/moc_mediasourcesloader.cpp and put these just after the != 63 condition- #error VERSION IS #error Q_MOC_OUTPUT_REVISION and then run make again and pastebin On Thu, Jul 10, 2014 at 10:35 PM, Devanshu Jain

Re: cmake does not work

2014-07-10 Thread Thomas Braxton
Remove your build dir and run cmake again making sure it uses the qmake from Qt 4. ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Here is the new output: http://paste.kde.org/puzsadkmt ___ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel

Re: cmake does not work

2014-07-10 Thread Devanshu Jain
Surprising. Built it again. Not sure how, but it worked. Thank you guys, It was really kind of you to take time off your routine and help me. On Thu, Jul 10, 2014 at 10:48 PM, Devanshu Jain devanshu.jain...@gmail.com wrote: Here is the new output: http://paste.kde.org/puzsadkmt