开发者

Force libpq to compile with 10.5

I need to compile libpq with 10.5 for using later in the simulator.

I can use the libpq in the device without problems.

I'm forcing with this:

make clean && ./configure CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk" && make -C src/interfaces/lib开发者_运维问答pq

but I'm getting the error:

ld: library not found for - 

This library doesn't exist in the MacOSX10.5 folder, well, it doesn't exist in my entire hard drive.

thanks,

m.

OS X 10.6.2
XCode 3.2.1 64 bits


ok, now it works:

 -mmacosx-version-min=10.5

make clean && ./configure CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" && make -C src/interfaces/libpq


Here is a link to a question I asked while back that might be nice to have as part of this question.

Connect iPhone App to PostgreSQL Using Libpq

Also a link that had the info I used to figure out how to do it.

http://cocoawithlove.com/2009/09/building-for-earlier-os-versions-in.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜