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

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

I tried to build Poco like this (as per Poco build instructions):

POCO_TARGET_OSARCH=i386 make 

However, it is still only building for x86_64. Any ideas?

==============================================>

Well, it turns out that this is the answer (in case someone else comes across this):

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

  POCO_TARGET_OSARCH="i386" ARCHFLAGS="-arch i386" 
+7
source share
2 answers

Poco now has a configuration for 32-bit build directly on Mac OS X. Specify --config=Darwin32 at startup ./configure

+4
source

You can try the following:

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

NOTE ./configure, then only "make".

+1
source

All Articles