Opened 11 years ago

Closed 11 years ago

#40007 closed defect (fixed)

wxWidgets-python +carbon: Build failure

Reported by: frozencemetery (Robbie Harwood) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: cooljeanius (Eric Gallager), mojca (Mojca Miklavec)
Port: wxWidgets-python

Description

Mac OS 0.8, gcc is 4.7.3, clang is 3.3. With the +gtk variant specified instead, wxWidgets-python builds and installs without a hitch. If there's any more information I can provide, please let me know.

$ sudo port -v install wxWidgets-python +carbon
--->  Computing dependencies for wxWidgets-python..
--->  Dependencies to be installed: pkgconfig
--->  Building wxWidgets-python
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-python/wxWidgets-python/work/wxPython-src-2.8.12.0/build'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-python/wxWidgets-python/work/wxPython-src-2.8.12.0/build/bk-deps /usr/bin/clang++ -c -o monodll_dynlib.o -I./.pch/wxprec_monodll -D__WXMAC__     -DWXBUILDING      -I../src/regex  -DwxUSE_BASE=1 -DWXMAKINGDLL -dynamic -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-python/wxWidgets-python/work/wxPython-src-2.8.12.0/build/lib/wx/include/mac-unicode-release-2.8 -I../include -fpascal-strings -I../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -I/opt/local/include -arch i386 -I/opt/local/include -DWX_PRECOMP -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -pipe -Os -arch i386 -arch i386 -fno-common ../src/common/dynlib.cpp
In file included from ../src/common/dynlib.cpp:48:
In file included from ../include/wx/mac/private.h:4:
../include/wx/mac/carbon/private.h:617:18: warning: unused variable 'err' [-Wunused-variable]
        OSStatus err = GetData<T>( inPartCode , inTag , &value );
                 ^
../include/wx/mac/carbon/private.h:1375:16: error: use of undeclared identifier 'QDGetPictureBounds'; did you mean 'wxMacGetPictureBounds'?
        return QDGetPictureBounds( pict , rect );
               ^~~~~~~~~~~~~~~~~~
               wxMacGetPictureBounds
../include/wx/mac/carbon/private.h:1373:18: note: 'wxMacGetPictureBounds' declared here
    inline Rect* wxMacGetPictureBounds( PicHandle pict , Rect* rect )
                 ^
../include/wx/mac/carbon/private.h:1459:9: error: unknown type name 'Cursor'
typedef Cursor ClassicCursor;
        ^
1 warning and 2 errors generated.
make: *** [monodll_dynlib.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-python/wxWidgets-python/work/wxPython-src-2.8.12.0/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-python/wxWidgets-python/work/wxPython-src-2.8.12.0/build" && /usr/bin/make -w 
Exit code: 2
Error: org.macports.build for port wxWidgets-python returned: command execution failed
Warning: targets not executed for wxWidgets-python: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port wxWidgets-python for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_wxWidgets-python/wxWidgets-python/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port wxWidgets-python failed
$ 

Attachments (1)

main.log (109.1 KB) - added by frozencemetery (Robbie Harwood) 11 years ago.
main.log

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Summary: Build failure with variant +carbonwxWidgets-python +carbon: Build failure

Thanks for the ticket. Please clean, try again, and attach the complete main.log file.

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Changed 11 years ago by frozencemetery (Robbie Harwood)

Attachment: main.log added

main.log

comment:3 Changed 11 years ago by frozencemetery (Robbie Harwood)

My apologies. Please find main.log attached. Hope that's helpful.

comment:4 Changed 11 years ago by mojca (Mojca Miklavec)

Did wxWidgets-python 2.8 ever work on 10.8? I wouldn't expect it to work, at least not the so called "carbon" (native Mac) variant.

comment:5 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:6 in reply to:  4 Changed 11 years ago by frozencemetery (Robbie Harwood)

Replying to mojca@…:

Did wxWidgets-python 2.8 ever work on 10.8? I wouldn't expect it to work, at least not the so called "carbon" (native Mac) variant.

No idea, sorry. This is my first attempt to get wxWidgets installed.

comment:7 Changed 11 years ago by mojca (Mojca Miklavec)

In that case probably the best thing that one can do is to change the Portfile to prevent compilation on systems without SDK for 10.6 or earlier. Which is probably not exactly what you were looking for. (If I am wrong and wxPython can be complied on 10.8, someone please correct me.)

What really needs to be done with higher priority is to fix wxPython 2.9.

comment:8 Changed 11 years ago by mojca (Mojca Miklavec)

Are you willing to test py-wxpython-3.0 and wxPython-3.0 from https://svn.macports.org/repository/macports/users/mojca/wxports? (Please deactivate any wxWidgets/wxWidgets-devel/wxWidgets30 before installing the two ports. You can activate them again later.)

comment:9 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed
Version: 2.2.0

The changes in r110279 should fix the problem. Not in the sense that you would be able to build the Carbon-flavoured wxPython 2.8 on 10.8, but in the sense that you shouldn't be allowed to build one for 2.8 other than with GTK, while you should be able to build Cocoa-based wxPython 2.9. In case you are still experiencing problems, please don't hesitate to file another ticket.

Note: See TracTickets for help on using tickets.