neuronalmotion / qtrpi

An easy-to-use environment to cross-compile Qt applications for Raspberry Pi from your desktop.
MIT License
104 stars 40 forks source link

error : "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?) #93

Open REKIKWael opened 5 years ago

REKIKWael commented 5 years ago

Hi, my program is using a python module to download some video from google drive, it's work very well but I couldn't cross compile it for raspberry. I am new in QT Cross Compile for raspberry and I couldn't find a solution for this error in any place :

define _POSIX_C_SOURCE 200809L ^ In file included from lib/python2.7/Include/Python.h:8:0, from DigitalSignal.cpp:15: lib/python2.7/Include/pyconfig.h:1242:0: warning: « _XOPEN_SOURCE » redéfini [enabled by default] define _XOPEN_SOURCE 600 ^ In file included from /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/os_defines.h:39:0, from /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/arm-linux-gnueabihf/bits/c++config.h:426, from /opt/qtrpi/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/include/c++/4.8.3/cstddef:41, from /opt/qtrpi/raspi/qt5pi/include/QtCore/qglobal.h:45, from /opt/qtrpi/raspi/qt5pi/include/QtCore/qtimer.h:43, from /opt/qtrpi/raspi/qt5pi/include/QtCore/QTimer:1, from DigitalSignal.h:5, from DigitalSignal.cpp:1: /opt/qtrpi/raspbian/sysroot/usr/include/./features.h:162:0: note: ceci est l'emplacement d’une précédente définition define _XOPEN_SOURCE 700 ^ In file included from lib/python2.7/Include/Python.h:61:0, from DigitalSignal.cpp:15: lib/python2.7/Include/pyport.h:895:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." ^ Makefile:1145: recipe for target 'DigitalSignal.o' failed make: *** [DigitalSignal.o] Error 1

If anyone already seen this error , please help :) thank you in advance :)

CalebProvost commented 4 years ago

@REKIKWael
Try using python3 instead. If that doesn't work, make sure you have the correct bit variation of python.