質問

うめに最新のプレビュー Qt4.6Snow Leopardには64ビットず重要な課題です。

http://qt.nokia.com/developer/qt-4.6-technology-preview#download-the-qt-4-1

今の私と同じようにしようとするうためのPyQt4.6最新のスナップショットからの川銀行です。しかし、コンパイラの出口、下記の問題:

g++ -c -pipe -fPIC -arch x86_64 -O2 -Wall -W -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/Users/drufat/Downloads/PyQt-mac-gpl-4.6-snapshot-20090914/qpy/QtCore -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/usr/local/Trolltech/Qt-4.6.0/mkspecs/default -I/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers -I/usr/local/Trolltech/Qt-4.6.0/include -F/Users/drufat/Downloads/PyQt-mac-gpl-4.6-snapshot-20090914/qpy/QtCore -F/usr/local/Trolltech/Qt-4.6.0/lib -o sipQtCoreQResource.o sipQtCoreQResource.cpp
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h: In copy constructor ‘QResource::QResource(const QResource&)’:
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:180: error: ‘QScopedPointer<T, Cleanup>::QScopedPointer(const QScopedPointer<T, Cleanup>&) [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]’ is private
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qresource.h:59: error: within this context
sipQtCoreQResource.cpp: In constructor ‘sipQResource::sipQResource(const QResource&)’:
sipQtCoreQResource.cpp:78: note: synthesized method ‘QResource::QResource(const QResource&)’ first required here 
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h: In static member function ‘static void QScopedPointerDeleter<T>::cleanup(T*) [with T = QResourcePrivate]’:
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:100:   instantiated from ‘QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]’
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qresource.h:59:   instantiated from here
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:59: error: invalid application of ‘sizeof’ to incomplete type ‘QResourcePrivate’ 
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:59: error: creating array with negative size (‘-0x00000000000000001’)
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:60: error: invalid application of ‘sizeof’ to incomplete type ‘QResourcePrivate’ 
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:60: error: creating array with negative size (‘-0x00000000000000001’)
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:62: warning: possible problem detected in invocation of delete operator:
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:54: warning: ‘pointer’ has incomplete type
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qresource.h:56: warning: forward declaration of ‘struct QResourcePrivate’
/usr/local/Trolltech/Qt-4.6.0/lib/QtCore.framework/Headers/qscopedpointer.h:62: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.

このエラーのPyQt4アクセスしようとしているプライベートメンバーのQt4。ではもとめPyQt4雪豹順調に進んでいるのでしょうか?

役に立ちましたか?

解決

64ビットPython 2.6.1でPyQt 4.6.2が動作するようになりました。ここに手順を掲載しました: http:/ /mpastell.com/2009/11/24/pyqt-4-6-2-with-snow-leopard/

他のヒント

の処んフィル(PyQtのメンテナ) 発行修正 昨日は、開発スナップショットを具体的には雪豹:

2009/09/14 12:12:49さらにフィル の修正に関しては、Snow Leopardには64ビット システム。追加 QObject.pyqtConfigure().

を使用していま昨日のPyQt?

このスレッドのmailinglist も特に面白いんです。

のPyQtコンパイルのトラブルが原因と考えられるユキヒョウのデフォルト64bit統の64/32ビジョンのPythonでは船舶です。

いかに捉えるかについては様々な行き違いを提出しに困るこmailinglistでも固定のばしてみて(仮)を再構築QtやPyQt(そしておそらくpython)32ビットのファッション(-m32コンパイラフラグ)が必要な場合れています。

homebrewプロジェクトのPyQtを使用することもできます:簡単なビルド、管理された依存関係。

MBP Unibody、すべて64ビットで正常に実行します。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top