[Pyobjc-dev] pyobjc install in mac 10.4.11 ppc => missing NSUInteger, pyobjc-compat.h ?
Brought to you by:
ronaldoussoren
|
From: denis <de...@t-...> - 2008-03-27 15:10:43
|
Folks,
during install pyobjc/* under mac 10.4.11 ppc with gcc 4.0.1 python
2.5.1, it seems that
typedef unsigned int NSUInteger;
etc. is not getting picked up from e.g.
pyobjc-core/Modules/objc/pyobjc-compat.h
This has 80 lines of #ifdefs which seem to skip over
#ifndef NSINTEGER_DEFINED
typedef int NSInteger;
typedef unsigned int NSUInteger;
#define NSIntegerMax LONG_MAX
#define NSIntegerMin LONG_MIN
#define NSUIntegerMax ULONG_MAX
#define NSINTEGER_DEFINED
...
g++ pyobjc-core/Modules/objc/test/specialtypecodes.m => 'NSUInteger'
undeclared ...
Adding these 6 lines hard fixed that
but then pyobjc-framework-Cocoa => same problem again --
...
building 'Foundation._nscoder' extension
g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c Modules/_Foundation_nscoder.m -o
build/temp.macosx-10.4-ppc-2.5/Modules/_Foundation_nscoder.o
-DBUILD_TIGER
Modules/_Foundation_nscoder.m:220: error: 'NSUInteger' undeclared (first
use in this function)
...
Anyone know how to fix this ?
Thanks,
cheers
-- denis
|