[Pyobjc-dev] Extending Cocoa application
Brought to you by:
ronaldoussoren
|
From: Vladimir P. <far...@gm...> - 2009-12-13 17:34:03
|
Hi all,
I have a problem with extending a Cocoa application. I've added
Python.framework and checked that the target application is linked
with it, however gcc fails to find both headers and library:
Ld build/Debug/Transmission.app/Contents/MacOS/Transmission normal x86_64
cd /Users/farcaller/Development/Hacks/Transmission
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot
/Developer/SDKs/MacOSX10.6.sdk
-L/Users/farcaller/Development/Hacks/Transmission/build/Debug
-Lthird-party/curl/lib -Lthird-party/openssl/lib
-F/Users/farcaller/Development/Hacks/Transmission/build/Debug -Fmacosx
-filelist /Users/farcaller/Development/Hacks/Transmission/build/Transmission.build/Debug/Transmission.build/Objects-normal/x86_64/Transmission.LinkFileList
-mmacosx-version-min=10.5 -framework Cocoa -framework IOKit
-ltransmission -lcrypto.0.9.7 -framework Sparkle -framework Growl
-lcurl.4 -framework Security -framework Carbon -framework Quartz
-framework Python -o
/Users/farcaller/Development/Hacks/Transmission/build/Debug/Transmission.app/Contents/MacOS/Transmission
Undefined symbols:
"_PyInitialize", referenced from:
-[PythonController init] in PythonController.o
"_PyFinalize", referenced from:
-[PythonController dealloc] in PythonController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Any hints for this one?
Also, can someone point me to any example of exposing ObjC class
instance to python code?
--
Sincerely,
Vladimir "Farcaller" Pouzanov
http://farcaller.net/
|