Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Sven Barth via Lazarus
Bo Berglund via Lazarus schrieb am So., 28. Okt. 2018, 00:44: > >> Not so simple in Lazarus until I saw I could install indylaz. > >> Has worked fine for GUI applications so far > > > >Yes, Indy apparently suits best for GUI apps. > >You can of course set the search path of your Lazarus

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 20:06:54 +0300, Juha Manninen via Lazarus wrote: >On Sat, Oct 27, 2018 at 7:11 PM Bo Berglund via Lazarus > wrote: >> In the converted Delphi project I started with a .dpr file that >> contained all active code except for two units to read Ini files mor >> easily and to

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Juha Manninen via Lazarus
On Sat, Oct 27, 2018 at 7:11 PM Bo Berglund via Lazarus wrote: > In the converted Delphi project I started with a .dpr file that > contained all active code except for two units to read Ini files mor > easily and to create Unix style hashed passwords. When it > was done it still used the dpr file

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 16:06:07 +0200, Mattias Gaertner via Lazarus wrote: >On Sat, 27 Oct 2018 15:35:05 +0200 >Bo Berglund via Lazarus wrote: > >>[...] >> (LicMgr:19450): Gtk-WARNING **: cannot open display: >> >> It should not need a display! > >Then remove the gtk dependency. >Check Compiler

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 18:00:56 +0300, Juha Manninen via Lazarus wrote: >On Sat, Oct 27, 2018 at 4:35 PM Bo Berglund via Lazarus > wrote: >> Had to fix sections etc in the old dpr file so it now is a proper unit. > >You have a .lpr file in the Lazarus project, right? Not .dpr? In the converted

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Sven Barth via Lazarus
Bo Berglund via Lazarus schrieb am Sa., 27. Okt. 2018, 13:58: > On Sat, 27 Oct 2018 13:39:12 +0200, Sven Barth via Lazarus > wrote: > > >Binaries usually have aligned sections so removing or adding just a > >small bit (like the dependency on gdk in your case introduced by the > >LCL) does not

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Sven Barth via Lazarus
Bo Berglund via Lazarus schrieb am Sa., 27. Okt. 2018, 14:31: > After conversion it complained about directive {$APPTYPE CONSOLE} > being unrecognized so I had to IFNDEF FPC that line so it is only > visible in Delphi (which I rarely use these days)... > It's only a warning, not an error. The

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Martin Schreiber via Lazarus
On Saturday 27 October 2018 14:32:38 Bo Berglund via Lazarus wrote: > > That is the problem, I don't know how to remove a dependency like > this... > Another option: - Compile the project with -vu, copy the message to a file. - Analise the file with the MSEunitdep tool from here:

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Juha Manninen via Lazarus
On Sat, Oct 27, 2018 at 4:35 PM Bo Berglund via Lazarus wrote: > Had to fix sections etc in the old dpr file so it now is a proper unit. You have a .lpr file in the Lazarus project, right? Not .dpr? > But once done it built OK and worked as expected in Ubuntu 18.04. > The stripped size of this

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Mattias Gaertner via Lazarus
On Sat, 27 Oct 2018 15:35:05 +0200 Bo Berglund via Lazarus wrote: >[...] > (LicMgr:19450): Gtk-WARNING **: cannot open display: > > It should not need a display! Then remove the gtk dependency. Check Compiler options / Show Options / Inherited Parameters if you are using the LCL. If yes

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 14:31:31 +0200, Bo Berglund via Lazarus wrote: >Or should I start over and create a new console program in Lazarus and >then bring in the units I have used for certain functions and also >change the main dpr file into a normal unit? I did this and created a new "Program",

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Alexey via Lazarus
I have an idea. Make an error in some gtk2 widget set unit. Build. Then you ll see which part of the app requires gtk2 code. Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 14:03:16 +0200, "Carlos E. R. via Lazarus" wrote: >On 27/10/2018 13.58, Bo Berglund via Lazarus wrote: > >> I tried to upgrade, dist-upgrade the server to remove the logon >> greeting about available updates then rebooted. >> No difference. >> >> Then I tried by installing

Re: [Lazarus] Lazarus Release Candidate 1 of 2.0

2018-10-27 Thread Mattias Gaertner via Lazarus
On Sat, 27 Oct 2018 13:34:26 +0100 C Western via Lazarus wrote: >[...] > Did you try this starting the IDE with an empty .lazarus directory? Yes, exactly. > I am > not sure I made it clear in the original message, but this was on first > run of the RC Lazarus, and I was loading my usual set

Re: [Lazarus] Lazarus Release Candidate 1 of 2.0

2018-10-27 Thread C Western via Lazarus
On 27/10/2018 09:56, Mattias Gaertner via Lazarus wrote: On Sun, 21 Oct 2018 13:22:16 +0100 C Western via Lazarus wrote: On 19/09/2018 12:50, Mattias Gaertner via Lazarus wrote: The Lazarus team is glad to announce the first release candidate of Lazarus 2.0. I worked through installing and

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 14:57:39 +0300, Juha Manninen via Lazarus wrote: >On Sat, Oct 27, 2018 at 2:03 PM Bo Berglund via Lazarus > wrote: >> I had LCL there as Required package, but I removed it. > >So you know how to remove a dependency! >How did the LCL dependency come there if you created a

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Carlos E. R. via Lazarus
On 27/10/2018 13.58, Bo Berglund via Lazarus wrote: > I tried to upgrade, dist-upgrade the server to remove the logon > greeting about available updates then rebooted. > No difference. > > Then I tried by installing xfce4 desktop, thinking that this would > deposit the X11 stuff into the system.

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 13:39:12 +0200, Sven Barth via Lazarus wrote: >Binaries usually have aligned sections so removing or adding just a >small bit (like the dependency on gdk in your case introduced by the >LCL) does not necessarily mean a change in size. > >You could also try "objdump -x

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Juha Manninen via Lazarus
On Sat, Oct 27, 2018 at 2:03 PM Bo Berglund via Lazarus wrote: > I had LCL there as Required package, but I removed it. So you know how to remove a dependency! How did the LCL dependency come there if you created a console program? Juha -- ___

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Sven Barth via Lazarus
Am 27.10.2018 um 13:03 schrieb Bo Berglund via Lazarus: The dev machine has a GUI interface (otherwise Lazarus would not work) but the program itself is purely non-gui, it is just a Pascal program and it does not even send output to the console, just handles files and networking. Still the

[Lazarus] More inline's for LazUtils

2018-10-27 Thread AlexeyT via Lazarus
patch adds inline to NN tiny functions. -- Regards, Alexey Index: components/lazutils/lazutf8.pas === --- components/lazutils/lazutf8.pas (revision 59373) +++ components/lazutils/lazutf8.pas (working copy) @@ -67,10 +67,10 @@

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
On Sat, 27 Oct 2018 12:43:02 +0200, Mattias Gaertner via Lazarus wrote: >Either install libgtk2.0-0 or remove the dependency. I don't know how to "remove dependency" When I work in Ubuntu 18.04 I am using the Xfce desktop, but the programI am building has no GUI components whatsoever, so why

Re: [Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Mattias Gaertner via Lazarus
On Sat, 27 Oct 2018 12:25:04 +0200 Bo Berglund via Lazarus wrote: > Using Lazarus 1.8.4 and FPC 3.0.4 64 bit on Ubuntu 18.04 64 bit. > Project built and runs fine on dev system. > > Now copied executable to an Ubuntu Server 16.04 64 bit and tried to > run it. But here I get an immediate error:

[Lazarus] Built console app on Linux, but won't run on another Linux machine

2018-10-27 Thread Bo Berglund via Lazarus
Using Lazarus 1.8.4 and FPC 3.0.4 64 bit on Ubuntu 18.04 64 bit. Project built and runs fine on dev system. Now copied executable to an Ubuntu Server 16.04 64 bit and tried to run it. But here I get an immediate error: ./LicMgr: error while loading shared libraries: libgdk-x11-2.0.so.0: cannot

Re: [Lazarus] Lazarus Release Candidate 1 of 2.0

2018-10-27 Thread Mattias Gaertner via Lazarus
On Sun, 21 Oct 2018 13:22:16 +0100 C Western via Lazarus wrote: > On 19/09/2018 12:50, Mattias Gaertner via Lazarus wrote: > > The Lazarus team is glad to announce the first release candidate of > > Lazarus 2.0. > > I worked through installing and compiling with a fresh user on linux, > and