Compiling upnpx for Mac OSX

143 views
Skip to first unread message

HolyMac

unread,
Jul 3, 2012, 2:44:07 AM7/3/12
to up...@googlegroups.com
Hello,

i'm trying to compile the upnpx 1.2.4 library for OSX with xcode 4.3.3.
This question might sound silly, but is there any other switch if have to flip to get a macos library (besides the base sdk in the project & target settings)?
Currently my build fails due to "UIKit/UIKit.h" not being found in iphoneport.h, so i guess it still tries to compile for iphone.

Thanks in advance

HolyMac

Bruno Keymolen

unread,
Jul 3, 2012, 7:33:35 AM7/3/12
to up...@googlegroups.com
Hi, yes there is another little change you should make:


Non iOS targets: To make a lib to run on Mac OS X(10.5 or higher), change the User Header Search Path: "../../../src/port/ios" to "../../../src/port/macos". Also include the Cocoa framework instead of UIKit.


Good luck,

Bruno

HolyMac

unread,
Jul 8, 2012, 1:36:41 AM7/8/12
to up...@googlegroups.com
Hi Bruno,

thanks for your help. Do I have to change the User Header Search Path in project or target settings or both? Regardless of what I do, it never seems to switch between the different versions of iphoneport.h. Any more ideas? Or do you maybe have a macos sample project i could learn from?
Reply all
Reply to author
Forward
0 new messages