[ptx] OSX GTK Build!

Ippei UKAI ippei_ukai at mac.com
Mon Jun 7 23:34:32 BST 2004


I tried compiling hugin with wx-gtk(2.5) from Fink.
http://homepage.mac.com/ippei_ukai/temp/hugin2.pdf
It exits with Bus Error after a few second, but looks good anyway.
The version of hugin is Feb. 08 Snap, so as the previous wx-mac case in 
http://www.email-lists.org/pipermail/ptx/2004-May/001693.html .


What I did:
--------------------------------------------------------
1: Installed libraries required; most from Fink except Boost, Vigra, 
PanoramaTools
2: Install wxWindows-gtk and dependent packages via Fink. I recommend 
binary install if available. (available except wxgtk itself; install 
the others first from binary.) You also need gtk+2 and gtk+2-dev.
3: Modified ./configure of hugin (snap Feb08).
	$EXTRA_CFLAGS="$EXTRA_CFLAGS -O2
		 -I/sw/include -I/usr/local/include/boost-1_31 
-I/usr/local/include/pano12";
	wx-gtk-2.4 -> wx-gtk2d-2.5
	every wx-config -> /sw/bin/wx-config (I have another wx-config in 
/usr/local)
4: After ./configure, deleted makefile in src/PanoImage because I'm not 
interested in right now.
5: Changed codes where compiler complains. --mostly wx2.5 related. 
(http://homepage.mac.com/ippei_ukai/temp/hugingtk20040208.zip)
6: Somehow I compiled all!

7: lunch X11 in /Applications/Utilities
8: "cd src/hugin; ./hugin" in Terminal


Result:
---------------------------------------------------------
It displays the main window for a second (just enough time to drug the 
window to the centre of the display and take screenshot)


Left in Terminal:
----------------------------------------------------------
% ./hugin
Panorama obj created
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: wxColourDataBase::FindColour(): Please use 
wxColourDataBase::Find() instead
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.
[Debug] 21:49:16: 'wxCheckList' name is deprecated, use 
'wxCheckListBox' instead.

(hugin:21405): GLib-WARNING **: poll(2) failed due to: Invalid argument.
Bus error
%

Mac OS's Crash Report (only relevant parts):
-------------------------------------------------------------
Date/Time:      2004-06-07 21:49:18 +0100
OS Version:     10.3.4 (Build 7H63)
Report Version: 2

Command: hugin
Path:    ./hugin
Version: ??? (???)
PID:     21405
Thread:  0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000008

Thread 0 Crashed:
0   hugin                        	0x00008f80 
Server::OnServerEvent(wxSocketEvent&) + 0x10c
1   libwx_based-2.5.1.dylib      	0x05604f8c 
wxAppConsole::HandleEvent(wxEvtHandler*, void 
(wxEvtHandler::*)(wxEvent&), wxEvent&) const + 0x88 (appbase.cpp:289)
2   libwx_based-2.5.1.dylib      	0x0568b8cc 
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) + 0x118 (event.cpp:1169)
3   libwx_based-2.5.1.dylib      	0x0568aa30 
wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 0x120 
(event.cpp:837)
4   libwx_based-2.5.1.dylib      	0x0568bbe4 
wxEvtHandler::ProcessEvent(wxEvent&) + 0x198 (event.cpp:1231)
5   libwx_based-2.5.1.dylib      	0x0568b744 
wxEvtHandler::ProcessPendingEvents() + 0xe0 (event.cpp:1123)
6   libwx_based-2.5.1.dylib      	0x05604e8c 
wxAppConsole::ProcessPendingEvents() + 0xbc (appbase.cpp:266)
7   libwx_gtk2d_core-2.5.1.dylib 	0x09804cec wxapp_pending_callback + 
0x64 (app.cpp:203)
8   libglib-2.0.0.dylib          	0xefe706b4 g_main_dispatch + 0x1dc
9   libglib-2.0.0.dylib          	0xefe70bd4 g_main_context_iterate + 
0x3dc
10  libglib-2.0.0.dylib          	0xefe6d3d4 g_main_loop_run + 0x614
11  libgtk-x11-2.0.0.dylib       	0xefa92030 gtk_main + 0xfc
12  libwx_gtk2d_core-2.5.1.dylib 	0x0981f860 wxEventLoop::Run() + 0x10c 
(evtloop.cpp:89)
13  libwx_gtk2d_core-2.5.1.dylib 	0x098983f8 wxAppBase::MainLoop() + 
0xb0 (appcmn.cpp:262)
14  libwx_gtk2d_core-2.5.1.dylib 	0x09898668 wxAppBase::OnRun() + 0x58 
(appcmn.cpp:330)
15  libwx_based-2.5.1.dylib      	0x0563f6e4 wxEntry(int&, char**) + 
0xbc (init.cpp:408)
16  hugin                        	0x00002928 main + 0x18
17  hugin                        	0x00002290 _start + 0x188 (crt.c:267)
18  dyld                         	0x8fe1a558 _dyld_start + 0x64

PPC Thread State:
   srr0: 0x00008f80 srr1: 0x0000f030                vrsave: 0x00000000
     cr: 0x42008442  xer: 0x00000007   lr: 0x00008f7c  ctr: 0x9000332c
     r0: 0x00008f7c   r1: 0xbffff460   r2: 0x00000000   r3: 0x00000000
     r4: 0x01451050   r5: 0x00000000   r6: 0x00000000   r7: 0x01455a30
     r8: 0x05708744   r9: 0x09a71720  r10: 0x01500a20  r11: 0x00000000
    r12: 0x00000000  r13: 0x00000000  r14: 0x00000000  r15: 0x00000000
    r16: 0x00000000  r17: 0x00000000  r18: 0xefec84a4  r19: 0xefec84a4
    r20: 0xefec849c  r21: 0xefec84a0  r22: 0x00000000  r23: 0x0120ca60
    r24: 0x00000000  r25: 0x00000000  r26: 0x014090d0  r27: 0x0126d400
    r28: 0xbffff4a0  r29: 0x000f8034  r30: 0x000f8034  r31: 0x00008e7c

Binary Images Description:
     0x1000 -   0x159fff hugin 	./hugin
   0x244000 -   0x246fff libgthread-2.0.0.dylib 
	/sw/lib/libgthread-2.0.0.dylib
   0x273000 -   0x274fff pango-basic-xft.so 
	/sw/lib/pango/1.2.0/modules/pango-basic-xft.so
   0x277000 -   0x288fff libwx_based_xml-2.5.1.dylib 
	/sw/lib/libwx_based_xml-2.5.1.dylib
   0x2b0000 -   0x2cafff libjpeg.62.dylib 	/sw/lib/libjpeg.62.dylib
   0x438000 -   0x45ffff libpangoft2-1.0.0.dylib 
	/sw/lib/libpangoft2-1.0.0.dylib
   0x46b000 -   0x492fff libpng.3.dylib 	/sw/lib/libpng.3.dylib
   0x605000 -   0x643fff libtiff.3.dylib 	/sw/lib/libtiff.3.dylib
   0x6af000 -   0x6cbfff libexpat.0.dylib 	/sw/lib/libexpat.0.dylib
  0x1008000 -  0x1036fff libwx_based_net-2.5.1.dylib 
	/sw/lib/libwx_based_net-2.5.1.dylib
  0x2008000 -  0x208afff libwx_gtk2d_adv-2.5.1.dylib 
	/sw/lib/libwx_gtk2d_adv-2.5.1.dylib
  0x3517000 -  0x3567fff libwx_gtk2d_xrc-2.5.1.dylib 
	/sw/lib/libwx_gtk2d_xrc-2.5.1.dylib
  0x4a27000 -  0x4aa4fff libwx_gtk2d_html-2.5.1.dylib 
	/sw/lib/libwx_gtk2d_html-2.5.1.dylib
  0x5602000 -  0x56eefff libwx_based-2.5.1.dylib 
	/sw/lib/libwx_based-2.5.1.dylib
  0x97f4000 -  0x9a25fff libwx_gtk2d_core-2.5.1.dylib 
	/sw/lib/libwx_gtk2d_core-2.5.1.dylib
0x849c0000 - 0x849f9fff libfreetype.6.dylib 
	/usr/X11R6/lib/libfreetype.6.dylib
0x84ac0000 - 0x84adafff libfontconfig.1.dylib 
	/usr/X11R6/lib/libfontconfig.1.dylib
0x84b60000 - 0x84b79fff libexpat.1.dylib 
	/usr/X11R6/lib/libexpat.1.dylib
0x84be0000 - 0x84be5fff libXrender.1.dylib 
	/usr/X11R6/lib/libXrender.1.dylib
0x84c10000 - 0x84c11fff libXrandr.2.dylib 
	/usr/X11R6/lib/libXrandr.2.dylib
0x85a50000 - 0x85a5cfff libXft.2.dylib 	/usr/X11R6/lib/libXft.2.dylib
0x85c90000 - 0x85c9bfff libXext.6.dylib 	/usr/X11R6/lib/libXext.6.dylib
0x85ef0000 - 0x85fbbfff libX11.6.dylib 	/usr/X11R6/lib/libX11.6.dylib
0x8fe00000 - 0x8fe4ffff dyld 	/usr/lib/dyld
.
.
.
0xef9e5000 - 0xefc30fff libgtk-x11-2.0.0.dylib 
	/sw/lib/libgtk-x11-2.0.0.dylib
0xefc9f000 - 0xefd0dfff libgdk-x11-2.0.0.dylib 
	/sw/lib/libgdk-x11-2.0.0.dylib
0xefd2f000 - 0xefd47fff libatk-1.0.0.dylib 	/sw/lib/libatk-1.0.0.dylib
0xefd52000 - 0xefd78fff libpangoxft-1.0.0.dylib 
	/sw/lib/libpangoxft-1.0.0.dylib
0xefd92000 - 0xefdadfff libgdk_pixbuf-2.0.0.dylib 
	/sw/lib/libgdk_pixbuf-2.0.0.dylib
0xefdb7000 - 0xefdc0fff libpangox-1.0.0.dylib 
	/sw/lib/libpangox-1.0.0.dylib
0xefdc6000 - 0xefdf4fff libpango-1.0.0.dylib 
	/sw/lib/libpango-1.0.0.dylib
0xefe10000 - 0xefe11fff libgmodule-2.0.0.dylib 
	/sw/lib/libgmodule-2.0.0.dylib
0xefe14000 - 0xefe44fff libgobject-2.0.0.dylib 
	/sw/lib/libgobject-2.0.0.dylib
0xefe52000 - 0xefec7fff libglib-2.0.0.dylib 	/sw/lib/libglib-2.0.0.dylib
0xefedc000 - 0xefee0fff libintl.1.dylib 	/sw/lib/libintl.1.dylib
0xefef0000 - 0xeffc4fff libiconv.2.dylib 	/sw/lib/libiconv.2.dylib


Good luck for others.


  >>> 鵜飼 一平  (UKAI Ippei)  >>>>>>>>>>>>>>>>>>>>>>>>>
   My general e-mail and AIM:  ippei_ukai at mac.com
   Homepage:  http://homepage.mac.com/ippei_ukai/
  



More information about the ptX mailing list