-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/22/10 1:03 PM, Oliver Cordes wrote:
> Hi,
> 
> I was compiling qt4-mac yesterday version 4.6.2 and it worked well but I
> was not able to compile pyqt4-mac-py25 or pyqt4-mac-py26 ! So I switched
> back to qt4-mac 4.6.1 but got the same compilation error! 

That's probably actually good, in that the issue isn't due to the small
change in Qt4 from 4.6.1 to 4.6.2.  The Qt-4.5 -> 4.6 change, on the
other hand, seems to be what caused this issue.

My system is
> fink unstable on MacOS 10.6 64-bit
> 
> 
> ...
> g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -DQT_NO_DEBUG -DQT_CORE_LIB -I.
> -I/sw/src/fink.build/pyqt4-mac-py25-4.6-1/PyQt-mac-gpl-4.6/qpy/QtCore
> -I/sw/include/python2.5 -I/sw/lib/qt4-mac/mkspecs/default
> -I/sw/lib/qt4-mac/lib/QtCore.framework/Headers -I/sw/lib/qt4-mac/include
> -F/sw/src/fink.build/pyqt4-mac-py25-4.6-1/PyQt-mac-gpl-4.6/qpy/QtCore
> -F/sw/lib/qt4-mac/lib -o sipQtCoreQResource.o sipQtCoreQResource.cpp
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h: In copy constructor
> 'QResource::QResource(const QResource&)':
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:170: error:
> 'QScopedPointer<T, Cleanup>::QScopedPointer(const QScopedPointer<T,
> Cleanup>&) [with T = QResourcePrivate, Cleanup =
> QScopedPointerDeleter<QResourcePrivate>]' is private
> /sw/lib/qt4-mac/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
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h: In static member
> function 'static void QScopedPointerDeleter<T>::cleanup(T*) [with T =
> QResourcePrivate]':
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:100:   instantiated from
> 'QScopedPointer<T, Cleanup>::~QScopedPointer() [with T =
> QResourcePrivate, Cleanup = QScopedPointerDeleter<QResourcePrivate>]'
> /sw/lib/qt4-mac/lib/QtCore.framework/Headers/qresource.h:59:
> instantiated from here
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:59: error: invalid
> application of 'sizeof' to incomplete type 'QResourcePrivate'
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:59: error: creating
> array with negative size ('-0x00000000000000001')
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:60: error: invalid
> application of 'sizeof' to incomplete type 'QResourcePrivate'
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:60: error: creating
> array with negative size ('-0x00000000000000001')
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:62: warning: possible
> problem detected in invocation of delete operator:
> /sw/lib/qt4-mac/include/QtCore/qscopedpointer.h:54: warning: 'pointer'
> has incomplete type
> /sw/lib/qt4-mac/lib/QtCore.framework/Headers/qresource.h:56: warning:
> forward declaration of 'struct QResourcePrivate'
> /sw/lib/qt4-mac/include/QtCore/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.
> make[1]: *** [sipQtCoreQResource.o] Error 1
> make: *** [all] Error 2
> ### execution of /var/tmp/tmp.1.JsI4VG failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-pyqt4-mac-py25-4.6-1
> (Reading database ... 160084 files and directories currently installed.)
> Removing fink-buildlock-pyqt4-mac-py25-4.6-1 ...
> Failed: phase compiling: pyqt4-mac-py25-4.6-1 failed
> 
> 
> FYI,
> 
> dpkg -l sip-py25 sip-py25-bin
> 
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name           Version        Description
> +++-==============-==============-============================================
> ii  sip-py25       4.10-1         Create Python bindings for C and C++ Libs
> ii  sip-py25-bin   4.10-1         Create Python bindings for C and C++ Libs
> 
> 
> 
> both fresh recompiled !
> 
> I also got a interesting error message with a previous compiled version
> of pyqt4, starting some pyqt-application:
> 
> ocordes$ ./fv_qt.py
> Traceback (most recent call last):
>   File "./fv_qt.py", line 11, in <module>
>     from  PyQt4.QtCore import *
> RuntimeError: the sip module implements API v7.0 but the PyQt4.QtCore
> module requires API v6.0
> 
> 
> Anything, what I can do ?
> 
> 
> Cheers,
>       Oliver
> 
> 
> 
> 
> 
> 
I get the same error on 10.5.8/i386.  The package appears to require
updating from the maintainer; so there's really not much you can do
other than wait for an update.

Possibly you could downgrade your qt-mac to 4.5.2, but that will
probably cause other problems.

- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuCzBsACgkQB8UpO3rKjQ86KACfd6zueIeF31CTJi+YACikIarP
+d0AnRi6Dc4iliHnP2m3jXeUjRMKKDXD
=gIsO
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to