IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Qt Discussion :

j'arrive pas à faire fonctionner Qt4.5.0


Sujet :

Qt

  1. #1
    Débutant Avatar de razily
    Inscrit en
    Février 2009
    Messages
    376
    Détails du profil
    Informations forums :
    Inscription : Février 2009
    Messages : 376
    Points : 154
    Points
    154
    Par défaut j'arrive pas à faire fonctionner Qt4.5.0
    Bonjour à tous ;

    je suis sous vista et je travaille en utilisant code::blocks 8.02 !! qd j'essai de suivre ce qui est dis ici sur Qt4 :

    http://qt.developpez.com/tutoriels/katanaenmousse/

    ily a ce genre d'erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
     
    Setting up a MinGW/Qt only environment...
    -- QTDIR set to C:\Qt\4.5.0
    -- PATH set to C:\Qt\4.5.0\bin
    -- Adding C:\MinGW\bin to PATH
    -- Adding C:\Windows\System32 to PATH
    -- QMAKESPEC set to win32-g++
     
    C:\Qt\4.5.0>cd C:\Users\julio\Documents\Code_blocks\Projet
     
    C:\Users\julio\Documents\Code_blocks\Projet>qmake-project
    'qmake-project' n'est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.
     
    C:\Users\julio\Documents\Code_blocks\Projet>qmake -project
     
    C:\Users\julio\Documents\Code_blocks\Projet>qmake
     
    C:\Users\julio\Documents\Code_blocks\Projet>make
    mingw32-make -f Makefile.Debug
    Makefile.Debug:124: warning: overriding commands for target `debug/main.o'
    Makefile.Debug:121: warning: ignoring old commands for target `debug/main.o'
    Makefile.Debug:127: warning: overriding commands for target `debug/main.o'
    Makefile.Debug:124: warning: ignoring old commands for target `debug/main.o'
    mingw32-make[1]: Entering directory `C:/Users/julio/Documents/Code_blocks/Projet
    '
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt
    \4.5.0\include\QtCore" -I"c:\Qt\4.5.0\include\QtGui" -I"c:\Qt\4.5.0\include" -I"
    ." -I"c:\Qt\4.5.0\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\4.5.0\mkspecs\win32
    -g++" -o debug\main.o PremierpasQt\main.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -Wl,-subsystem,windows -o debug\Projet.exe debug/main.o debug/m
    ain.o debug/main.o  -L"c:\Qt\4.5.0\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
     
    debug/main.o(.text+0x100): In function `Z5qMainiPPc':
    C:/Users/julio/Documents/Code_blocks/Projet/PremierpasQt/main.cpp:5: multiple de
    finition of `qMain(int, char**)'
    debug/main.o(.text+0x100):C:/Users/julio/Documents/Code_blocks/Projet/Premierpas
    Qt/main.cpp:5: first defined here
    debug/main.o(.text+0x100): In function `Z5qMainiPPc':
    C:/Users/julio/Documents/Code_blocks/Projet/PremierpasQt/main.cpp:5: multiple de
    finition of `qMain(int, char**)'
    debug/main.o(.text+0x100):C:/Users/julio/Documents/Code_blocks/Projet/Premierpas
    Qt/main.cpp:5: first defined here
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [debug\Projet.exe] Error 1
    mingw32-make[1]: Leaving directory `C:/Users/julio/Documents/Code_blocks/Projet'
     
    mingw32-make: *** [debug] Error 2
     
    C:\Users\julio\Documents\Code_blocks\Projet>



    merci !!

  2. #2
    Débutant Avatar de razily
    Inscrit en
    Février 2009
    Messages
    376
    Détails du profil
    Informations forums :
    Inscription : Février 2009
    Messages : 376
    Points : 154
    Points
    154
    Par défaut suite
    j'ai créé un autre projet et je l'ai mis sur mon bureau !!

    et j'ai tapé ceci !! et çà marche

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
     
     
    Setting up a MinGW/Qt only environment...
    -- QTDIR set to C:\Qt\4.5.0
    -- PATH set to C:\Qt\4.5.0\bin
    -- Adding C:\MinGW\bin to PATH
    -- Adding C:\Windows\System32 to PATH
    -- QMAKESPEC set to win32-g++
     
    C:\Qt\4.5.0>cd C:\Users\julio\Desktop\ProjetQt
     
    C:\Users\julio\Desktop\ProjetQt>qmake -project
     
    C:\Users\julio\Desktop\ProjetQt>qmake
     
    C:\Users\julio\Desktop\ProjetQt>make
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Users/julio/Desktop/ProjetQt'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
    DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..
    \..\..\Qt\4.5.0\include\QtCore" -I"..\..\..\..\Qt\4.5.0\include\QtGui" -I"..\..\
    ..\..\Qt\4.5.0\include" -I"." -I"..\..\..\..\Qt\4.5.0\include\ActiveQt" -I"debug
    " -I"." -I"..\..\..\..\Qt\4.5.0\mkspecs\win32-g++" -o debug\main.o Lesson\main.c
    pp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -Wl,-subsystem,windows -o debug\ProjetQt.exe debug/main.o  -L"c
    :\Qt\4.5.0\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
    mingw32-make[1]: Leaving directory `C:/Users/julio/Desktop/ProjetQt'
     
    C:\Users\julio\Desktop\ProjetQt>cd debug
     
    C:\Users\julio\Desktop\ProjetQt\debug>prjet1
    'prjet1' n'est pas reconnu en tant que commande interne
    ou externe, un programme exécutable ou un fichier de commandes.
     
    C:\Users\julio\Desktop\ProjetQt\debug>ProjetQt
     
    C:\Users\julio\Desktop\ProjetQt\debug>
    en fait ce qui manque aux codes précedents c'est
    cd debug ...
    et en plus aussi le nom du Dossier qui a certaines espaces :code_Blocks

  3. #3
    Rédacteur

    Inscrit en
    Novembre 2006
    Messages
    1 272
    Détails du profil
    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 272
    Points : 1 672
    Points
    1 672
    Par défaut
    Super si cela marche.

    merci d'utiliser le bouton
    Vous voulez participer aux Tutoriels, FAQ ou Traductions et faire partie de l'équipe Qt de Developpez.
    N'hésitez pas à me contacter par MP.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [AC-2003] Je n'arrive pas à faire fonctionner Package Wizard
    Par bisra dans le forum Runtime
    Réponses: 1
    Dernier message: 31/01/2012, 14h41
  2. Je n'arrive pas à faire fonctionner mon menu
    Par vocal94130 dans le forum jQuery
    Réponses: 6
    Dernier message: 24/04/2010, 17h07
  3. [RegEx] Je n'arrive pas à faire fonctionner une regex
    Par flyerjet dans le forum Langage
    Réponses: 2
    Dernier message: 24/07/2009, 20h11
  4. Réponses: 9
    Dernier message: 02/12/2008, 22h10
  5. Très débutant : je n'arrive pas à faire fonctionner le JDK
    Par miltonis dans le forum Général Java
    Réponses: 20
    Dernier message: 19/10/2005, 21h20

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo