Re: [Lazarus] fpccfg is missing in new Lazarus install
.. get a newer lazarus from: https://www.lazarus-ide.org/index.php?page=downloads Am 14.05.20 um 15:59 schrieb Terry A. Haimann via lazarus: I just did a fresh install of Lazarus and it says the fpc.cfg file isn't found. These are the files I used to install lazarus with: fpc-src_2.6.2-0_amd64.deb fpc_2.6.2-0_amd64.deb lazarus_1.0.10-0_amd64. I ran a search for fpc.cfg and ffound these files: /home/terry/Downloads/fpc.cfg /etc/fpc.cfg ls -la /etc/fpc.cfg -rw-r--r-- 1 root root 7799 May 14 08:09 /etc/fpc.cfg Where does the file need to be inorder for Lazarus to find it? This is a Linux Mint 19.2 desktop using Mate and the processor is a i7- 8700, 16gb of ram. Terry -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fpccfg is missing in new Lazarus install
On Thu, 14 May 2020 08:59:35 -0500, "Terry A. Haimann via lazarus" wrote: >Where does the file need to be inorder for Lazarus to find it? > Copy it from /etc into your home dir as follows: cp /etc/fpc.cfg ~/.fpc.cfg Notice the period that makes it a hidden file. Lazarus looks for it in several places and this ios one of them. -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] fpccfg is missing in new Lazarus install
On Thu, 14 May 2020 08:59:35 -0500, "Terry A. Haimann via lazarus" wrote: >I just did a fresh install of Lazarus and it says the fpc.cfg file >isn't found. These are the files I used to install lazarus with: > >fpc-src_2.6.2-0_amd64.deb >fpc_2.6.2-0_amd64.deb >lazarus_1.0.10-0_amd64. > >I ran a search for fpc.cfg and ffound these files: > >/home/terry/Downloads/fpc.cfg >/etc/fpc.cfg > >ls -la /etc/fpc.cfg >-rw-r--r-- 1 root root 7799 May 14 08:09 /etc/fpc.cfg > >Where does the file need to be inorder for Lazarus to find it? > >This is a Linux Mint 19.2 desktop using Mate and the processor is a i7- >8700, 16gb of ram. > You are aware that fpc is now at 3.0.4 and Lazarus at 2.0.8? Seems like you are installing very old versions 2.6.2 and 1.0.10 respectively... -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
[Lazarus] fpccfg is missing in new Lazarus install
I just did a fresh install of Lazarus and it says the fpc.cfg file isn't found. These are the files I used to install lazarus with: fpc-src_2.6.2-0_amd64.deb fpc_2.6.2-0_amd64.deb lazarus_1.0.10-0_amd64. I ran a search for fpc.cfg and ffound these files: /home/terry/Downloads/fpc.cfg /etc/fpc.cfg ls -la /etc/fpc.cfg -rw-r--r-- 1 root root 7799 May 14 08:09 /etc/fpc.cfg Where does the file need to be inorder for Lazarus to find it? This is a Linux Mint 19.2 desktop using Mate and the processor is a i7- 8700, 16gb of ram. Terry -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Keyboard mapping probelm
On 06/05/2020 1:19 am, Brian via lazarus wrote: > I forgot to add - I totally erased fpcup's entire tree and rebuilt > from scratch. No change. It's not about recompiling Lazarus. Probably more related to your customised settings in your $HOME/.lazarus/ directory. Start your lazarus from the command line with the paramater: ./lazarus --pcp=/tmp/lazarus where "/tmp/lazarus" is a totally empty directory. That should give you Lazarus with 100% default config values. If the problem goes way, then it's a key mapping issue in your ~/.lazarus/ directory. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Where to define conditionals for FPC
On Tue, 12 May 2020 13:49:08 +0200, Marc Weustink via lazarus wrote: While going through your post I got into this section: >> 3) Compiling same code with Delphi and FPC? >> Do you convert your projects (manually) to make it possible to use >> both Delphi and Lazarus as the IDE for further work on the same >> sources? >> If so do you have any hints as to what to look out for? > >Yes, it is a manual conversion. But in our case not that hard. Most of >the converted projects are windows (network) services. >The difference between a delphi service and a fpc daemon is covered in a >BaseServer class / unit. So for services derived from it there is no >different code. Since I am dealing with a Windows Service too I wonder how you do it to get a daemon application in Lazarus? I have installed the package lazdaemon 0.9.9 on advice elsewhere. It is said to be implementing services, but I don't know if it is involved in the Delphi conversion... Coide snippets: My service application is created in the dpr file: if not Application.DelayInitialize or Application.Installing then Application.Initialize; Application.CreateForm(TSSRemoteServer, SSRemoteServer); Application.Run; And in the main source file: type TSSRemoteServer = class(TService) // <== Using TService procedure ServiceStart(Sender: TService; var Started: Boolean); procedure ServiceStop(Sender: TService; var Stopped: Boolean); procedure ServiceShutdown(Sender: TService); procedure ServiceDestroy(Sender: TObject); procedure ServiceCreate(Sender: TObject); private {$IFNDEF FPC} //Delphi sckServer: TServerSocket; {$ELSE} //FPC sckServer: TLTcp; //lNet socket {$ENDIF} normal field and method declarations follow ... procedure ServiceController(CtrlCode: DWord); stdcall; begin SSRemoteServer.Controller(CtrlCode); end; var SSRemoteServer: TSSRemoteServer; -- Bo Berglund Developer in Sweden -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus