Recent

Author Topic: How to install fpc 3.3.1?  (Read 4275 times)

cpalx

  • Hero Member
  • *****
  • Posts: 753
How to install fpc 3.3.1?
« on: March 12, 2020, 02:56:39 am »
Hello,
i need to use fpreport, but it needs fpc 3.3.1, how can i install it? for windows and linux.

i tried fpcupdeluxe but always crash (in wondows and linux)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: How to install fpc 3.3.1?
« Reply #1 on: March 12, 2020, 05:30:44 am »
For Linux, see this wiki section.

For Windows, see this wiki section.

If you run into any problems, you know where to find us ;)

TyneBridges

  • Full Member
  • ***
  • Posts: 150
    • Personal blog
Re: How to install fpc 3.3.1?
« Reply #2 on: August 09, 2020, 08:17:43 pm »
Is there a clearer instruction anywhere on how to do this? I also need 3.3.1 (on Windows) but can't see how to select the version.

Thanks.
John H, north east England
Lover of the old Delphi, still inexperienced with FPC/Lazarus and not an instinctive programmer

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: How to install fpc 3.3.1?
« Reply #3 on: August 09, 2020, 08:50:54 pm »
Is there a clearer instruction anywhere on how to do this? I also need 3.3.1 (on Windows) but can't see how to select the version.

Thanks.

I would highly recommend FpcUpDeluxe.    I use it on Windows, but many use it on Linux as well.     I've been using it for almost two years now, and it has made things much easier for me (I stick to FIXES/FIXES, but have deployed TRUNK at different times for various reasons)
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: How to install fpc 3.3.1?
« Reply #4 on: August 09, 2020, 08:52:47 pm »
Fpcupdeluxe is the best.

What is the error message you get?

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: How to install fpc 3.3.1?
« Reply #5 on: August 09, 2020, 09:23:33 pm »
I believe if you install Fpc using the Windows installer just for the compiler and maybe the console IDE too, you can direct Lazarus paths settings over to it.

 its seems from memory this is what I did using one version of laz with different versions of fpc for the final output.
The only true wisdom is knowing you know nothing

TRon

  • Hero Member
  • *****
  • Posts: 2435
Re: How to install fpc 3.3.1?
« Reply #6 on: August 09, 2020, 09:43:13 pm »
I believe if you install Fpc using the Windows installer just for the compiler and maybe the console IDE too, you can direct Lazarus paths settings over to it.
Yeah, you can use as many compilers for lazarus that you want to...

Quote
its seems from memory this is what I did using one version of laz with different versions of fpc for the final output.
.. however, if TS is also wanting to install these compoannets into the IDE then the IDE needs to be recompiled.

That situation requires a bit more attention, as you then probably want to have multiple Lazarus installations.

dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: How to install fpc 3.3.1?
« Reply #7 on: December 06, 2020, 08:06:54 pm »
This is what I just did (on Linux):-

Code: Pascal  [Select][+][-]
  1. mkdir fpc
  2. svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
  3. cd fpc
  4. make all
  5. sudo make install

This gets me a /usr/local/lib/fpc/3.3.1/ppcx64  executable which works, but no fpc (that I can find).

What have I not understood?


dieselnutjob

  • Full Member
  • ***
  • Posts: 217
Re: How to install fpc 3.3.1?
« Reply #8 on: December 06, 2020, 08:37:06 pm »
doing this seems to work

Code: Pascal  [Select][+][-]
  1. cd /usr/bin
  2. sudo mv ppcx64 ppcx64.3.2.0
  3. sudo ln -s /usr/local/lib/fpc/3.3.1/ppcx64 ppcx64

I guess that I am still using the old fpc executable but on invocation it runs the 3.3.1 ppcx64 so it works

Code: Pascal  [Select][+][-]
  1. philip@macbookpro83:~$ fpc
  2. Free Pascal Compiler version 3.3.1 [2020/12/06] for x86_64
  3. Copyright (c) 1993-2020 by Florian Klaempfl and others
  4. /usr/local/bin/fpc [options] <inputfile> [options]
  5.  Only options valid for the default or selected platform are listed.
  6.  Put + after a boolean switch option to enable it, - to disable it.
  7.   @<x>   Read compiler options from <x> in addition to the default fpc.cfg
  8.   -a     The compiler does not delete the generated assembler file
  9.       -a5        Don't generate Big Obj COFF files for GNU Binutils older than 2.25 (Windows, NativeNT)
  10.      -al        List sourcecode lines in assembler file
  11.      -an        List node info in assembler file (-dEXTDEBUG compiler)
  12.      -ao        Add an extra option to external assembler call (ignored for internal)
  13.      -ap        Use pipes instead of creating temporary assembler files
  14.      -ar        List register allocation/release info in assembler file
  15.      -at        List temp allocation/release info in assembler file
  16.  -A<x>  Output format:
  17.      -Adefault  Use default assembler
  18.      -Aas       Assemble using GNU AS
  19.      -Agas      Assemble using GNU GAS
  20.      -Aas-darwin Assemble Darwin Mach-O using GNU GAS
  21. *** press enter ***
  22.  


bytebites

  • Hero Member
  • *****
  • Posts: 632
Re: How to install fpc 3.3.1?
« Reply #9 on: December 06, 2020, 08:43:20 pm »
Next time when you compile the compiler, specify the starting compiler as follows
make clean all FPC=/usr/bin/ppcx64.320

Peter H

  • Sr. Member
  • ****
  • Posts: 272
Re: How to install fpc 3.3.1?
« Reply #10 on: December 06, 2020, 09:11:53 pm »
I had problems with fpcupdeluxe before, but when I strictly followed these instructions, it worked for me:
https://youtu.be/Q1BQ_6w8whc
Also watch this: https://youtu.be/6jJ1FNfLwuU
The problem is, you cannot explore this program by clicking some buttons and see what they do.
Immediately a lengthy download starts if you click a button and it fails or you must abort it and ends up with some misconfigured garbage that is impossible to repair for non specialists.

The keypoints are:
Install a SVN client (TortoiseSVN for Windows).
Make a separate folder for the fpcupdeluxe executable, because it will store some ini files there.
Make an empty folder for lazarus and point fpcupdeluxe to this folder and start the installation for the ide and compiler of your choice.
It can run a hour, do not think the program died if nothing happens. If you think it died, you can watch it with task manager and see it has still some % CPU usage, so it did not die. Downloading all the sources needs time but doesnt give much CPU usage, so leave it alone in patience until ready. Do NOT use the "Halt" button.
« Last Edit: December 06, 2020, 10:04:45 pm by Peter H »

 

TinyPortal © 2005-2018