[fpc-pascal] Linux GTK-2 GUI app

2020-08-30 Thread Adriaan van Os via fpc-pascal
Any recommendations for distributing a FPC gtk-2 GUI app on Linux ? I would prefer it to be as 
simple as possible. Use something like AppImage ? Create a .desktop file? Or create different 
packages for different distros ? The application consists of an executable and a folder with .html 
and .pdf docs. The bare executable currently starts from the Linux Terminal only.


Thanks,

Adriaan van Os
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Michael Van Canneyt via fpc-pascal



On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:


On Sun, 30 Aug 2020 16:22:58 +0200 (CEST)
Michael Van Canneyt  wrote:


On Sun, 30 Aug 2020, Mattias Gaertner wrote:

> On Sun, 30 Aug 2020 14:30:11 +0200 (CEST)
> Michael Van Canneyt  wrote:
> 
>> [...] 
>>> Is there a workaround for fpc 3.2.0? 
>>

>> Yes:
>>
>> AddLibrary('libbla.pp').Options.Add('-obla.so') 
>

> Do you mean:
>
> {$IFDEF Linux}
> AddLibrary('libbla.pp').Options.Add('-obla.so')
> {$ENDIF} 


Will be ok unless you want to crosscompile. In the latter case you
must check the installer targetOS.


How?


var
  T : TTarget;
  P : TPackage;

begin
   P:=Installer.AddPackage('yourgreatpackage');
   T:=P.AddLibrary('libbla.pp');
   if Defaults.OS=Linux then
  T.Options.Add('-obla.so');
end;

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Mattias Gaertner via fpc-pascal
On Sun, 30 Aug 2020 16:22:58 +0200 (CEST)
Michael Van Canneyt  wrote:

> On Sun, 30 Aug 2020, Mattias Gaertner wrote:
> 
> > On Sun, 30 Aug 2020 14:30:11 +0200 (CEST)
> > Michael Van Canneyt  wrote:
> >  
> >> [...]  
> >>> Is there a workaround for fpc 3.2.0?  
> >>
> >> Yes:
> >>
> >> AddLibrary('libbla.pp').Options.Add('-obla.so')  
> >
> > Do you mean:
> >
> > {$IFDEF Linux}
> > AddLibrary('libbla.pp').Options.Add('-obla.so')
> > {$ENDIF}  
> 
> Will be ok unless you want to crosscompile. In the latter case you
> must check the installer targetOS.

How?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Michael Van Canneyt via fpc-pascal



On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:


On Sun, 30 Aug 2020 14:16:14 +0200 (CEST)
Michael Van Canneyt via fpc-pascal 
wrote:


On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:

> On Sun, 30 Aug 2020 13:38:12 +0200 (CEST)
> Michael Van Canneyt via fpc-pascal 
> wrote:
> 
>> On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:
>> 
>> > Hi,

>> >
>> > AddLibrary('libbla.pp') creates under Linux "blalib.so".
>> > I want "bla.so".
>> >
>> > How to do that? 
>> 
>> AddLibrary('libbla.pp').SetExeName('bla'); 
>
> Creates "bla", not "bla.so". 


I had a look at the code, it indeed cuts off the extension.
That does not seem logical.

Maybe we need to add OutputFileName : string which simply sets the -o
option, SetExeName() can then just set OutputFileName.


Is there a workaround for fpc 3.2.0?


Yes:

AddLibrary('libbla.pp').Options.Add('-obla.so')


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Mattias Gaertner via fpc-pascal
On Sun, 30 Aug 2020 14:16:14 +0200 (CEST)
Michael Van Canneyt via fpc-pascal 
wrote:

> On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:
> 
> > On Sun, 30 Aug 2020 13:38:12 +0200 (CEST)
> > Michael Van Canneyt via fpc-pascal 
> > wrote:
> >  
> >> On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:
> >>   
> >> > Hi,
> >> >
> >> > AddLibrary('libbla.pp') creates under Linux "blalib.so".
> >> > I want "bla.so".
> >> >
> >> > How to do that?   
> >> 
> >> AddLibrary('libbla.pp').SetExeName('bla');  
> >
> > Creates "bla", not "bla.so".  
> 
> I had a look at the code, it indeed cuts off the extension.
> That does not seem logical.
> 
> Maybe we need to add OutputFileName : string which simply sets the -o
> option, SetExeName() can then just set OutputFileName.

Is there a workaround for fpc 3.2.0?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Michael Van Canneyt via fpc-pascal



On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:


On Sun, 30 Aug 2020 13:38:12 +0200 (CEST)
Michael Van Canneyt via fpc-pascal 
wrote:


On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:

> Hi,
>
> AddLibrary('libbla.pp') creates under Linux "blalib.so".
> I want "bla.so".
>
> How to do that? 


AddLibrary('libbla.pp').SetExeName('bla');


Creates "bla", not "bla.so".


I had a look at the code, it indeed cuts off the extension.
That does not seem logical.

Maybe we need to add OutputFileName : string which simply sets the -o
option, SetExeName() can then just set OutputFileName.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Mattias Gaertner via fpc-pascal
On Sun, 30 Aug 2020 13:38:12 +0200 (CEST)
Michael Van Canneyt via fpc-pascal 
wrote:

> On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:
> 
> > Hi,
> >
> > AddLibrary('libbla.pp') creates under Linux "blalib.so".
> > I want "bla.so".
> >
> > How to do that?  
> 
> AddLibrary('libbla.pp').SetExeName('bla');

Creates "bla", not "bla.so".


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpmake addlibrary

2020-08-30 Thread Michael Van Canneyt via fpc-pascal



On Sun, 30 Aug 2020, Mattias Gaertner via fpc-pascal wrote:


Hi,

AddLibrary('libbla.pp') creates under Linux "blalib.so".
I want "bla.so".

How to do that?


AddLibrary('libbla.pp').SetExeName('bla');

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] fpmake addlibrary

2020-08-30 Thread Mattias Gaertner via fpc-pascal
Hi,

AddLibrary('libbla.pp') creates under Linux "blalib.so".
I want "bla.so".

How to do that?

Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] bug tracker (bugs.freepascal.org) APPLICATION ERROR #400 (db connection failed)

2020-08-30 Thread Christo Crause via fpc-pascal
On Sun, Aug 30, 2020 at 11:26 AM Michael Van Canneyt via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

>
>
> On Sun, 30 Aug 2020, Christo Crause via fpc-pascal wrote:
>
> > On Sun, Aug 30, 2020 at 9:45 AM Dmitry Boyarintsev via fpc-pascal <
> > fpc-pascal@lists.freepascal.org> wrote:
> >
> >> The site opens up with:
> >>
> >> APPLICATION ERROR #400
> >>
> >
> > I also get the above mentioned error when trying to open the website.
>
> The problem should be fixed.
>

I confirm the bug tracker is available again.  Thank you Michael!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] bug tracker (bugs.freepascal.org) APPLICATION ERROR #400 (db connection failed)

2020-08-30 Thread Michael Van Canneyt via fpc-pascal



On Sun, 30 Aug 2020, Christo Crause via fpc-pascal wrote:


On Sun, Aug 30, 2020 at 9:45 AM Dmitry Boyarintsev via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:


The site opens up with:

APPLICATION ERROR #400



I also get the above mentioned error when trying to open the website.


The problem should be fixed.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] bug tracker (bugs.freepascal.org) APPLICATION ERROR #400 (db connection failed)

2020-08-30 Thread Christo Crause via fpc-pascal
On Sun, Aug 30, 2020 at 9:45 AM Dmitry Boyarintsev via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

> The site opens up with:
>
> APPLICATION ERROR #400
>

I also get the above mentioned error when trying to open the website.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal