Sign in Join

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

Mailing lists / lazarus / 2008-07

Building Lazarus on Mac OS 10.5 Leopard

11 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Roland Turcan

Hello General mailing list!

I have upgraded from 10.3.9 to 10.5.4 and the serious problem with compilation vanished, but I think, I have a little problem with library used during linking, but I have tried to set path to directory where are libraries located and problem is still present.

I was trying to build Lazarus with:

sudo make clean all LCL_PLATFORM=gtk

and this is the result:

...
Assembling lazarus
Linking ../lazarus
ld: library not found for -lglib-1.2.0
An error occurred while linking
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[1]: *** [ide] Error 2
make: *** [ide] Error 2

The setting of path variable is the following:

echo $PATH

/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/lib

The listing of /opt/local/lib

ls -l libglib*

-rwxr-xr-x 2 root admin 195032 Jul 17 13:22 libglib-1.2.0.0.10.dylib lrwxr-xr-x 1 root admin 24 Jul 17 13:22 libglib-1.2.0.dylib -> libglib-1.2.0.0.10.dylib lrwxr-xr-x 1 root admin 24 Jul 17 13:22 libglib.1.dylib -> libglib-1.2.0.0.10.dylib lrwxr-xr-x 1 root admin 24 Jul 17 13:22 libglib.dylib -> libglib-1.2.0.0.10.dylib -rwxr-xr-x 2 root admin 688 Jul 17 13:22 libglib.la

What could it be still set wrong?

Reply by email

Mattias Gaertner
to Roland Turcan
Show quoted text 31 lines
Hello General mailing list! I have upgraded from 10.3.9 to 10.5.4 and the serious problem with compilation vanished, but I think, I have a little problem with library used during linking, but I have tried to set path to directory where are libraries located and problem is still present. I was trying to build Lazarus with: sudo make clean all LCL_PLATFORM=gtk and this is the result: ... Assembling lazarus Linking ../lazarus ld: library not found for -lglib-1.2.0 An error occurred while linking Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[1]: *** [ide] Error 2 make: *** [ide] Error 2 The setting of path variable is the following: echo $PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/lib

The PATH variable is for executables only, not libs. You can pass -k-L/opt/local/lib to the compiler options or create symlinks in /usr/lib or /usr/local/lib.

Mattias

Reply by email

Roland Turcan
to Mattias Gaertner: On Thu, 17 Jul 2008 17:36:02 +0200 The PATH variable is for executables only, not libs.…

Hello Matthias,

Yes, that's it. Thanks our guardian angel. :-)

I am new to Mac and Linux is also not my main system.

Next question: How can I set the path for libs to next directory instead of creating many symlinks?

TRoland;

<<< 17.7.2008 22:03 - Mattias Gaertner "" >>>
MG> On Thu, 17 Jul 2008 17:36:02 +0200

MG> Roland Turcan wrote 31 lines
> Hello General mailing list! > > I have upgraded from 10.3.9 to 10.5.4 and the serious problem with > compilation vanished, but I think, I have a little problem with > library used during linking, but I have tried to set path to directory > where are libraries located and problem is still present. > > I was trying to build Lazarus with: > > sudo make clean all LCL_PLATFORM=gtk > > and this is the result: > > ... > Assembling lazarus > Linking ../lazarus > ld: library not found for -lglib-1.2.0 > An error occurred while linking > Error: Error while linking > Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[2]: *** [lazarus] Error 1 > make[1]: *** [ide] Error 2 > make: *** [ide] Error 2 > > > The setting of path variable is the following: > > echo $PATH > > /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/lib

MG> The PATH variable is for executables only, not libs. MG> You can pass -k-L/opt/local/lib to the compiler options or create MG> symlinks in /usr/lib or /usr/local/lib.

MG> Mattias
MG> _______________________________________________ MG> Lazarus mailing list
MG>
MG> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Roland Turcan
to Felipe Monteiro de Carvalho: Just in case you are not aware of that: The recommended interface under Mac OS X is…

Hello Felipe,

Of course, I would like to prefer Carbon on Mac, but somewhere I've seen information, that IDE with GTK is more stable on Mac than Carbon's one. Maybe it is older information.

What are your experiences with Carbon IDE?

<<< 17.7.2008 22:13 - Felipe Monteiro de Carvalho "" >>> FMdC> Just in case you are not aware of that: The recommended interface FMdC> under Mac OS X is native Carbon.

Reply by email

Mattias Gaertner
to Roland Turcan
Show quoted text 5 lines
Hello Felipe, Of course, I would like to prefer Carbon on Mac, but somewhere I've seen information, that IDE with GTK is more stable on Mac than Carbon's one. Maybe it is older information.

No, it's quite recent information.

What are your experiences with Carbon IDE?

It has more bugs than the gtk version, but it is easier to compile. When you know the bugs, you can work around them.

For example:

The carbon IDE looks somewhat nicer, although the autosizing does not work yet correctly and so some dialogs looks pretty bad until you enlarge them manually.

There is no good set of IDE shortcuts for the Mac yet, and so many features like help, identifier completion, toggle form/unit, compile, run, jump back do not work, because OS X itself uses those shortcuts. You must change the shortcuts in the editor options / keymappings. Beware, some key combos are not yet recognized and can give errors.

Don't trust the shortcuts shown in the menu. They are not always updated properly.

The Alt key sometimes cease to functions. Just restart the IDE. It starts quite fast.

When you close a file in the IDE, make sure to click once on the tab. Otherwise you risk a crash.

The blinking cursor vanish after popup menus and modal forms. Just switch to another page and back. Again: The normal page switching short cuts don't work, you may want to define some in the keymappings.

There are some more quirks, but with this you should at least get a productive IDE.

I'm confident that most of the above bugs will be fixed soon.

The gtk IDE has the limitations of any X11 application under Mac OS X: complicated compilation, foreign look & feel and bad interaction with other programs.

Mattias

Show quoted text 5 lines
<<< 17.7.2008 22:13 - Felipe Monteiro de Carvalho "" >>> FMdC> Just in case you are not aware of that: The recommended FMdC> interface under Mac OS X is native Carbon.

Reply by email

Felipe Monteiro de Carvalho
to Roland Turcan: Of course, I would like to prefer Carbon on Mac, but somewhere I've seen information,…
Roland Turcan wrote 5 lines
Of course, I would like to prefer Carbon on Mac, but somewhere I've seen information, that IDE with GTK is more stable on Mac than Carbon's one. Maybe it is older information. What are your experiences with Carbon IDE?

Well, I disagree with Mattias here. I only use the Carbon IDE since some months, and Carbon is already the default widgetset in Mac OS X and it was already decided that the next release will be based in it.

I think it will depend on which features you need. Some bugs in the Gtk IDE make it almost useless for me, like copy+paste not working with other applications. If you don't need the same set of features as I do, then the Gtk IDE may be better.

Felipe Monteiro de Carvalho

Reply by email

Roland Turcan
to Felipe Monteiro de Carvalho

Hello Felipe,

I feel, that Carbon's IDE is not very stabile, but I feel the same with GTK2 on Linux too. I worked in first step of porting in Windows' Lazarus and there it was quite good with stability. I don't say it was perfect, but basically I've got our application working on Win32.

Anyway Freepascal/Lazarus project did/still doing a lot to get very useful independent developer environment.

TRoland;

<<< 18.7.2008 14:23 - Felipe Monteiro de Carvalho "" >>>

Roland Turcan wrote 5 lines
> Of course, I would like to prefer Carbon on Mac, but somewhere I've > seen information, that IDE with GTK is more stable on Mac than > Carbon's one. Maybe it is older information. > > What are your experiences with Carbon IDE?

FMdC> Well, I disagree with Mattias here. I only use the Carbon IDE since FMdC> some months, and Carbon is already the default widgetset in Mac OS X FMdC> and it was already decided that the next release will be based in it.

FMdC> I think it will depend on which features you need. Some bugs in the FMdC> Gtk IDE make it almost useless for me, like copy+paste not working FMdC> with other applications. If you don't need the same set of features as FMdC> I do, then the Gtk IDE may be better.

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho: Well, I disagree with Mattias here. I only use the Carbon IDE since some months, and…

On Fri, Jul 18, 2008 at 2:23 PM, Felipe Monteiro de Carvalho >

I think it will depend on which features you need. Some bugs in the Gtk IDE make it almost useless for me, like copy+paste not working with other applications. If you don't need the same set of features as I do, then the Gtk IDE may be better.

I *only* use the GTK1 IDE and I have never found any issues with copy+paste - to or from other applications. How can I reproduce this issue?

BTW:
Do you know that X Window has two copy & paste methods.
* One is a clipboard like you get in Windows. You make a selection and then use a Copy+Paste function from a menu or keyboard shortcut.
* The other (original) method is called X Selections. Simply select the text then go to another application (without closing the one that's got the selected text) and then click the 3rd (middle) mouse button.

I tend to use the latter option more often in X11 applications. It's just quicker for me. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Felipe Monteiro de Carvalho
to Graeme Geldenhuys
Graeme Geldenhuys wrote
I *only* use the GTK1 IDE and I have never found any issues with copy+paste - to or from other applications. How can I reproduce this issue?

You need Mac OS X to reproduce it

Felipe Monteiro de Carvalho

Reply by email