<div dir="ltr">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:<br><b>CMake Error: The source directory "/home/devanshu/Documents/PMC/plasma-mediacenter/build/-fPIC" does not exist.</b><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 10, 2014 at 8:41 PM, Tomaz Canabrava <span dir="ltr"><<a href="mailto:tcanabrava@kde.org" target="_blank">tcanabrava@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Devanshu,<br>
<br>
I know it's frustrating to begin in a very complex and huge software<br>
as KDE and Plasma, belive me - this happened to me 6 years ago.<br>
It's very important to try to understand the errors that you have<br>
before asking for help, really. Holding hands is cool but not the most<br>
efficient way to learn.<br>
<br>
for instance, in the second one<br>
<br>
 /usr/include/qt5/QtCore/<br>
<div class="">qglobal.h:1008:4: error: #error "You must build your code with<br>
position independent code if Qt was built with -reduce-relocations. "<br>
"Compile your code with -fPIC or -fPIE."<br>
 #  error "You must build your code with position independent code if<br>
Qt was built with -reduce-relocations. "\<br>
<br>
</div>This means that your Qt was build with -reduce-relocations and you<br>
must compile your code with -fPIC , as the error says.<br>
so, go to your CMake and add -fPIC to the CXX_COMPILER_FLAGS , and try again. :)<br>
<span class="HOEnZb"><font color="#888888"><br>
Tomaz<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>