Lazarus

Installation => macOS / Mac OS X => Topic started by: Sebyno on February 20, 2006, 03:43:35 pm

Title: Lazarus on OSX
Post by: Sebyno on February 20, 2006, 03:43:35 pm
Hi to all,
only a litle and may be stupid question....

I downloaded
fpc-2.0.2-macosx.dmg (installed)
fpcsrc-2.0.2-macosx.dmg (installed)
lazarus-0.9.12-macosx.dmg (installed)

and now?
I can't see any icon under programs and also under tools or dev.

Thank's in advance for help
Title: Solved
Post by: Sebyno on February 21, 2006, 03:47:19 pm
Following this step I solved


Quote

Gianni,

Lazarus appears to be getting more stable with each passing day. If you can identify the precise conditions that cause the IDE to crash or display an access violation, please log it as a bug.

As a benefit other potential Mac users of Lazarus, here's a quick and dirty review of the basic steps to getting the current Lazarus snapshot installed and running under OS X:

(1) For now, ignore out-of-date installation instructions elsewhere.

(2) Make sure X11 is installed. X11 is optionally installed with OS X and comes on OS X CD's or can be downloaded from Apple.

(3) Download and install the correct version of fink for your version of OS X and let it download and install the additional 29 GTK and related packages needed. Note that instructions elsewhere contained a typo for the fink command. Here's the command that I used (all on one line):

sudo fink install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc-1.2-13 gtkglarea gtk-engines

URL: http://fink.sourceforge.net/download

(4) Download and install all 3 .dmg files from the Lazarus snapshot page. I doubt if the order of installation matters, but this is the order I installed them:
- fpc .dmg
- fpcsrc .dmg
- lazarus .dmg

URL: http://www.ca.freepascal.org/Lazarus/

(5) Open X terminal window.

(6) In the X terminal, type:

sh
PATH=$PATH:/usr/local/bin
tcsh
cd /usr/local/share/lazarus
./lazarus

Typing "open lazarus" also works instead of "./lazarus".

(7) I usually "uninstall" everything manually before installing a new snapshot. I don't know that this is really necessary, but it makes me feel better:
- Delete /usr/local/share/lazarus folder
- Delete /usr/local/share/fpcsrc folder
- Delete /usr/local/share/doc/FPC folder
- Delete /usr/local/share/examples/FPC folder
- Delete /usr/local/lib/fpc folder
- Delete FPC programs from usr/local/bin folder. Note that there might be files from other programs in this folder, so be careful about what you delete.
- Empty trash.

Please point out any errors or steps that I might have overlooked.

Thanks.

-Phil




Thanks to Phil H.
Title: RE: Solved
Post by: mattias on February 21, 2006, 04:59:26 pm
The gtkglarea and gtk-engines are not needed and can make problems.

Please update the wiki with whatever you think is missing:
http://wiki.lazarus.freepascal.org/index.php/Installing_Lazarus_on_MacOS_X
Title: starting lazarus
Post by: guestghost on March 01, 2006, 05:15:20 am
trying to start lazarus with ./startlazarus or ./lazarus gives me
aclocal         doc             fpcsrc          locale
bakefile        examples        lazarus
dialup-ras26-221:/usr/local/share beavis$ cd lazarus
dialup-ras26-221:/usr/local/share/lazarus beavis$ ls
COPYING                 designer                lazarus
COPYING.GPL             doceditor               lcl
COPYING.LGPL            docs                    localize.bat
COPYING.modifiedLGPL    examples                localize.sh
Makefile                ide                     packager
Makefile.fpc            ideintf                 startlazarus
README                  images                  tools
components              install                 units
debugger                languages
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./lazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./startlazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$


OK whats up????
I've installed all of the gtk and crap (sorry this is why i left Linux and switched to MacOsX.)!
Title: Re: starting lazarus
Post by: Anonymous on March 01, 2006, 05:24:16 am
Quote from: "guestghost"
trying to start lazarus with ./startlazarus or ./lazarus gives me
aclocal         doc             fpcsrc          locale
bakefile        examples        lazarus
dialup-ras26-221:/usr/local/share beavis$ cd lazarus
dialup-ras26-221:/usr/local/share/lazarus beavis$ ls
COPYING                 designer                lazarus
COPYING.GPL             doceditor               lcl
COPYING.LGPL            docs                    localize.bat
COPYING.modifiedLGPL    examples                localize.sh
Makefile                ide                     packager
Makefile.fpc            ideintf                 startlazarus
README                  images                  tools
components              install                 units
debugger                languages
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./lazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./startlazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$


OK whats up????
I've installed all of the gtk and crap (sorry this is why i left Linux and switched to MacOsX.)!



I llike Pascal after dealing with Java (gee, I wonder) and I would like to get this working. But all this work to get this (Lazarus) working makes Java look a lot better!! C'mon, this should be a no brainer at a .9 level!!
(Sorry for the "negative" post, you guys kick ass to get Pascal to a "Working" Level!!)
Title: RE: Re: starting lazarus
Post by: Marc on March 01, 2006, 10:47:13 am
Lazarus on OSX uses X for the moment. Did oyu start the X server ?
Title: RE: Re: starting lazarus
Post by: Anonymous on March 02, 2006, 03:38:47 am
Quote from: "Marc"
Lazarus on OSX uses X for the moment. Did oyu start the X server ?
yes, this was copied from the xterm window. Is there a path that might be hidden when using X11 on the Mac that I'm forgetting about? I think I've had that problem before. BTW, sorry for this "I've installed all of the gtk and crap (sorry this is why i left Linux and switched to MacOsX.)!" Other frustrations in life crept into that post.
Oh, has the lazarus wiki been down? I can't seem to access it. (haven't tried it yet today though)
Title: RE: Re: starting lazarus
Post by: Marc on March 02, 2006, 02:31:52 pm
I tried to test it,but it seems that I still have a fpc 2.0.1 installed. I need to upgrade, will try later
Title: RE: Re: starting lazarus
Post by: Anonymous on March 02, 2006, 10:29:55 pm
Quote from: "Marc"
I tried to test it,but it seems that I still have a fpc 2.0.1 installed. I need to upgrade, will try later
Hmmm. bug perhaps in 2.0.2? (OMG, a bug in a complicated piece of software!? Say it isn't so!!:lol:)   I will try to find 2.0.1 and see if it solves the problem.
Thanks, Marc!
Title: Re: RE: Re: starting lazarus
Post by: Phil on March 02, 2006, 11:39:13 pm
Quote from: "Anonymous"
I will try to find 2.0.1 and see if it solves the problem.


Why don't you try one of the 0.9.13/2.1.1 snapshots instead? I've used several recent snapshots on my Mac (OS X 10.3.9) without any problems.

http://michael-ep3.physik.uni-halle.de/Lazarus/

-Phil
Title: RE: Re: RE: Re: starting lazarus
Post by: Anonymous on March 03, 2006, 12:56:42 am
Quote from: "Phil"
Quote from: "Anonymous"
I will try to find 2.0.1 and see if it solves the problem.


Why donThanks Phil, I've been trying to get to the sources off of the main page (which redirects to wiki.lazarus.freepascal.org) and I get a page load error. I will grab the snapshots tomorrow from college (college has T3, I have Dial-up 4.0kps if i'm lucky!) and give it a try.
Title: RE: Re: RE: Re: starting lazarus
Post by: Anonymous on March 03, 2006, 01:03:47 am
Quote from: "Phil"
Why don't you try one of the 0.9.13/2.1.1 snapshots instead? I've used several recent snapshots on my Mac (OS X 10.3.9) without any problems.




Thanks Phil, I've been trying to get to the sources off of the main page (which redirects to wiki.lazarus.freepascal.org) and I get a page load error. I will grab the snapshots tomorrow from college (college has T3, I have Dial-up 4.0kps if i'm lucky!) and give it a try.

Oh if someone wants to know what error i'm getting on the "getting sources" link:
Failed to Connect
The connection was refused when attempting to contact wiki.lazarus.freepascal.org.
Though the site seems valid, the browser was unable to establish a connection.

i'm using camino 1.0.
Title: Re: RE: Re: starting lazarus
Post by: Marc on March 03, 2006, 11:31:23 am
Quote from: "Anonymous"
Quote from: "Marc"
I tried to test it,but it seems that I still have a fpc 2.0.1 installed. I need to upgrade, will try later
Hmmm. bug perhaps in 2.0.2? (OMG, a bug in a complicated piece of software!? Say it isn't so!!:lol:)   I will try to find 2.0.1 and see if it solves the problem.
Thanks, Marc!


I tried it with FPC 2.0.2 and Laz rev 8860 and all works ok. (mac mini, uptodate osx 10.4)

Quote

Oh if someone wants to know what error i'm getting on the "getting sources" link:
Failed to Connect
The connection was refused when attempting to contact wiki.lazarus.freepascal.org.
Though the site seems valid, the browser was unable to establish a connection.


The main FPC download server suffered from a DOS attack and was brought down in the beginning of the week and is now up again. This server hosts also our wiki.
Title: Lazarus on OSX
Post by: Anonymous on March 04, 2006, 05:41:46 am
AAAAAA!!!!! STILL trying to start lazarus! I even dwnld the latest snapshots of all 3 files and nothing, tried to compile lazarus from source (not the .dmg file), nothing. Here is my xterm (compliation under X11 even!) with my env settings and error message:

ButtWipe:~ beavis$ env
MANPATH=/usr/man:/usr/X11R6/man
TERM=xterm
SHELL=/bin/bash
WINDOWID=4194318
USER=beavis
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local:/usr/local/bin:/usr/local/share:/usr/local/share/lazarus:/sw/lib
PWD=/Users/beavis
HOME=/Users/beavis
SHLVL=2
LOGNAME=beavis
DISPLAY=:0.0
SECURITYSESSIONID=5035e0
_=/usr/bin/env
ButtWipe:~ beavis$ startlazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
ButtWipe:~ beavis$

/sw/lib is where the gtk/glibs are, which are of 1.2.10.

I must be overlooking something REALLY stupid!
Oh, G4 PB 1.33Ghz 1.4.5 w/new security update
gtk/glib fink'ed (installed) last night.  
fpc 2.1.1

I piped the output from the compilation to a file if ANYONE wants to see it.
Just too big to post, but will if asked.
Thanks for ALL help, guys!!!!! (if nothing else, this will be a good Tblshooting guide appendix!)
Title: re: * (who knows) lazarus on OSX
Post by: Anonymous on March 06, 2006, 04:50:43 am
Quote from: "Anonymous"

Thanks for ALL help, guys!!!!! (if nothing else, this will be a good Tblshooting guide appendix!)


Hey, I meant that, it wasn't a flame!

Tried installing all of the fink pkgs and had trouble w/the libtiff pkg compiling, something about a conversion routine having an undeclared u_int, so compilation failed (too much dang HW to look into that one, and yes I'm older than 18!). So I have installed the gtk dmg from the mac osx gtk-sourceforge project, and svn'd the 8867 trunk but haven't compiled it yet.  
Anyone heard of problems encountered w/installing the gtk dmg and lazarus?
(dang, i might have to register if this keeps up!! :lol: )
Title: RE: re: * (who knows) lazarus on OSX
Post by: Marc 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
Title: RE: re: * (who knows) lazarus on OSX
Post by: Anonymous 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).
Title: GOT IT!!!
Post by: ButtWipe:~ beavis$ 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.
Title: Re: GOT IT!!!
Post by: felipemdc 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 =)
Title: RE: Re: GOT IT!!!
Post by: Marc 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.
TinyPortal © 2005-2018