Overview
Features
Download
Documentation
Community
Add-Ons & Services

Building with Darwin config defaults to x86_64?

Please post support and help requests here.

Building with Darwin config defaults to x86_64?

Postby francisr » 14 Nov 2009, 15:14

On MacOSX Snow Leopard, when making a Poco build using the Darwin config the created lib files have the 64 bit architecture (x86_64). How can I make 32-bit builds?

Grts,
Francis
francisr
 
Posts: 21
Joined: 09 Dec 2007, 13:19

Re: Building with Darwin config defaults to x86_64?

Postby francisr » 14 Nov 2009, 17:01

I found a solution.

The problem is that when the architecture is not specified Snow Leopard defaults to 64-bit, while older versions of the OS default to 32-bit. In the Poco build system, the Darwin config file does not specify the architecture, so it picks 64 bit.

My solution was to copy the Darwin_x86_64 config file over the Darwin file and replace the textual instances of 'x86_64' with 'i386'. This forces a 32 bit build.

A somewhat hackish solution though, let me know if it can be done in a cleaner way...
francisr
 
Posts: 21
Joined: 09 Dec 2007, 13:19


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests