Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Installation using MacPorts

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tobias Giesen

Hello,

thanks to Damien for the MacPorts hint. I have been able to delete Fink and install MacPorts and do
sudo /opt/local/bin/port install gtk1
sudo /opt/local/bin/port install gdk-pixbuf

But Lazarus still does not load from within X11. What else do I need to install?

Damien, you wrote:
"In the same way if you use the terminal you can make a "sudo port install binutils" right before."

What does this mean? Do I have to install the binutils? Right before what? In what same way? I don't understand this sentence ...

Thanks.

Tobias Giesen

Reply by email

Tobias Giesen
to Tobias Giesen

Hi,

the complete steps to install Lazarus with MacPorts are these:

- if Fink is installed, delete it (see Fink website)
- /sw folder should not exist at this point
- install MacPorts from www.macports.org
- sudo ln -s /opt /sw
- sudo /opt/local/bin/port install gtk1
- sudo /opt/local/bin/port install gdk-pixbuf
- sudo ln -s /opt/local/lib /opt/lib

The last step had been missing in my first attempt.

Are there any objections or can I add it to the wiki at http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips ?

Cheers,
Tobias

Reply by email

Damien Gerard
to Tobias Giesen: thanks to Damien for the MacPorts hint. I have been able to delete Fink and install…

Le Feb 28, 2008 ? 9:50 PM, Tobias Giesen a ?crit :

Show quoted text 14 lines
Hello, thanks to Damien for the MacPorts hint. I have been able to delete Fink and install MacPorts and do sudo /opt/local/bin/port install gtk1 sudo /opt/local/bin/port install gdk-pixbuf But Lazarus still does not load from within X11. What else do I need to install? Damien, you wrote: "In the same way if you use the terminal you can make a "sudo port install binutils" right before."

It is only to have better command line utilities and it is completly optional.

What does this mean? Do I have to install the binutils? Right before what? In what same way? I don't understand this sentence ...

Sorry

I have just recompile lazarus under Leopard using GTK2 but the exception that I have already noticed a few month ago remains. Shani [milipili] ~/Projects/lazarus % /usr/local/share/lazarus/ lazarus
Err
1 #15
TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$00000000 of laz_xmlstreaming.pascodeexplopts.pas
TApplication.HandleException Access violation
Stack trace:
$00000000 of laz_xmlstreaming.pascodeexplopts.pas
The program 'lazarus' received an X Window System error. This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'. (Details: serial 359 error_code 17 request_code 20 minor_code 0)

   (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error()

function.)

So I think you should use the carbon widgetset :)
If you use it, you should change first the font of the editor to 'monaco'.

For information, if you want to compile Lazarus with gtk2 you should read http://wiki.lazarus.freepascal.org/GTK2_Interface#Using_the_Gtk2_interface_under_Mac_OS_X .
However I made my own script to compile Lazarus under OS X.

Thanks. Tobias Giesen
Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty)

Reply by email

Damien Gerard
to Tobias Giesen: the complete steps to install Lazarus with MacPorts are these: - if Fink is installed,…

Le Feb 29, 2008 ? 12:46 AM, Tobias Giesen a ?crit :

Show quoted text 17 lines
Hi, the complete steps to install Lazarus with MacPorts are these: - if Fink is installed, delete it (see Fink website) - /sw folder should not exist at this point - install MacPorts from www.macports.org - sudo ln -s /opt /sw - sudo /opt/local/bin/port install gtk1 - sudo /opt/local/bin/port install gdk-pixbuf - sudo ln -s /opt/local/lib /opt/lib The last step had been missing in my first attempt. Are there any objections or can I add it to the wiki at http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips ?

You have a fully working lazarus using gtk2 under leopard ?

Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty)

Reply by email

Tobias Giesen
to Damien Gerard
You have a fully working lazarus using gtk2 under leopard ?

No, I think it is gtk1. I only did a make clean all.

Concerning Carbon, I need to try the special compilation instructions. On my first attempt I got this error: ld: cycle in dylib re-exports with /usr/X11R6/lib//libGL.dylib

Kind Regards,
Tobias Giesen

Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflexible.com
www.tgtools.com

----------------------------------------------------------- Registered at register court Steinfurt as HRA 5061 Liability / general partner: TGTools Ltd.
Company No. 05513299
Registered in England and Wales
Directors: Tobias Giesen and Claudia H?bl

Reply by email

Mattias Gaertner
to Tobias Giesen: the complete steps to install Lazarus with MacPorts are these: - if Fink is installed,…
Show quoted text 17 lines
Hi, the complete steps to install Lazarus with MacPorts are these: - if Fink is installed, delete it (see Fink website) - /sw folder should not exist at this point - install MacPorts from www.macports.org - sudo ln -s /opt /sw - sudo /opt/local/bin/port install gtk1 - sudo /opt/local/bin/port install gdk-pixbuf - sudo ln -s /opt/local/lib /opt/lib The last step had been missing in my first attempt. Are there any objections or can I add it to the wiki at http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips ?

Please add it.

Mattias

Reply by email

Damien Gerard
to Tobias Giesen: No, I think it is gtk1. I only did a make clean all. Concerning Carbon, I need to try the…

Le Feb 29, 2008 ? 2:32 AM, Tobias Giesen a ?crit :

Show quoted text 8 lines
> You have a fully working lazarus using gtk2 under leopard ? No, I think it is gtk1. I only did a make clean all. Concerning Carbon, I need to try the special compilation instructions. On my first attempt I got this error: ld: cycle in dylib re-exports with /usr/X11R6/lib//libGL.dylib

I already have updated the wiki for this :
http://wiki.lazarus.freepascal.org/Carbon_Interface#Compiling_the_Lazarus_IDE_with_the_Carbon_interface_via_Makefile_.28only_for_alpha-testing.29

Kind Regards, Tobias Giesen
Damien Gerard Le temps n'a pas d'importance. Seul le code est important -- (f00ty)

Reply by email