Compiling wxWidgets 2.9.0 under Snow Leopard 10.6.1 Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
igalic
In need of some credit
In need of some credit
Posts: 2
Joined: Wed Sep 23, 2009 3:51 pm
Location: Croatia

Compiling wxWidgets 2.9.0 under Snow Leopard 10.6.1

Post by igalic »

I've tried using several configuration options, but it doesn't help. For example:

./configure --with-osx_cocoa --with-macosx-version-min=10.6 --with-opengl --enable-unicode

I've tried with just this:

./configure --with-osx_cocoa

But it doesn't help.

Here is what I get:


../src/osx/cocoa/textctrl.mm: In function ‘void -[wxNSTextFieldEditor keyDown:](wxNSTextFieldEditor*, objc_selector*, 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*, objc_selector*, 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*, objc_selector*, 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*, objc_selector*, 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: *** [coredll_osx_cocoa_textctrl.o] Error 1


Any ideas?

Thanks,
Ivan Galic
NightIrion
www.nightirion.com
elliswr
Earned a small fee
Earned a small fee
Posts: 23
Joined: Sun Apr 05, 2009 2:39 am

Post by elliswr »

Try setting the arch flags. I compile on Snow leopard by setting these flags, then ./configure --enable_unicode --disable_shared, and it worked fine.

See the Wiki about setting arch flags.
Note: I did not use wxosx_cocoa. I used wxMac.
User avatar
tierra
Site Admin
Site Admin
Posts: 1355
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA

Post by tierra »

elliswr wrote:Note: I did not use wxosx_cocoa. I used wxMac.
This is a problem with wxOSX/Cocoa, not wxMac. There is no "wxMac" port in wxWidgets 2.9+ anymore, just wxOSX/Cocoa, and wxOSX/Carbon.

igalic's problem was in fact an error in wxWidgets code when 2.9.0 was released. It has been fixed in SVN already though. You will need to check out wxWidgets 2.9 from SVN trunk for wxOSX/Cocoa.
igalic
In need of some credit
In need of some credit
Posts: 2
Joined: Wed Sep 23, 2009 3:51 pm
Location: Croatia

Post by igalic »

Thanks!
Ivan Galic
NightIrion
www.nightirion.com