You are not logged in.

#1 2018-10-25 16:15:38

regid
Member
Registered: 2016-06-06
Posts: 201

(1) free pascal compiler WG flag (2) Gtk2Int can't find LazFileUtils

fpc is a free pascal compiler.
I downloaded about a 10 years old source, targeting Intel 32, and possibly other 32 bits, cpu. It has:

fpc -S2cgi -O1 -gl -WG -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/ -Fu/usr/lib/lazarus/lcl/units/$ARCH-$OS/gtk2/ -Fu/usr/lib/lazarus/packager/units/$ARCH-$OS/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr

For which I get:

Target architecture: x86_64
Target operating system: linux
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Error: Illegal parameter: -WG
Hint: -? writes help pages
Error: /usr/bin/ppcx64 returned an error exitcode

Indeed I am trying to build it, as is, by a 64 bits Intel cpu.

  1. Other than -gw, which generates DWARF debugging information, what might have been requested by -WG? The project might have been designed with Delphi on Windows, but the authors have ported it years ago to 32 bits Linux and Apple. For Linux they require Lazarus.

  2. Have you get more hints for building 32 bits pascal software to, and by, 64 bits machine?

Since you might have some knowledge about fpc or lazarus, you might want to look at a related lazarus-gtk2: Can't find unit LazFileUtils used by Gtk2Int bug I opened.

Last edited by regid (2018-10-25 18:57:21)


powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

#2 2018-10-25 21:58:45

regid
Member
Registered: 2016-06-06
Posts: 201

Re: (1) free pascal compiler WG flag (2) Gtk2Int can't find LazFileUtils

Comments are still requested, though it could be I found part of the answers:

  1. -WG is still unclear.

  2. google gave me FPC message: Can not find unit. Which was helping finding

    /usr/lib/lazarus/components/lazutils/

    So adding

    -Fu/usr/lib/lazarus/components/lazutils/ 

to magnifier-3.4/make.sh fpc command seem to solve the build problem.


powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

Board footer

Powered by FluxBB