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

Christof Pieloth pieloth at labp.htwk-leipzig.de
Wed Mar 4 11:34:04 CET 2015


Hello David,

this error was actually solved in Dec. '15 with the revision b7428b45260e.
http://www.openwalnut.org/issues/385
http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/2014-November/000519.html

  If you checkout the latest default branch/head and re-run cmake+make, 
the compilation should have no errors.

Best regards,
Christof Pieloth

Am 04.03.2015 um 10:58 schrieb David Moreno-Dominguez:
> 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
>
>
> _______________________________________________
> OpenWalnut-Dev mailing list
> OpenWalnut-Dev at lists.informatik.uni-leipzig.de
> http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
>
> Archive: http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/

-- 
Christof Pieloth, M.Sc.
email: pieloth 'at' labp.htwk-leipzig.de
web: www.labp.htwk-leipzig.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/attachments/20150304/3f8e5e6d/attachment.html>


More information about the OpenWalnut-Dev mailing list