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 Creator Discussion :

Un exécutable impossible à lancer


Sujet :

Qt Creator

  1. #21
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    Bon, 4h de téléchargement pour avoir Qt 5... Installation et.... Plus moyen de faire la moindre compilation ! Boutons gris toussa toussa !

    Désinstallation hélico presto !

    Tien, à propos, j'avais quand même pu tiré un quelque-chose de pas fiable avec le SDK. Je suppose qu'il faille partir de là ?

    Si oui, ou récupéré la bonne version à installé ? Par ce que là je tourne en rond, un ans que je tente et un ans que ça me sort rien ou que ça foire à l'installation. Je veux pas dire mais c'est quand même loin d'être fiable.

    Une petite dernière bien de chez moi:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    //Si je tenais l'ingénieur qui à mis au point l'installation de Qt, il se prendrais une pêche dans les dents en plus de perdre son taff.

    Merci.

  2. #22
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    Bonjour,

    Réinstallation de Qt Creator 5.

    Bon, voila le rapport d'installation:

    Welcome to Qt 5
    ===============

    Qt is a cross-platform application and user interface framework. It
    consists of a number of software libraries and development tools.

    Qt is developed as an open source project. It is available under both
    open source and commercial licenses.

    All information on Qt is available on the Qt Developer Network:
    http://qt-project.org

    Be sure to check out the release notes, which will list any known
    problems or limitations of this version:
    http://qt-project.org/wiki/Category:Release


    Overview
    --------

    You can use the Qt 5 installation program to install the following components:

    - Qt libraries, prebuilt for a particular development platform (operating system
    and compiler)
    - Qt Creator integrated development environment (IDE)
    - Basic development tools, prebuilt for a particular development platform
    - Documentation
    - Qt in source code form (needed only if you want to build the framework and
    tools yourself)

    Install Qt libraries to develop or run applications that need the Qt runtimes or
    to try out example applications built with Qt.

    Qt Creator is designed to make Qt development easier, but you can also use a 3rd
    party IDE (such as MS Visual Studio), or just an editor and command line, in
    addition to basic Qt development tools (Qt Designer, Qt Assistant, qmlscene, and
    so on).


    Installing Qt 5
    ---------------

    You can download Qt 5 from http://qt-project.org/downloads. The site provides
    download links for all supported development platforms.

    Start the installation program like any executable on the development platform.
    On Linux, you might first have to make the installation program executable.

    Select the components that you want to install and follow the instructions of
    the installation program to complete the installation.

    Use the Maintenance Tool under <install_dir> to remove all installed
    components.


    Directory Structure
    -------------------

    The default top-level installation directory is the directory "Qt<version>" in
    your home directory, but you can specify another directory (<install_dir>). On
    Windows, however, the default top-level installation directory is "C:\Qt\Qt<version>".
    Each Qt version is installed in the <install_dir>/<version> directory. This directory
    contains subdirectories for the Qt libraries (<compiler>) and sources (Src).
    The <compiler> directory contains subdirectories for development tools (bin) and
    examples.


    Starting Development Tools
    --------------------------

    You can start Qt Creator directly after the installation by selecting the option
    on the last page of the installation program. You can start most of
    the development tools, such as GUI designers, compilers, and debuggers
    directly from Qt Creator. You can also access the installed documentation and
    example applications from Qt Creator.

    The development tools are located in the directory
    <install_dir>/<version>/<compiler>/bin. You can run them from Qt Creator or from
    the command line. You can also launch some of them as standalone applications.
    For example:

    - Qt Assistant, the Qt documentation reader
    - Qt QML Scene, the viewer for Qt Quick 2 files
    - Qt QML Viewer, the viewer for Qt Quick 1 files
    and - Qt Designer, the GUI designer for Qt widgets-based applications

    You can use Qt Creator to develop with other Qt versions as well:

    http://qt-project.org/doc/qtcreator-...ect-qmake.html


    Running Example Applications
    ----------------------------

    You can open most example applications in the Qt Creator Welcome mode to build
    and run them. Additional examples can be opened by browsing
    <install_dir>/<version>/<compiler>/examples.

    Building Qt 5 from Source
    -------------------------

    See <install_dir>/<version>/src/README and
    http://qt-project.org/wiki/Building_Qt_5_from_Git
    for instructions on building Qt from source.


    Developing Qt Applications
    --------------------------

    To develop a Qt application, you need to set up a project. Qt Creator contains
    wizards that guide you step-by-step through the project creation process. The
    wizards prompt you to enter the settings needed for a particular type of project
    and create the necessary files for you. To start, select File > New File or
    Project.

    The wizards create projects that use the Qt build tool, qmake. It is a
    cross-platform system for build automation that helps simplify the build process
    for development projects across different platforms. You can modify the build
    and run settings for qmake projects in the Qt Creator Projects mode.

    Qt Creator provides support for building, running, and deploying Qt applications
    for different target platforms, or using different compilers, debuggers, or
    Qt versions. Kits define the tools, device type and other settings to use when
    building and running your project.

    The Qt 5 installation program adds the installed Qt version
    (<install_dir>/<version>/<compiler>/bin/qmake) to Qt Creator and creates a kit
    that specifies the installed Qt version and compiler. To use the kit, add it for
    your project in the Qt Creator Projects mode. Then select the kit in the Kit
    selector before you build or run the project.

    To compile C++ Qt applications by some other means, add
    <install_dir>/<version>/<compiler>/include to your build tool's search path
    for include files, and <install_dir>/<version>/<compiler>/lib to the search
    path for libraries.


    Want to Know More?
    -------------------

    Much more information is available at:

    - http://qt-project.org/resources/getting_started
    - http://qt-project.org/doc/
    - http://qt-project.org


    We hope you will enjoy using Qt!

    - The Qt developers @ qt-project.org
    Je suis donc en 5.02. Maintenant, je crée un nouveau projet, de type Qt. Je choisi MainWindow, ce qui me crée un mainWindo.ui, un mainwindo.h et un mainwindo.cpp...

    Pourquoi donc mes boutons de compilations sont grisé. Voir l'image

    Merci de votre aide.

  3. #23
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    Bon, j'ai fini par trouver

    Alors il faut passer mar le gestionnaire de projet (page de démarrage) et demander un nouveau projet Qt. Bien sûr faut lui dire de créer un mainwindows. Et là ça compile y compris en release.

    Il ne me reste plus qu'à demander de l'aide pour trouver les bonnes DLL.

    Merci de votre aide

  4. #24
    Membre averti
    Profil pro
    Inscrit en
    Mars 2012
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2012
    Messages : 145
    Points : 392
    Points
    392
    Par défaut
    EDIT : arf bon, visiblement c'était pas ça
    Je te laisse mon pavé, ça pourra toujours servir.

    En effet, tu ne pourras jamais compiler un fichier simple sans avoir crée de projet avant

    (déjà, assure-toi d'avoir une version récente de QtCreator, disons la 2.7 voire 2.6)

    Le mode Projets (barre d'outils à gauche) est grisé, mon avis est que tu n'as aucun kit de configuré.

    Un kit est une "configuration" de compilation, et est décrit par entre autres :
    - une version de Qt ;
    - le compilateur fourni avec.

    En gros (toujours selon moi), la raison est que tu as installé Qt 5.0.2, mais tu n'as pas demandé à QtCreator de l'utiliser.

    Pour cela, menu Outils | Options | Compiler & Exécuter | onglet Kits.

    Tu ne devrais pas avoir de kit auto-détecté, tu vas donc en ajouter un manuellement :

    - dans l'onglet Versions de Qt, clique sur Ajouter.

    - sélectionne qmake.exe situé dans [RépertoireQt]\mingwXX_XX\bin\.

    - dans l'onglet Compilateurs, assure-toi d'avoir :
    C:\Qt\Qt5.0.2\Tools\MinGW\bin\g++.exe
    Au besoin, ajoute-le avec Ajouter | MinGW, et spécifie le chemin ci-dessus.

    - retour à l'onglet Kits. Clique sur Ajouter. Spécifie un nom, pourquoi pas "Qt 5.0.2". Spécifie la version de Qt et le compilateur ajoutés précédemment.

    Après ça, je ne vois pas ce qui pourrait ne pas marcher, il suffira d'ajouter cette configuration dans le mode Projets.

  5. #25
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    Trouver les bonnes DLL... Enfin...

    Vous avez le chemin là, dans l'image. Par contre nouveau bug !!

  6. #26
    Membre averti
    Profil pro
    Inscrit en
    Mars 2012
    Messages
    145
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2012
    Messages : 145
    Points : 392
    Points
    392
    Par défaut
    As-tu la même erreur en le lançant depuis QtCreator ?

    Si c'est le cas, pourrais-tu montrer ton code ?

  7. #27
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    C'est bon, ça fonctionne enfin sur W7.

    Il manquaus libEGL.dll Bon, ça c'est fait !

    Par contre, la realese ne fonctionne pas sous Xp.. Les deux système étant sous 32 bits. Je précise un peu aussi.

    Les dll sont les mêmes et le message d'erreur est:

    runtime this application has requested the runtime to terminate
    J'y arriverais un jour... J'y arriverais !

  8. #28
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    J'ai trouver une piste !

    Je compile avec MinGw sur W7... et quand je lance l'exécutable sous Xp, je me retrouve avec une erreur Visual

    J'en déduit qu'il faudra redistribuer MinGw avec mon exécutable

    Mais comment faire ?

    Merci

  9. #29
    Responsable Qt & Livres


    Avatar de dourouc05
    Homme Profil pro
    Ingénieur de recherche
    Inscrit en
    Août 2008
    Messages
    26 607
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur de recherche
    Secteur : Enseignement

    Informations forums :
    Inscription : Août 2008
    Messages : 26 607
    Points : 188 574
    Points
    188 574
    Par défaut
    Redistribuer MinGW est inutile . Par contre, tu as des paquets de redistribuables Visual C++, peut-être faut-il les installer ? (Jamais déployé avec MinGW .) Il me semble que leur bibliothèque standard (C et C++) est implémentée grâce à celle de Visual C++, il faut donc l'installer également (et non, pour allouer de la mémoire, malloc() est et reste une des manières les plus simples de faire… malheureusement ).

    Maintenant, il faut savoir précisément ce qu'il faut installer en plus . Probablement ça : http://www.microsoft.com/en-us/downl...s.aspx?id=5555 (VC 2010 SP0, apparemment). Sinon, c'est que c'est un autre . Il faut voir contre quoi la bibliothèque standard de MinGW a été compilée (voir avec Dependency Walker ?).
    Vous souhaitez participer aux rubriques Qt (tutoriels, FAQ, traductions) ou HPC ? Contactez-moi par MP.

    Créer des applications graphiques en Python avec PyQt5
    Créer des applications avec Qt 5.

    Pas de question d'ordre technique par MP !

  10. #30
    Membre régulier Avatar de Caxton
    Homme Profil pro
    Sans
    Inscrit en
    Janvier 2005
    Messages
    586
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Corrèze (Limousin)

    Informations professionnelles :
    Activité : Sans

    Informations forums :
    Inscription : Janvier 2005
    Messages : 586
    Points : 123
    Points
    123
    Par défaut
    Wah, je lis du chinoix

    Bon, on va y aller pas à pas

    Quelle test faire pour savoir ce que j'ai besoin avec MinGw ?

Discussions similaires

  1. [Wamp] wamp5 impossible à lancer
    Par zulot dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 2
    Dernier message: 17/09/2007, 18h40
  2. [Applet] Impossible à lancer
    Par JamesP dans le forum Applets
    Réponses: 5
    Dernier message: 15/11/2006, 21h20
  3. batch impossible à lancer
    Par leam69 dans le forum Delphi
    Réponses: 11
    Dernier message: 07/11/2006, 14h29
  4. Impossible lancer application en root
    Par alexp dans le forum Administration système
    Réponses: 15
    Dernier message: 26/04/2006, 23h52
  5. [ArchiveBuilder][JavaMail] exécution impossible...
    Par Gorthal dans le forum JBuilder
    Réponses: 7
    Dernier message: 10/01/2003, 10h12

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