[OpenWalnut-Dev] problems compiling latest release version of openwalnut with QT5

David Moreno-Dominguez moreno at cbs.mpg.de
Wed Mar 4 10:58:21 CET 2015


Hello,  I am trying to compile the latest Release of OpenWalnut in my computer.
Due to the MaxPlanck IT not allowing to install the package in our szstem as it is precise pangolin and its not officiallz supported I downloaded the required QT5 libraries to a scratch folder  and used cmake-gui to to include this path. cmake gives no errors, however when executing make, I obtain an error in the form (full outputs in the attached file):

/scr/planck1/Qt-5.3.1/include/QtCore/qglobal.h:1030: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."

I have tried adding these argument in the make, and in the cmake release flags, but that doesnt work. Any idea where I should include it?

I saw the piece of code that prevents the program from compiling is in the form:

#if !defined(QT_BOOTSTRAPPED) && defined(QT_REDUCE_RELOCATIONS) && defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
#  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
         "Compile your code with -fPIC or -fPIE."
#endif


in qglobal.h. just to check, I have tried commenting it out, in this case the cmake does nto give errors anymore but when trying to execute ./openwalnut I receive an error in the form (again full output in file):

"This application failed to start because it could not find or load the Qt platform plugin "xcb"."

Any solution/ideas/suggestions?

thanks in advance

David


David Moreno-Dominguez
Post-Doc
Research Group: Neuroanatomy and Connectivity
Methods & Development Unit: Cortical Networks and Cognitive Functions
Max Planck Institute for Human Cognitive and Brain Sciences
Stephanstraße 1A, 04103 Leipzig, Germany
Phone: +49 341 9940-2580
Email: moreno at cbs.mpg.de
http://www.cbs.mpg.de/~moreno
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: owqt5_fail.txt
URL: <http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/attachments/20150304/1c375a61/attachment.txt>


More information about the OpenWalnut-Dev mailing list