#14524: Carbon command-line builds fail under OSX 10.7

24 views
Skip to first unread message

wxTrac

unread,
Jul 25, 2012, 10:04:57 PM7/25/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524>

#14524: Carbon command-line builds fail under OSX 10.7
-----------------------------+----------------------------------------------
Reporter: mike_hore | Owner:
Type: build error | Status: new
Priority: high | Milestone: 2.9.5
Component: build | Version: 2.9-svn
Keywords: OSX 10.7 Carbon | Blockedby:
Patch: 0 | Blocking:
-----------------------------+----------------------------------------------
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


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524>

wxTrac

unread,
Jul 26, 2012, 5:41:08 AM7/26/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:1>

#14524: Carbon command-line builds fail under OSX 10.7
-----------------------------+----------------------------------------------
Reporter: mike_hore | Owner:
Type: build error | Status: infoneeded_new
Priority: high | Milestone: 2.9.5
Component: build | Version: 2.9-svn
Keywords: OSX 10.7 Carbon | Blockedby:
Patch: 0 | Blocking:
-----------------------------+----------------------------------------------
Changes (by csomor):

* status: new => infoneeded_new


Comment:

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 ...


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:1>

wxTrac

unread,
Jul 27, 2012, 11:49:37 PM7/27/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:2>

#14524: Carbon command-line builds fail under OSX 10.7
-----------------------------+----------------------------------------------
Reporter: mike_hore | Owner:
Type: build error | Status: infoneeded_new
Priority: high | Milestone: 2.9.5
Component: build | Version: 2.9-svn
Keywords: OSX 10.7 Carbon | Blockedby:
Patch: 0 | Blocking:
-----------------------------+----------------------------------------------

Comment(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...


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:2>

wxTrac

unread,
Jul 31, 2012, 12:37:06 AM7/31/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:3>

#14524: Carbon command-line builds fail under OSX 10.7
--------------------------+-------------------------------------------------
Reporter: mike_hore | Owner:
Type: build error | Status: closed
Priority: high | Milestone: 2.9.5
Component: build | Version: 2.9-svn
Resolution: fixed | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
--------------------------+-------------------------------------------------
Changes (by mike_hore):

* status: infoneeded_new => closed
* resolution: => fixed


Comment:

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.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:3>

wxTrac

unread,
Jul 31, 2012, 6:14:13 AM7/31/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:4>

#14524: Document how to build wxOSX/Carbon with OSX 10.7
----------------------------+-----------------------------------------------
Reporter: mike_hore | Owner:
Type: enhancement | Status: reopened
Priority: low | Milestone: 3.0
Component: documentation | Version: 2.9-svn
Resolution: | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
----------------------------+-----------------------------------------------
Changes (by vadz):

* status: closed => reopened
* type: build error => enhancement
* component: build => documentation
* priority: high => low
* milestone: 2.9.5 => 3.0
* resolution: fixed =>


Comment:

We need to update `docs/osx/install.txt` to explain this. If you could
please [HowToSubmitPatches 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`.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:4>

wxTrac

unread,
Aug 3, 2012, 12:04:01 AM8/3/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:5>

#14524: Document how to build wxOSX/Carbon with OSX 10.7
----------------------------+-----------------------------------------------
Reporter: mike_hore | Owner:
Type: enhancement | Status: reopened
Priority: low | Milestone: 3.0
Component: documentation | Version: 2.9-svn
Resolution: | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
----------------------------+-----------------------------------------------

Comment(by mike_hore):

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


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:5>

wxTrac

unread,
Aug 3, 2012, 10:56:37 PM8/3/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:6>

#14524: Document how to build wxOSX/Carbon with OSX 10.7
----------------------------+-----------------------------------------------
Reporter: mike_hore | Owner:
Type: enhancement | Status: closed
Priority: low | Milestone: 3.0
Component: documentation | Version: 2.9-svn
Resolution: fixed | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
----------------------------+-----------------------------------------------
Changes (by mike_hore):

* status: reopened => closed
* resolution: => fixed


Comment:

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.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:6>

wxTrac

unread,
Aug 4, 2012, 2:42:34 AM8/4/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:7>

#14524: Document how to build wxOSX/Carbon with OSX 10.7
----------------------------+-----------------------------------------------
Reporter: mike_hore | Owner:
Type: enhancement | Status: reopened
Priority: low | Milestone: 3.0
Component: documentation | Version: 2.9-svn
Resolution: | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
----------------------------+-----------------------------------------------
Changes (by csomor):

* status: closed => reopened
* resolution: fixed =>


Comment:

thanks


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:7>

wxTrac

unread,
Aug 4, 2012, 2:42:40 AM8/4/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:8>

#14524: Document how to build wxOSX/Carbon with OSX 10.7
----------------------------+-----------------------------------------------
Reporter: mike_hore | Owner: csomor
Type: enhancement | Status: accepted
Priority: low | Milestone: 3.0
Component: documentation | Version: 2.9-svn
Resolution: | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
----------------------------+-----------------------------------------------
Changes (by csomor):

* owner: => csomor
* status: reopened => accepted



--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:8>

wxTrac

unread,
Nov 15, 2012, 1:45:44 PM11/15/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:9>

#14524: Document how to build wxOSX/Carbon with OSX 10.7
----------------------------+-----------------------------------------------
Reporter: mike_hore | Owner: csomor
Type: enhancement | Status: closed
Priority: low | Milestone: 3.0
Component: documentation | Version: 2.9-svn
Resolution: fixed | Keywords: OSX 10.7 Carbon
Blockedby: | Patch: 0
Blocking: |
----------------------------+-----------------------------------------------
Changes (by VZ):

* status: accepted => closed
* resolution: => fixed


Comment:

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

Mention that Xcode 3 is needed for this.

Closes #14524.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14524#comment:9>
Reply all
Reply to author
Forward
0 new messages