Forum > Linux

Installing Lazarus 1.8.4 on Ubuntu 18.04

<< < (2/20) > >>

Handoko:
Here are the messages after I set the filter to none and disable "Filter Hints without Source Position":


--- Quote ---make: Entering directory '/usr/share/lazarus/1.8.4'
/usr/bin/make -C ide idepkg
make[1]: Entering directory '/usr/share/lazarus/1.8.4/ide'
/usr/bin/make --assume-new=lazarus.pp lazarus OPT=' @/home/handoko/.lazarus/idemake.cfg'
make[2]: Entering directory '/usr/share/lazarus/1.8.4/ide'
/usr/bin/fpc -gl -vbqewnhi -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/7 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/home/handoko/.lazarus/idemake.cfg -dx86_64 lazarus.pp
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Hint: (11030) Start of reading config file /home/handoko/.lazarus/idemake.cfg
Hint: (11031) End of reading config file /home/handoko/.lazarus/idemake.cfg
Free Pascal Compiler version 3.0.4 [2018/05/21] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling lazarus.pp
(9022) Compiling resource /home/handoko/.lazarus/units/x86_64-linux/gtk2/lazarus.or
(9015) Linking /home/handoko/.lazarus/bin/lazarus
/usr/bin/ld: warning: /home/handoko/.lazarus/bin/link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lGL
/usr/share/lazarus/1.8.4/ide/lazarus.pp(161,1) Error: (9013) Error while linking
/usr/share/lazarus/1.8.4/ide/lazarus.pp(161,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [lazarus] Error 1
make[1]: *** [idepkg] Error 2
Error: /usr/bin/ppcx64 returned an error exitcode
Makefile:3961: recipe for target 'lazarus' failed
make[2]: Leaving directory '/usr/share/lazarus/1.8.4/ide'
Makefile:4383: recipe for target 'idepkg' failed
make[1]: Leaving directory '/usr/share/lazarus/1.8.4/ide'
make: *** [idepkg] Error 2
Makefile:3276: recipe for target 'idepkg' failed
make: Leaving directory '/usr/share/lazarus/1.8.4'
--- End quote ---

The line before "Error while linking" is:
/usr/bin/ld: cannot find -lGL

What is it? And what should I do to fix it?

Handoko:
In my /home/handoko/.lazarus/bin/link.res I found these:


--- Quote ---...
INPUT(
-lpthread
-ldl
-lgdk-x11-2.0
-lX11
-lgdk_pixbuf-2.0
-lgtk-x11-2.0
-lgobject-2.0
-lglib-2.0
-lgthread-2.0
-lgmodule-2.0
-lpango-1.0
-lcairo
-latk-1.0
-lGL
-lpangocairo-1.0
)
...
--- End quote ---

So lGL is a library. I checked using Synaptic Package Manager, lGL can't be found in the repository of Ubuntu 18.04 default installation.

Still looking for solution ...

balazsszekely:
sudo apt-get install libgl1-mesa-dev

Handoko:
libgl1-mesa-dev was already installed.

Because Ubuntu 18.04 (maybe also other linuxes) drops support for NVidia driver 304, now I'm using Nouveau driver. It's working good, I can run Lulu's Fire & Wire game (Game Contest 2018) using this open source driver.

Could you think this is the cause of the problem.

Previously before I upgraded my Ubuntu and Lazarus, I was using NVidia driver version 304. I had no such problem. Ubuntu 18.04 only provides Nouveau (open source), NVidia 340 and 390 drivers. The version 340 and 390 show only a blank screen and stop when starting the Ubuntu.

I googled the web, I saw people are complaining the missing NVidia 304 support on Ubuntu 18.04 and lGL library on Ubuntu 18.04.

balazsszekely:

--- Quote ---Could you think this is the cause of the problem?
--- End quote ---
Yes. Maybe you should post a question on the Ubuntu forum and ask the guys if it's possible to install those libraries under 18.4.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version