Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KAn Peng

macrumors newbie
Original poster
Jan 3, 2009
1
0
Hi all,

I have complied the static glib Library on command line like:
./configure --enable-static
make
make install

then I want to use the static glib Library on my iphone app project, I set head file path and lib file path on project,and add -lglib-2.0 on other link flags

when I run the demon project on simulator , interrupt, error information like follows:

Attaching to program: `/Users/apple/Library/Application Support/iPhone Simulator/User/Applications/8C5963E6-590F-4434-96C6-1B4F616ACA0A/testglib.app/testglib', process 48361.
Re-enabling shared library breakpoint 1
dyld: Symbol not found: _SCDynamicStoreCopyConsoleUser
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration

I can't go on, who have any idear?
Thanks!
 
If you're using a generic makefile to compile for the iPhone, I doubt that'd work. Try making it into an Xcode project and compile it there (for the iPhone).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.