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

EDI/RAD Python Discussion :

[PyQt4] Problème installation Mac OS X 10.6.8


Sujet :

EDI/RAD Python

  1. #1
    Membre à l'essai
    Homme Profil pro
    Ingénieur étude et Développement
    Inscrit en
    Novembre 2011
    Messages
    21
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Ingénieur étude et Développement
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2011
    Messages : 21
    Points : 20
    Points
    20
    Par défaut [PyQt4] Problème installation Mac OS X 10.6.8
    Bonjour, je poste ici car j'ai un problème pour installer PyQt4 sur mon MacBook.

    J'ai suivi le tuto suivant : http://pyqt.developpez.com/faq/?page...aller-pyqt-osx

    En remplacant python3.1 par python3.2 car je n'ai que celui-ci, et j'ai vérifié PyQt4 est bien adapté a tout Python 3.x.

    J'ai donc installer SIP 4.13.1, aucun problèmes. Maintenant, au tour de PyQt4.

    J'ai installé Qt4, mais en voulant faire la première commande pour configurer PyQt4, j'avais une erreur (ne trouvait pas le qmake). J'ai donc installé par dessus Qt4 via MACPORTS, et maintenant, j'ai cette erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Determining the layout of your Qt installation...
    Error: Failed to determine the layout of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    Avec le --verbose :

    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
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    new-host-2:PyQt-mac-gpl-4.9 MaksOuw$ python3.2 configure.py -d /Library/Python/3.2/site-packages -b /usr/local/bin --use-arch i386 --verbose
    Determining the layout of your Qt installation...
    /opt/local/bin/qmake -spec macx-g++ -o qtdirs.mk qtdirs.pro
    make -f qtdirs.mk
    /usr/bin/g++-4.2 -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.6 -arch i386 -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I/opt/local/include/QtCore -I/opt/local/include -o qtdirs.o qtdirs.cpp
    /usr/bin/g++-4.2 -headerpad_max_install_names -arch x86_64 -arch i386 -Xarch_x86_64 -mmacosx-version-min=10.6 -o qtdirs.app/Contents/MacOS/qtdirs qtdirs.o     -L/opt/local/lib -lQtCore 
    ld: warning: in /opt/local/lib/libQtCore.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    Undefined symbols for architecture i386:
      "QString::free(QString::Data*)", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
      "QTextStream::operator<<(QString const&)", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
      "QLibraryInfo::location(QLibraryInfo::LibraryLocation)", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
      "QFile::~QFile()", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
      "QFile::open(QFlags<QIODevice::OpenModeFlag>)", referenced from:
          _main in qtdirs.o
      "QTextStream::operator<<(char const*)", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
      "QTextStream::~QTextStream()", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
      "QCoreApplication::QCoreApplication(int&, char**)", referenced from:
          _main in qtdirs.o
      "QFile::QFile(QString const&)", referenced from:
          _main in qtdirs.o
      "QCoreApplication::~QCoreApplication()", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
      "QString::fromAscii_helper(char const*, int)", referenced from:
          _main in qtdirs.o
      "QTextStream::QTextStream(QIODevice*)", referenced from:
          _main in qtdirs.o
      "QLibraryInfo::licensee()", referenced from:
          _main in qtdirs.o
      "QTextStream::operator<<(char)", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
          _main in qtdirs.o
      "QTextStream::operator<<(int)", referenced from:
          _main in qtdirs.o
          _main in qtdirs.o
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/folders/N-/N-hwImXiFPW2BZSEGIurD++++TI/-Tmp-//ccweImfe.out (No such file or directory)
    make: *** [qtdirs.app/Contents/MacOS/qtdirs] Error 1
    Error: Failed to determine the layout of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    Et j'ai beau chercher, fouiller le web entier, je trouve aucune solutions a ce problème. Vous auriez une solution pour moi ? Merci d'avance.

  2. #2
    Expert confirmé
    Homme Profil pro
    Inscrit en
    Septembre 2006
    Messages
    2 937
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations forums :
    Inscription : Septembre 2006
    Messages : 2 937
    Points : 4 358
    Points
    4 358
    Par défaut
    Citation Envoyé par MaksOuw Voir le message
    [CODE]new-host-2yQt-mac-gpl-4.9 MaksOuw$ python3.2 configure.py -d /Library/Python/3.2/site-packages -b /usr/local/bin --use-arch i386 --verbose
    Determining the layout of your Qt installation...
    /opt/local/bin/qmake -spec macx-g++ -o qtdirs.mk qtdirs.pro
    make -f qtdirs.mk
    /usr/bin/g++-4.2 -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.6 -arch i386 -Wall -W -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I/opt/local/include/QtCore -I/opt/local/include -o qtdirs.o qtdirs.cpp
    /usr/bin/g++-4.2 -headerpad_max_install_names -arch x86_64 -arch i386 -Xarch_x86_64 -mmacosx-version-min=10.6 -o qtdirs.app/Contents/MacOS/qtdirs qtdirs.o -L/opt/local/lib -lQtCore
    ld: warning: in /opt/local/lib/libQtCore.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
    Undefined symbols for architecture i386:
    d'un côté vous ne demandez que l'architecture i386, de l'autre vous demandez i386 (32 bits) et x86_64 (64 bits) pour l'un et rien que le 64 bits pour l'autre…
    mais vous ne spécifiez que l'architecture 64 bits dans le flag -X
    nettoyez vos paramètres et soyez consistant…

  3. #3
    Membre à l'essai
    Homme Profil pro
    Ingénieur étude et Développement
    Inscrit en
    Novembre 2011
    Messages
    21
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Ingénieur étude et Développement
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2011
    Messages : 21
    Points : 20
    Points
    20
    Par défaut
    Solution trouvée par moi même :

    Installer MacPorts

    Lancer un Shell

    Utiliser les commandes suivantes :
    sudo install port python32
    sudo install port py32-pyqt4

    Attendre qu'il installe PyQt4

    Voilà, c'est fait, vous pouvez installer Eric 5 !

  4. #4
    Expert éminent
    Avatar de tyrtamos
    Homme Profil pro
    Retraité
    Inscrit en
    Décembre 2007
    Messages
    4 462
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Var (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Retraité

    Informations forums :
    Inscription : Décembre 2007
    Messages : 4 462
    Points : 9 249
    Points
    9 249
    Billets dans le blog
    6
    Par défaut
    Bonjour,

    C'est effectivement une bonne solution, mais il faut mettre 'port' devant:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    sudo port install python32
    sudo port install py32-pyqt4
    Un expert est une personne qui a fait toutes les erreurs qui peuvent être faites, dans un domaine étroit... (Niels Bohr)
    Mes recettes python: http://www.jpvweb.com

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

Discussions similaires

  1. [MAC OS X] Problème installation Eclipse Helios
    Par arkhamon1 dans le forum Eclipse
    Réponses: 9
    Dernier message: 10/05/2011, 11h28
  2. Problème installation Filemaker Server 11 sur Mac
    Par eddy37fr dans le forum Autres SGBD
    Réponses: 0
    Dernier message: 02/05/2010, 18h09
  3. Réponses: 1
    Dernier message: 11/02/2010, 20h53
  4. problème installation Ogre sous mac
    Par shams dans le forum Ogre
    Réponses: 2
    Dernier message: 07/11/2007, 11h14
  5. Problème installation Mac OS X
    Par Aitone dans le forum Apple
    Réponses: 5
    Dernier message: 22/11/2006, 13h01

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