Building Lazarus on MacOS X lazarus / 1-Linux ---------------------------------------------------------------------- markw · 2004-08-29 01:48 After spending much of today on this I finally figured out how to build Lazarus on MacOS X.  It was very gratifying to see Lazarus come up under X11.  I compiled a simple form and executed it.  It worked fine.  I compiled another form and tried to run it and Lazarus locked up.  I killed the X11 session.  Lazarus won't start now.  Hmmm. Anyone think of some file lock or something I need to fix??  Suggestions? Also the build of startlazarus failed - see below.  To all the Lazarus developers out there - Wow! what a great product!  Thanks. Mark Wrenn Binary Theory, Inc.  make startlazarus /usr/local/bin/ppcppc -gl -Fulcl/units/powerpc/darwin -Fulcl/units/powerpc/darwin/gtk -Fucomponents/units/powerpc/darwin -Fucomponents/custom -Fucomponents/mpaslex -Fuideintf/units/powerpc/darwin -Fudesigner -Fudesigner/units -Fudebugger -Fupackager -Fupackager/units/powerpc/darwin -Fu. -Fu/usr/local/lib/fpc/1.9.5/units/darwin/rtl -Fu/usr/local/lib/fpc/1.9.5/units/darwin/paszlib -Fu/usr/local/lib/fpc/1.9.5/units/darwin/netdb -Fu/usr/local/lib/fpc/1.9.5/units/darwin/libasync -Fu/usr/local/lib/fpc/1.9.5/units/darwin/pthreads -Fu/usr/local/lib/fpc/1.9.5/units/darwin/fcl -Fu/usr/local/lib/fpc/1.9.5/units/darwin/regexpr -Fu/usr/local/lib/fpc/1.9.5/units/darwin/pasjpeg -Fu/usr/local/lib/fpc/1.9.5/units/darwin/mysql -Fu/usr/local/lib/fpc/1.9.5/units/darwin/ibase -Fu/usr/local/lib/fpc/1.9.5/units/darwin/sqlite -Fidebugger -Fidesigner -Fipackager -Fiinclude -Fiinclude/darwin -FE. -dpowerpc startlazarus.lpr Free Pascal Compiler version 1.9.5 [2004/08/20] for powerpc Copyright (c) 1993-2004 by Florian Klaempfl Target OS: Darwin for PowerPC Compiling startlazarus.lpr Assembling startlazarus Linking ./startlazarus /usr/bin/ld: can't locate file for: -lX11 startlazarus.lpr(30,1) Error: Error while linking Closing script ./ppas.sh make[1]: *** [startlazarus] Error 1 make: *** [starter] Error 2 ---------------------------------------------------------------------- markw · 2004-08-29 19:00 Well after doing some reading and thinking I found that if I erase the contents of the .lazarus directory in my Home directory then Lazarus will start back up again. I'm finding that under MacOS X Lazarus is locking up quite frequently.  After a lock up I usually have to erase the contents of .lazarus ---------------------------------------------------------------------- mattias · 2004-08-30 11:44 There was a bug in saving controls with custom data, like TImage. That was fixed. But I wonder about the hang up and remove of the .lazarus directory. Can you start lazarus in gdb and send me the backtrace? []$ cd /your/lazarus/path/ []$ gdb lazarus break FPC_RAISEEXCEPTION run When lazarus hangs, focus the terminal and press Ctrl+C to stop the program via gdb. Then output the backtrace in gdb: bt ---------------------------------------------------------------------- markw · 2004-08-30 17:55 OK.  Will try gdb tonight. ---------------------------------------------------------------------- Anonymous · 2004-08-31 05:31 OK...Lazarus hung up again.  Here's the backtrace.  BTW, I grabbed the latest source tonight and rebuilt before running this experiment. (gdb) Quit (gdb) backtrace #0  0x0058c7d0 in fpc_raiseexception () #1  0x004ffce4 in SYSUTILS_STRTOFLOAT$ANSISTRING () #2  0x004f1c8c in STRTODOUBLE (S=0x0) at lclproc.pas:703 #3  0x000961e4 in TCALCEDIT__GETASFLOAT (this=0x3570d38) at editbtn.pas:905 #4  0x004e75d4 in TYPINFO_GETFLOATPROP$TOBJECT$PPROPINFO () #5  0x0035b2f4 in TPROPERTYEDITOR__GETFLOATVALUEAT (INDEX=0, this=0x3271374) at propedits.pp:2155 #6  0x0035b220 in TPROPERTYEDITOR__GETFLOATVALUE (this=0x3271374) at propedits.pp:1947 #7  0x0035ee0c in TFLOATPROPERTYEDITOR__GETVALUE (this=0x3271374) at propedits.pp:2884 #8  0x0035c3e4 in TPROPERTYEDITOR__GETVISUALVALUE (this=0x3271374) at propedits.pp:2342 #9  0x0035d734 in TPROPERTYEDITOR__PROPDRAWVALUE (ACANVAS=0x2a9a614, ARECT={LEFT = 110, TOP = 66, RIGHT = 208, BOTTOM = 88, TOPLEFT = {X = 110, Y = 66}, BOTTOMRIGHT = {X = 208, Y = 88}}, ASTATE=Invalid C/C++ type code 10 in symbol table. ) at propedits.pp:2609 #10 0x00371930 in TOICUSTOMPROPERTYGRID__PAINTROW (AROW=3, this=0x35e6ce8) at objectinspector.pp:1641 #11 0x00371c30 in TOICUSTOMPROPERTYGRID__DOPAINT (PAINTONLYCHANGEDVALUES=false, this=0x35e6ce8) at objectinspector.pp:1667 #12 0x00371e4c in TOICUSTOMPROPERTYGRID__PAINT (this=0x35e6ce8) at objectinspector.pp:1692 #13 0x004919f4 in TCUSTOMCONTROL__PAINTWINDOW (DC=43815572, this=0x35e6ce8) at customcontrol.inc:113 #14 0x004808f0 in TWINCONTROL__PAINTHANDLER (THEMESSAGE={MSG = 1056, DC = 43815572, PAINTSTRUCT = 0x2e0c134, RESULT = 0}, this=0x35e6ce8) at wincontrol.inc:1490 #15 0x00484678 in TWINCONTROL__WMPAINT (MSG={MSG = 1056, DC = 43815572, PAINTSTRUCT = 0x2e0c134, RESULT = 0}, this=0x35e6ce8) at wincontrol.inc:2963 #16 0x00491900 in TCUSTOMCONTROL__WMPAINT (MESSAGE={MSG = 1056, DC = 43815572, PAINTSTRUCT = 0x2e0c134, RESULT = 0}, this=0x35e6ce8) at customcontrol.inc:93 #17 0x0058b5cc in SYSTEM_TOBJECT_$__DISPATCH$formal () #18 0x0048bd14 in TCONTROL__WNDPROC (THEMESSAGE={MSG = 1056, WPARAM = 43815572, LPARAM = 48283956, RESULT = 0, WPARAMLO = 668, WPARAMHI = 37524, LPARAMLO = 736, LPARAMHI = 49460, RESULTLO = 0, RESULTHI = 0}, this=0x35e6ce8) at control.inc:1538 #19 0x00481b70 in TWINCONTROL__WNDPROC (MESSAGE={MSG = 1056, WPARAM = 43815572, LPARAM = 48283956, RESULT = 0, WPARAMLO = 668, WPARAMHI = 37524, LPARAMLO = 736, LPARAMHI = 49460, RESULTLO = 0, RESULTHI = 0}, this=0x35e6ce8) at wincontrol.inc:1900 #20 0x003d4cb8 in DELIVERMESSAGE (TARGET=0x35e6ce8, AMESSAGE=void) at gtkproc.inc:3049 #21 0x004d8054 in TGTKWIDGETSET__SENDMESSAGE (HANDLEWND=53723008, MSG=1123, WPARAM=53399924, LPARAM=53773248, this=0x2a870f4) at gtkwinapi.inc:7489 #22 0x004b4168 in TGTKWIDGETSET__HANDLEEVENTS (this=0x2a870f4) at gtkobject.inc:1451 #23 0x005784f4 in TAPPLICATION__HANDLEMESSAGE (this=0x2a8f014) at application.inc:822 #24 0x00578a50 in RUNMESSAGE (parentfp=0xbffff7b0) at application.inc:929 #25 0x00578970 in TAPPLICATION__RUN (this=0x2a8f014) at application.inc:940 #26 0x0059b3a8 in P$LAZARUS_main () at lazarus.pp:83 #27 0x0059b044 in main () #28 0x000027f8 in _start (argc=44672532, argv=0x0, envp=0xf) at /SourceCache/Csu/Csu-47/crt.c:267 #29 0x8fe1a700 in __dyld__dyld_start () (gdb)