#14524 closed enhancement (fixed)

Document how to build wxOSX/Carbon with OSX 10.7

Reported by: mike_hore Owned by: csomor
Priority: low Milestone: 3.0.0
Component: documentation Version: stable-latest
Keywords: OSX 10.7 Carbon Cc:
Blocked By: Blocking:
Patch: no

Description

Using

../configure --enable-debug --enable-macosx_arch=i386 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk

make gives these error lines:

../src/png/png.c: In function ‘png_pow10’:
../src/png/png.c:1477: error: ‘DBL_MIN_10_EXP’ undeclared (first use in this function)
../src/png/png.c:1477: error: (Each undeclared identifier is reported only once
../src/png/png.c:1477: error: for each function it appears in.)
../src/png/png.c: In function ‘png_ascii_from_fp’:
../src/png/png.c:1513: error: ‘DBL_DIG’ undeclared (first use in this function)
../src/png/png.c:1529: error: ‘DBL_MIN’ undeclared (first use in this function)
../src/png/png.c:1529: error: ‘DBL_MAX’ undeclared (first use in this function)
make: * [wxpng_png.o] Error 1

Attachments (1)

carbon.patch download (1.2 KB) - added by mike_hore 21 months ago.
A patch to docs/osx/install.txt to give updated info on building for Carbon

Download all attachments as: .zip

Change History (10)

comment:1 Changed 21 months ago by csomor

  • Status changed from new to infoneeded_new

the current command line tools don't seem to work properly against a 10.6 SDK anymore, I had to use the tools from an XCode3 as well to make a build work, ie in my case where XCode is on my 10.6 partition named Macintosh-HD adding

CC=/Volumes/Macintosh-HD/XCode3/usr/bin/gcc-4.2 CXX=/Volumes/Macintosh-HD/XCode3/usr/bin/g++-4.2 LD=/Volumes/Macintosh-HD/XCode3/usr/bin/g++-4.2

did the trick - at least as of now - since the build is still in course, so if you have an xcode 3 on a partition somewhere, don't get rid of that yet ...

comment:2 Changed 21 months ago by mike_hore

Thanks csomor -- I do have XCode3 still around, so I'll try this when I get time. Just downloading OSX 10.8 now...

comment:3 Changed 21 months ago by mike_hore

  • Resolution set to fixed
  • Status changed from infoneeded_new to closed

Thanks, that worked!!

For the record, I'm running on OSX 10.8 now, and I've installed XCode 4.4, but I've kept my XCode 3 directory at /Developer-3.2.6.

Here's my configure line:

../configure --enable-debug --enable-macosx_arch=i386 --with-macosx-sdk=/Developer-3.2.6/SDKs/MacOSX10.6.sdk CC=/Developer-3.2.6/usr/bin/gcc-4.2 CXX=/Developer-3.2.6/usr/bin/g++-4.2 LD=/Developer-3.2.6/usr/bin/ld

This ticket can be closed now.

-- Mike.

comment:4 Changed 21 months ago by vadz

  • Component changed from build to documentation
  • Milestone changed from 2.9.5 to 3.0
  • Priority changed from high to low
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Summary changed from Carbon command-line builds fail under OSX 10.7 to Document how to build wxOSX/Carbon with OSX 10.7
  • Type changed from build error to enhancement

We need to update docs/osx/install.txt to explain this. If you could please submit a patch to this file with the necessary changes it would be really great.

Ideal would be to also update http://docs.wxwidgets.org/trunk/page_port.html#page_port_wxosx contents by changing docs/doxygen/mainpages/platdetails.h.

comment:5 Changed 21 months ago by mike_hore

OK, will do when I get a bit of time. Once done, I'll post a comment here.
-- Mike.

Changed 21 months ago by mike_hore

A patch to docs/osx/install.txt to give updated info on building for Carbon

comment:6 Changed 21 months ago by mike_hore

  • Resolution set to fixed
  • Status changed from reopened to closed

OK, I've just submitted a patch to install.txt to update the info on building for Carbon. That's all I'll have time to do.
Cheers, Mike Hore.

comment:7 Changed 21 months ago by csomor

  • Resolution fixed deleted
  • Status changed from closed to reopened

thanks

comment:8 Changed 21 months ago by csomor

  • Owner set to csomor
  • Status changed from reopened to accepted

comment:9 Changed 17 months ago by VZ

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [72959]) Document how to build wxOSX/Carbon under recent OS X.

Mention that Xcode 3 is needed for this.

Closes #14524.

Note: See TracTickets for help on using tickets.