Sign in Join

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

Mailing lists / lazarus / 2003-02

compiling lazarus in linux. Error while linking

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Roman Shiryaev

lazaruslinux]# make

<skipped - without error before this place>

Assembling lazarus
Linking ./lazarus
/usr//bin/ld: cannot find -lX11 <====What it means? Where i had find this -lX11? lazarus.pp(302) Error: Error while linking
Closing script ./ppas.sh
make[1]: *** [lazarus] Error 1
make: *** [ide] Error 2

rmn]$ cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/lib/qt3/lib

Please, explain me what to do and what to add to my conf. I can't find the path to lX11.

WBR, Roman Shiryaev Registered Linux user #302871 Russia, Petrozavodsk

Reply by email

Roman Shiryaev
to Marc Weustink: it is looking for libX11.so (the option -l@@@ means look for lib@@@.so) It is generally…

� ��������� �� 10 ������� 2003 01:08 Marc Weustink �������:

Show quoted text 15 lines
><skipped - without error before this place> > >Assembling lazarus >Linking ./lazarus >/usr//bin/ld: cannot find -lX11 <====What it > means? Where i had find this -lX11? it is looking for libX11.so (the option -l@@@ means look for lib@@@.so) It is generally provided by the devel-package of the package which provided lib@@@.so.x.y In your case the XFree86-devel package must be installed (assuming you are using XFree86). If you don't want to install the devel-package, creating a symlink libX11.so -> libX11.so.x.y will mostly work.

Thank you very much! Compilation completed! :)

PS
What about the russian component's name. Now it's shout that `not valid name`?

WBR, Roman Shiryaev Registered Linux user #302871 �������, ������������

Reply by email

Mattias Gaertner
to Marc Weustink: it is looking for libX11.so (the option -l@@@ means look for lib@@@.so) It is generally…
Show quoted text 22 lines
� ��������� �� 10 ������� 2003 01:08 Marc Weustink �������: > it is looking for libX11.so (the option -l@@@ means look for > lib@@@.so) It is generally provided by the devel-package of > the package which provided lib@@@.so.x.y > > In your case the XFree86-devel package must be installed > (assuming you are using XFree86). If you don't want to install > the devel-package, creating a symlink libX11.so -> > libX11.so.x.y will mostly work. And the last question - what about size of compiled binary? I have the following: lazaruslinux]$ file lazarus; ls -ls lazarus: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped total 3540 3540 -rwxr-xr-x 1 rmn rmn 3619720 ��� 10 01:52 lazarus* So, with `stripping` i've ~3540k. Is it normal or it may be smaller? Just it's interesting for me :)

Yes, it's normal.
Currently the LCL, synedit, codetools and some design stuff is compiled in, which will eventually become libraries.

Mattias

Reply by email

Marc Weustink
to Roman Shiryaev: lazaruslinux]# make <skipped - without error before this place> Assembling lazarus…
Roman Shiryaev wrote 8 lines
lazaruslinux]# make <skipped - without error before this place> Assembling lazarus Linking ./lazarus /usr//bin/ld: cannot find -lX11 <====What it means? Where i had find this -lX11?

it is looking for libX11.so (the option -l@@@ means look for lib@@@.so) It is generally provided by the devel-package of the package which provided lib@@@.so.x.y

In your case the XFree86-devel package must be installed (assuming you are using XFree86). If you don't want to install the devel-package, creating a symlink libX11.so -> libX11.so.x.y will mostly work.

Show quoted text 11 lines
lazarus.pp(302) Error: Error while linking Closing script ./ppas.sh make[1]: *** [lazarus] Error 1 make: *** [ide] Error 2 rmn]$ cat /etc/ld.so.conf /usr/X11R6/lib /usr/lib/qt3/lib Please, explain me what to do and what to add to my conf. I can't find the path to lX11.

HtH,

Marc

Reply by email

Roman Shiryaev
to Marc Weustink

� ��������� �� 10 ������� 2003 01:08 Marc Weustink �������:

Show quoted text 8 lines
it is looking for libX11.so (the option -l@@@ means look for lib@@@.so) It is generally provided by the devel-package of the package which provided lib@@@.so.x.y In your case the XFree86-devel package must be installed (assuming you are using XFree86). If you don't want to install the devel-package, creating a symlink libX11.so -> libX11.so.x.y will mostly work.

And the last question - what about size of compiled binary? I have the following:

lazaruslinux]$ file lazarus; ls -ls
lazarus: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
total 3540
3540 -rwxr-xr-x 1 rmn rmn 3619720 ��� 10 01:52 lazarus*

So, with `stripping` i've ~3540k. Is it normal or it may be smaller? Just it's interesting for me :)

WBR, Roman Shiryaev Registered Linux user #302871 Russia, Petrozavodsk

Reply by email