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 :

Probleme passage dynamique à statique


Sujet :

Qt

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    25
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 25
    Par défaut Probleme passage dynamique à statique
    Bonjour à tous,

    J'ai un problème incompréhensible.
    J'ai une interface faite avec Qt. Mes librairies sont dynamiques.
    Pour permettre l'utilisation de mon exe sur une autre machine sans Qt, j'ai utilisé Qt en statique (construit avec les aides de trolltech).
    Maintenant et après beaucoup d'efforts, mon projet compile. Mieux, mon appli se lance.
    Le problème est que si je lance quelque chose de cette applic (genre fichier->ouvrir), l'application se ferme brutalement (et j'insiste sur le brutalement ).
    Sachant que ca marche sans problème en dynamique, sauriez vous d'où cela peut venir?

    Une piste, l'interface dynamique et statique n'est pas la même, la statique semble bien plus "ancienne", plus moche.

    Merci d'avance.

  2. #2
    Membre très actif
    Avatar de FloMo
    Homme Profil pro
    Freelance iOS
    Inscrit en
    Juillet 2004
    Messages
    726
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Deux Sèvres (Poitou Charente)

    Informations professionnelles :
    Activité : Freelance iOS
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Juillet 2004
    Messages : 726
    Par défaut
    Quel OS ?

  3. #3
    yan
    yan est déconnecté
    Rédacteur
    Avatar de yan
    Homme Profil pro
    Ingénieur expert
    Inscrit en
    Mars 2004
    Messages
    10 035
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur expert
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Mars 2004
    Messages : 10 035
    Par défaut
    tu as des images?
    tu utilise des plugin?

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

    Informations forums :
    Inscription : Mars 2008
    Messages : 25
    Par défaut
    Bonjour, merci de votre aide.

    Je suis sous ubuntu.
    Je ne crois pas utiliser de plugins ni d'images externe si c'est ce que tu veux dire, yan.
    J'utilide seulement des fonctions des librairies core et gui ainsi que le moc de Qt (version 4.5).

    je vais essayer plus tard de donner des renseignements complémentaires (grace au debug) et de mettre les deux interfaces différentes en images.

    Le probleme peut il venir du fait que mes librairies statiques font appel à des librairies dynamiques normalement et que du coup, tout ne se passe pas comme prévu?

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    25
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 25
    Par défaut
    Rebonjour,
    j'ai des infos toutes fraiches concernant mon problème.
    Si je fais un ldd su rmon executable de mon projet.
    Cela m'affiche qu'il va me chercher les librairies dynamiques QtGui et QtCore deja installés par le biais d'un apt-get pour Qt.
    Et ce, meme si je link au sein d'un CMakeLists mon executable à mes librairies statiques.

    Ok je change donc mes noms de librairie statiques et la il semble les trouver.
    Quand je fais make, au moment du linking C++ de mon erreur, je recois beaucoup d'erreurs comme si mon executable ne trouvait pas des librairies. Je mets une partie de mes erreurs (le début seulement) :

    /home/jf/Bureau/trunk2/QT/lib/libMyQtCore.a(qfsfileengine_unix.o): In function `QFSFileEngine::owner(QAbstractFileEngine::FileOwner) const':
    qfsfileengine_unix.cpp.text+0xc7f): warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `sm_performSaveYourself(QSessionManagerPrivate*)':
    qapplication_x11.cpp.text+0x8fba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `sm_setProperty(char const*, char const*, int, SmPropValue*)':
    qapplication_x11.cpp.text+0x815): undefined reference to `SmcDeleteProperties'
    qapplication_x11.cpp.text+0x84e): undefined reference to `SmcSetProperties'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSessionManager::release()':
    qapplication_x11.cpp.text+0x89a): undefined reference to `SmcInteractDone'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSessionManager::allowsErrorInteraction()':
    qapplication_x11.cpp.text+0x9a0): undefined reference to `SmcInteractRequest'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSessionManager::allowsInteraction()':
    qapplication_x11.cpp.text+0xab8): undefined reference to `SmcInteractRequest'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSessionManager::~QSessionManager()':
    qapplication_x11.cpp.text+0xc36): undefined reference to `SmcCloseConnection'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSessionManager::~QSessionManager()':
    qapplication_x11.cpp.text+0xcd6): undefined reference to `SmcCloseConnection'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSessionManager::~QSessionManager()':
    qapplication_x11.cpp.text+0xd66): undefined reference to `SmcCloseConnection'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QSmSocketReceiver::socketActivated(int)':
    qapplication_x11.cpp.text+0xf4c): undefined reference to `SmcGetIceConnection'
    qapplication_x11.cpp.text+0xf64): undefined reference to `IceProcessMessages'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `qt_wstate_iconified(unsigned long)':
    qapplication_x11.cpp.text+0x14ab): undefined reference to `XGetWindowProperty'
    qapplication_x11.cpp.text+0x14dc): undefined reference to `XFree'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `qt_check_focus_model()':
    qapplication_x11.cpp.text+0x1624): undefined reference to `XGetInputFocus'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `qt_get_net_supported()':
    qapplication_x11.cpp.text+0x16fd): undefined reference to `XGetWindowProperty'
    qapplication_x11.cpp.text+0x170e): undefined reference to `XFree'
    qapplication_x11.cpp.text+0x17ff): undefined reference to `XGetWindowProperty'
    qapplication_x11.cpp.text+0x181f): undefined reference to `XFree'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `qt_get_net_virtual_roots()':
    qapplication_x11.cpp.text+0x1a1c): undefined reference to `XGetWindowProperty'
    qapplication_x11.cpp.text+0x1a2d): undefined reference to `XFree'
    qapplication_x11.cpp.text+0x1b0f): undefined reference to `XGetWindowProperty'
    qapplication_x11.cpp.text+0x1b2f): undefined reference to `XFree'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QApplication:11ClientMessage(QWidget*, _XEvent*, bool)':
    qapplication_x11.cpp.text+0x1dcf): undefined reference to `XSendEvent'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QApplication::beep()':
    qapplication_x11.cpp.text+0x1f3b): undefined reference to `XBell'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QApplication::syncX()':
    qapplication_x11.cpp.text+0x1f8b): undefined reference to `XSync'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QX11Data::findClientWindow(unsigned long, unsigned long, bool)':
    qapplication_x11.cpp.text+0x202e): undefined reference to `XGetWindowProperty'
    qapplication_x11.cpp.text+0x2041): undefined reference to `XFree'
    qapplication_x11.cpp.text+0x207d): undefined reference to `XQueryTree'
    qapplication_x11.cpp.text+0x20ea): undefined reference to `XFree'
    qapplication_x11.cpp.text+0x2107): undefined reference to `XFree'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `QApplication::topLevelAt(QPoint const&)':
    qapplication_x11.cpp.text+0x21a9): undefined reference to `XTranslateCoordinates'
    qapplication_x11.cpp.text+0x2321): undefined reference to `XTranslateCoordinates'
    /home/jf/Bureau/trunk2/QT/lib/libMyQtGui.a(qapplication_x11.o): In function `getXDefault(char const*, char const*, int*)':
    qapplication_x11.cpp.text+0x258c): undefined reference to `XGetDefault'

    J'ai l'impression qu'il ne linke pas avec certaines librairies du système.

Discussions similaires

  1. Probleme passage entre boite de dialogue
    Par kanabzh29 dans le forum MFC
    Réponses: 3
    Dernier message: 18/04/2006, 14h35
  2. Réponses: 2
    Dernier message: 27/08/2004, 11h57
  3. [langage] Probleme passage de variables entre modules
    Par Ludo167 dans le forum Langage
    Réponses: 4
    Dernier message: 13/08/2004, 12h25
  4. [struts] probleme champs dynamiques
    Par rocco dans le forum Struts 1
    Réponses: 28
    Dernier message: 07/06/2004, 21h26
  5. [LG]Problême Variable dynamique de types différents
    Par pierrOPSG dans le forum Langage
    Réponses: 2
    Dernier message: 29/04/2004, 16h01

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