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.