cmake does not work

Devanshu Jain devanshu.jain919 at gmail.com
Thu Jul 10 15:17:01 UTC 2014


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, Jul 10, 2014 at 8:41 PM, Tomaz Canabrava <tcanabrava at kde.org> wrote:

> 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 learn.
>
> for instance, in the second one
>
>  /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. "\
>
> This means that your Qt was build with -reduce-relocations and you
> must compile your code with -fPIC , as the error says.
> so, go to your CMake and add -fPIC to the CXX_COMPILER_FLAGS , and try
> again. :)
>
> Tomaz
> _______________________________________________
> 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/13225448/attachment.html>


More information about the Plasma-devel mailing list