开发者

How to build 32-bit Poco libraries on Mac OS?

开发者 https://www.devze.com 2023-03-24 11:43 出处:网络
I\'d like to build 32-bit Poco libraries on Mac OS (since I have other fixed 32-bit dependencies). By default, Poco only builds for the x86_64 target, however.

I'd like to build 32-bit Poco libraries on Mac OS (since I have other fixed 32-bit dependencies). By default, Poco only builds for the x86_64 target, however.

I tried building Poco like this (according to the Poco build instructions):

POCO_TARGET_OSARCH=i386 make

However, it still only builds for x86_64. Any ideas?

============================================

Well, it turns out the answer is this (in cas开发者_如何学运维e anyone else runs into this):

You need to export these two variables before running configure and make:

  POCO_TARGET_OSARCH="i386"
  ARCHFLAGS="-arch i386"


Poco now has a configuration to build 32-bit directly on Mac OS X. Specify --config=Darwin32 when running ./configure


You can try this :

  • gedit poco-1.4.1p1-all/build/config/Darwin
  • change these flags to your desired architecture ARCHFLAGS, POCO_TARGET_OSARCH

NOTE ./configure then only "make".

0

精彩评论

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