Problem compiling the last SVN version of WxWidgets on Mac OS X 10.6

25 views
Skip to first unread message

Josep Quereda

unread,
Jul 27, 2009, 9:14:47 AM7/27/09
to wx-...@googlegroups.com
I'm trying to compile the latest SVN version of WxWidgets on the
latest build for now of Mac OS X 10.6 Snow Leopard.

I'm compiling it from the build/ directory with the following
configure parameters:

../configure --enable-unicode --disable-shared --disable-debug --
disable-debug_gdb --with-osx_cocoa --with-macosx-version-min=10.5

Compilation fails with the following error:

Any idea to fix this? I'm doing anything wrong?

Thank you.


-DWXBUILDING -I/Users/josep/amule/wxWidgets-2.9.0/build/src/tiff/
libtiff -I../src/tiff/libtiff -I../src/regex -DwxUSE_BASE=0 -
D_FILE_OFFSET_BITS=64 -I/Users/josep/amule/wxWidgets-2.9.0/build/lib/
wx/include/osx_cocoa-unicode-release-static-2.9 -I../include -O2 -fno-
strict-aliasing ../src/osx/cocoa/stattext.mm
/Users/josep/amule/wxWidgets-2.9.0/build/bk-deps g++ -mmacosx-version-
min=10.5 -c -o corelib_osx_cocoa_textctrl.o -I./.pch/wxprec_corelib -
D__WXOSX_COCOA__ -DWXBUILDING -I/Users/josep/amule/wxWidgets-2.9.0/
build/src/tiff/libtiff -I../src/tiff/libtiff -I../src/regex -
DwxUSE_BASE=0 -D_FILE_OFFSET_BITS=64 -I/Users/josep/amule/
wxWidgets-2.9.0/build/lib/wx/include/osx_cocoa-unicode-release-
static-2.9 -I../include -O2 -fno-strict-aliasing ../src/osx/cocoa/
textctrl.mm
../src/osx/cocoa/textctrl.mm: In function ‘void -[wxNSTextFieldEditor
keyDown:](wxNSTextFieldEditor*, _message_ref_t*, NSEvent*)’:
../src/osx/cocoa/textctrl.mm:144: error: no matching function for call
to ‘wxWidgetImpl::FindFromWXWidget(objc_object*)’
../include/wx/osx/core/private.h:261: note: candidates are: static
wxWidgetImpl* wxWidgetImpl::FindFromWXWidget(NSView*)
../src/osx/cocoa/textctrl.mm: In function ‘void -[wxNSTextFieldEditor
keyUp:](wxNSTextFieldEditor*, _message_ref_t*, NSEvent*)’:
../src/osx/cocoa/textctrl.mm:153: error: no matching function for call
to ‘wxWidgetImpl::FindFromWXWidget(objc_object*)’
../include/wx/osx/core/private.h:261: note: candidates are: static
wxWidgetImpl* wxWidgetImpl::FindFromWXWidget(NSView*)
../src/osx/cocoa/textctrl.mm: In function ‘void -[wxNSTextFieldEditor
flagsChanged:](wxNSTextFieldEditor*, _message_ref_t*, NSEvent*)’:
../src/osx/cocoa/textctrl.mm:160: error: no matching function for call
to ‘wxWidgetImpl::FindFromWXWidget(objc_object*)’
../include/wx/osx/core/private.h:261: note: candidates are: static
wxWidgetImpl* wxWidgetImpl::FindFromWXWidget(NSView*)
../src/osx/cocoa/textctrl.mm: In function ‘void -[wxNSTextFieldEditor
insertText:](wxNSTextFieldEditor*, _message_ref_t*, objc_object*)’:
../src/osx/cocoa/textctrl.mm:173: error: no matching function for call
to ‘wxWidgetImpl::FindFromWXWidget(objc_object*)’
../include/wx/osx/core/private.h:261: note: candidates are: static
wxWidgetImpl* wxWidgetImpl::FindFromWXWidget(NSView*)
../src/osx/cocoa/textctrl.mm: In constructor
‘wxNSTextViewControl::wxNSTextViewControl(wxTextCtrl*, NSView*)’:
../src/osx/cocoa/textctrl.mm:321: warning: class 'NSView' does not
implement the 'NSTextViewDelegate' protocol
../src/osx/cocoa/textctrl.mm: In constructor
‘wxNSTextFieldControl::wxNSTextFieldControl(wxTextCtrl*, NSView*)’:
../src/osx/cocoa/textctrl.mm:436: warning: class 'NSView' does not
implement the 'NSTextFieldDelegate' protocol
make: *** [corelib_osx_cocoa_textctrl.o] Error 1

Stefan Csomor

unread,
Jul 28, 2009, 3:08:55 AM7/28/09
to wx-...@googlegroups.com
Hi

> ../src/osx/cocoa/textctrl.mm: In function ‘void -[wxNSTextFieldEditor
> keyDown:](wxNSTextFieldEditor*, _message_ref_t*, NSEvent*)’:
> ../src/osx/cocoa/textctrl.mm:144: error: no matching function for call
> to ‘wxWidgetImpl::FindFromWXWidget(objc_object*)’

these are fixed in trunk, but not in 2.9.0 just change the lines to

wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] )

to make this compile again under 10.6 with XCode 3.2

Best,

Stefan

Reply all
Reply to author
Forward
0 new messages