* * *

Author Topic: Rant: Lazarus on Linux: messed up. Completely.  (Read 2471 times)

Handoko

  • Hero Member
  • *****
  • Posts: 829
  • My goal: build my own game engine using Lazarus
Re: Rant: Lazarus on Linux: messed up. Completely.
« Reply #45 on: February 08, 2017, 02:53:52 pm »
Hello I'm back with my test result.

- UbuntuMate 16.10 64-bit fresh install + Lazarus 1.6.2 deb packages downloaded from Lazarus website (via SourceForge) works effortlessly on first attempt. It runs correctly with my simple test, both compiling and running.

- Right after UbuntuMate has been installed, the necessary packages weren't installed. But it will be automatically installed after Lazarus installed. I notice that while installing Lazarus, it tried to download something from the Internet.

- The neccesary packages are libx11-dev, libgtk2.0-dev, libgdk-pixbuf2.0-dev, libcairo2-dev, libpango1.0-dev

I don't have other Debian flavors, so I can only test on UbuntuMate. Someone please do more testings on other Linuxes.
« Last Edit: February 08, 2017, 02:56:10 pm by Handoko »

jacmoe

  • Full Member
  • ***
  • Posts: 241
    • Jacmoe's Cyber SoapBox
Re: Rant: Lazarus on Linux: messed up. Completely.
« Reply #46 on: February 08, 2017, 03:03:16 pm »
On Debian stretch/testing it works "out of the box" using both 1.6.2 debs from Sourceforge, and the 1.6.2 debs from Debian testing.

One thing to look out for on Linux - especially non standard distributions - is that OS and CPU are not always auto-detected by Lazarus, and has to be set in in 'Configure "Build Lazarus"'
more signal - less noise

Nimral

  • Jr. Member
  • **
  • Posts: 78
Re: Rant: Lazarus on Linux: messed up. Completely.
« Reply #47 on: February 08, 2017, 03:12:19 pm »
Normally, fpcupdeluxe checks the availability of these libs.
And reports/complains if missing.
But I have never tested with Netrunner (Debian).

Now installing Netrunner in VM. So fpcupdeluxe will do the right things also on this system.

If I can be of any help, please let me know, as I said, I can reproduce the issue at will. My Debian install used the latest stable release fom the Debian server, installed into a new VM using all the defaults, plus VMWare Tools except ThinPrinting.

Armin.
Using Lazarus 1.6.2 on Windows 10/7/XP, VMWare Workstation 12

DonAlfredo

  • Hero Member
  • *****
  • Posts: 634
Re: Rant: Lazarus on Linux: messed up. Completely.
« Reply #48 on: February 08, 2017, 03:24:45 pm »
I now have a nice and new install of Netrunner running.
And fpcupdeluxe reported the missing libs as I expected.

But this was reported in the big scrolling green-screen, without halting the install.

I have updated fpcupdeluxe (not yet public) to show this as an error in the green-screen, and in the summary-screen below.
So this will catch better attention !

However, fpcupdeluxe will not error out on these missing libs, because FPC alone installs well without these libs.
Need more changes in fpcupdeluxe (and time) to implement better intelligence to handle this.

Nimral

  • Jr. Member
  • **
  • Posts: 78
Re: Rant: Lazarus on Linux: messed up. Completely.
« Reply #49 on: February 09, 2017, 12:57:10 pm »
However, fpcupdeluxe will not error out on these missing libs, because FPC alone installs well without these libs.
Need more changes in fpcupdeluxe (and time) to implement better intelligence to handle this.

Hi DonAlfredo,

great work, thanks very much. And I totally agree that writing error messages in red (+boldface +underlined +blinking +24pt font - whatever the terminal supports) helps:-)

What I wonder ... without the libs, Lazarus/FPC would install, that's technically correct, but I wasn't able to compile, run or debug a single line of code. Still assuming that my troubles were indeed caused by the missing libraries, why do you consider those libraries missing a minor issue, worth a warning, but not a fatal error message?

Armin.
Using Lazarus 1.6.2 on Windows 10/7/XP, VMWare Workstation 12

DonAlfredo

  • Hero Member
  • *****
  • Posts: 634
Re: Rant: Lazarus on Linux: messed up. Completely.
« Reply #50 on: February 09, 2017, 01:11:22 pm »
@Nimral

If you would have choosen a command line FPC program without Lazarus, you would have succeeded in compiling without these libs. I use this setup to compile (Linux) services (servers).

Other than that: remnants of the past. I will improve the behavior of fpcupdeluxe on this subject !!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus