Recent

Author Topic: Lazarus on OSX  (Read 20278 times)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2510
RE: re: * (who knows) lazarus on OSX
« Reply #15 on: March 06, 2006, 01:07:14 pm »
do you get this message also when you start lazarus directly (w/o using startlazarus) ?

if so, try running in gdb and try to find out which call is causing this.

Code: [Select]
gdb lazarus
run

and when it crashes
Code: [Select]
bt
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
RE: re: * (who knows) lazarus on OSX
« Reply #16 on: March 07, 2006, 08:43:38 pm »
Quote from: "Marc"
do you get this message also when you start lazarus directly (w/o using startlazarus) ?

if so, try running in gdb and try to find out which call is causing this.

Code: [Select]
gdb lazarus
run

and when it crashes
Code: [Select]
bt
Hi Marc,
thanks for responding. it looks like gmalloc is trying to allocate 4GB of memory and i only have 1GB. Hmm, this looks like a config file problem in either running gtk or when i compiled it. i will look into it further when i can ( finals are coming up so most time must be allocated  elsewhere for the moment, bummer!). here is the backtrace dump:

(gdb) run
Starting program: /usr/local/share/lazarus/lazarus
Reading symbols for shared libraries .+........+..+.+ done

GLib-ERROR **: could not allocate -1 bytes
aborting...

Program received signal SIGABRT, Aborted.
0x9004714c in kill ()
(gdb) bt
#0  0x9004714c in kill ()
#1  0x90128b98 in abort ()
#2  0x00b17ed8 in g_logv (log_domain=0xb2798c "GLib", log_level=G_LOG_LEVEL_ERROR, format=0x0, args1=0x0) at gmessages.c:391
#3  0x00b17f88 in g_log (log_domain=0x0, log_level=0, format=0xa0004168 "") at gmessages.c:408
#4  0x00b163c8 in g_malloc (size=4294967295) at gmem.c:179
#5  0x00b248e8 in g_get_any_init () at gutils.c:494
#6  0x00b24d2c in g_get_home_dir () at gutils.c:623
#7  0x018b5898 in gtk_rc_append_default_module_path () at gtkrc.c:295
#8  0x018b5e00 in gtk_rc_init () at gtkrc.c:462
#9  0x018867f0 in gtk_init_check (argc=0xac2488, argv=0xac248c) at gtkmain.c:440
#10 0x01886878 in gtk_init (argc=0x0, argv=0x0) at gtkmain.c:471
#11 0x000ecf08 in ?? ()
#12 0x000ecd54 in ?? ()
#13 0x00024c10 in ?? ()
#14 0x00015088 in ?? ()
#15 0x00001dd8 in ?? ()
#16 0x00001d0c in ?? ()
#17 0x00001b80 in ?? ()
(gdb)

my gtk install might be messed up, i had a real hassle trying to reinstall it. what problems you ask? well when installing from source,
i was getting compiling errors in libpixbuf (?) when compiling one of the tiff convertertion routines(look at earlier post). so it is a mix of fink and darwinports (yes, i know, when i get this figured out, i am going to reinstall X11 and try again).

ButtWipe:~ beavis$

  • Guest
GOT IT!!!
« Reply #17 on: March 14, 2006, 09:13:54 pm »
Ok, my gtk+ install was majorly messed up. I uninstalled it using fink commander and then reinstalled and it works fine.
So, if anyone gets this message:

GLib-ERROR **: could not allocate -1 bytes
aborting...

it most likely means that your gtk+ install is hosed. A good test is to get and install the gtkgraph application with fink (about 500k total - needs imlibs-shared(?)) anyway, if gtkgraph fails to start with the same message as above that confirms the hosed gtk+ install.

After reinstalling, gtkgraph pops up, then lazarus starts up and looks REALLY GOOD!! NICE WORK GUYS!!! VERY IMPRESSIVE!! I just hope that the switch from gtk to qt will mean that there will be a native Mac app of lazarus w/out the need for X11.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: GOT IT!!!
« Reply #18 on: March 15, 2006, 02:35:20 am »
Quote
I just hope that the switch from gtk to qt will mean that there will be a native Mac app of lazarus w/out the need for X11.


We are not really switching from gtk to qt. We are rather adding another option to use Lazarus =)

A good Gtk2 interface would still be better on Linux for proprietary software because of Qt´s licensing, but the Qt interface has some other interresting uses:

* linux-based PDAs
* Mac OS X applications without needing X11

Phil is working on the Mac OS X parts of Qt.

Of course there is still a long way to go before the IDE runs on Qt, and we do are looking for contributors =)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2510
RE: Re: GOT IT!!!
« Reply #19 on: March 17, 2006, 03:51:36 pm »
Besides QT, (which is also non native on OSX) there is workec on a natice Carbon interface.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018