Comment compiler avec Qt pour un processeur arm
Salut tout le monde,
Au fait je voudrais compiler un programme C++ avec QT pour un processeur arm.En effet j'arrive à compiler le programme et à l'executer sur ma machine sous Fedora mais je ne sais pas comment le compiler pour qu'ils puissent s'éxecuter sur un processeur Arm.J'ai deja installé arm-linux-gcc qui fonctionne.
Je vous remercie d'avance.
probleme avec opie et QT/Embedded
Salut,
Dimitri merci pour tes reponses.
Puisque la cross-compilation parait tres improbable voire impossible avec Qt/X11 j'ai decidé d'installer le Qt/Embedded.alors j'ai choisi de l'installer avec Opie qui parait bien.Pour l'installation j'ai suivi tout ce qui est dit dans le fichier readme de Opie qui combine le Qt/Embedded et Opie.Mais il y a un point que je ne comprend pas c'est "Once you have these compiled, be sure to set the PATH to ensure your (cross)compiler is available".Je ne sais pas ce qu'il veulent dire par la s'il faut encore une configuration de variable d'environnement ou pas.
Apres le ./configure je passe dans le repertoire de Opie et j'execute make clean suivie de make menuconfig comme indiqué dans le readme,la j'accede à l'interface de configuration et apres la configuration j'enregistre et je sort.
apres j'execute le make mais j'ai l'erreur suivante:
Citation:
/bin/sh: -c: line 0: syntax error near unexpected token `>'
/bin/sh: -c: line 0: `echo >>>set OpenEmbedded build directory here<<< | sed -e's/"//g''
Generating dependency information...
cat /root/Desktop/logiciels/opie/opie-1.2.2/packages | grep -v '^#' | \
perl -ne '($cfg, $dir, $pro) = $_ =~ /^(\S+)\s+(\S+)\s+(\S+)/; if ( -e "$dir/$pro" ) { print "$dir/Makefile : $dir/$pro \$(QMAKE) \$(OPIEDIR)/gen.pro \$(OPIEDIR)/.config\n\t\$(call makefilegen,\$@)\n\n"; }' \
>> /root/Desktop/logiciels/opie/opie-1.2.2/.depends
/bin/sh: -c: line 0: syntax error near unexpected token `>'
/bin/sh: -c: line 0: `echo >>>set OpenEmbedded build directory here<<< | sed -e's/"//g''
echo > /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG += thread >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG += debug >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG -= release >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += "QT_COMPONENT_DEBUG=2" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += QT_DEBUG >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo !contains\( TARGET,qpe \) \{ >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG += staticlib >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo \} >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG -= qt3 >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo contains\( CONFIG, quick-app \) \{ >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG -= staticlib >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG -= quick-app >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG += quick-app-lib >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo QUICKLAUNCH_PATH = "y" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo \} >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo ENABLE_SQL_PIM_BACKEND=y >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG += OPIELOGIN_USEPAM >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo CONFIG += LIBQPE_WITHROHFEEDBACK >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += LIBQPE_NO_INLINE_IMAGES >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += USE_REALTIME_AUDIO_THREAD >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += USE_FILE_NOTIFICATION >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += OPIE_NEW_MALLOC >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += OPIE_NO_SOUND_PCM_READ_BITS >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += OPIE_SOUND_FRAGMENT_SHIFT="16" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo DEFINES += OPIE_TASKBAR_LOCK_KEY_STATE >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBSQLITE_LIB_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBSQLITE_INC_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBBLUEZ_LIB_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBBLUEZ_INC_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBIPK_LIB_DIR = "y" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBIPK_INC_DIR = "y" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBSWORD_LIB_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBSWORD_INC_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBFREETYPE2_INC_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBFLITE_LIB_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
echo LIBFLITE_INC_DIR = "" >> /root/Desktop/logiciels/opie/opie-1.2.2/gen.pro
cd core/applets/aboutapplet/; /root/Desktop/logiciels/opie/opie-1.2.2/qmake/qmake -o Makefile aboutapplet.pro
cd library/; /root/Desktop/logiciels/opie/opie-1.2.2/qmake/qmake -o Makefile library.pro
make QMAKE=/root/Desktop/logiciels/opie/opie-1.2.2/qmake/qmake -C library
make[1]: Entering directory `/root/Desktop/logiciels/opie/opie-1.2.2/library'
>>>set OpenEmbedded build directory here<<</tmp/staging/i686-linux/bin/uic passwordbase_p.ui -o passwordbase_p.h
/bin/sh: -c: line 0: syntax error near unexpected token `>'
/bin/sh: -c: line 0: `>>>set OpenEmbedded build directory here<<</tmp/staging/i686-linux/bin/uic passwordbase_p.ui -o passwordbase_p.h'
make[1]: *** [passwordbase_p.h] Erreur 2
make[1]: Leaving directory `/root/Desktop/logiciels/opie/opie-1.2.2/library'
make: *** [library] Erreur 2
Et la je n'arrive pas à m'en sortir.
Je ne sais pas si je suis bien claire
J'ai besoin de votre aide.
Ou bien aussi si vous connaissez un autre environnement de developpement graphique sous linux(C/C++) pour compiler pour une machime ARM qui est plus simple ou plus facile d'utilisation je suis preneur
Merci encore.
j'ai utilisé plutot Microwindows
Salut tout le monde,
Avec la persistance de mes erreurs avec Qt j'ai abandonné et j'ai utilisé plutot microwindows qui est plus leger et plus simple.
Je remercie tous ceux qui m'ont repondu.