[fpc-pascal] FreePascal inc file
Hello, I tried to compile something that used "osunits.inc" on a Raspberry Pi. I couldn't find the file. Yes I installed fpc-source. Thanks for your attention, Terry H. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] FreePascal and MySQL 8.0
I just upgraded to a new laptop and see that MariaDB is using MySQL 8.0 . I also see there is no connector in my Free Pascal install for MySQL 8.0. I do see that there is an open ticket to create a connector. Is there an Alpha or Beta version of the connector available that I can try? Thank you for your attention, Terry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreePascal and MySQL 8.0
I hate to sound stupid, but ... I found the link to fpc.zip, but firefox can't do anything with it. If it is a ftp site I need to go to, I need the address and user/pw/port to get in. I found a refrence to fpc.dfmk.hu, but I don't know user/pw/port. Thank You for your attention. Terry H. On Sat, 18 Sep 2021, Terry A. Haimann via fpc-pascal wrote: > I just upgraded to a new laptop and see that MariaDB is using MySQL 8.0 > . I also see there is no connector in my Free Pascal install for MySQL > 8.0. I do see that there is an open ticket to create a connector. Is > there an Alpha or Beta version of the connector available that I can > try? Trunk contains the mysql 8.0 connector. You should be able to simply copy the files and use the units with 3.2.x Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FreePascal and MySQL 8.0
https://github.com/fpc/FPCSource/tree/main/packages/mysql I do not understand. I see a source file for mysql80dyn.pp, but shouldn't tthere also be a mysql80conn.pp? Terry H. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Test Free Pascal program not compiling
Trying to compile a small test pascal program on a arm cpu. I beleive it is an a53. Libre Le Potato I am getting the following error: Error: Error while assembling exitcode 1 Thanks in advance, Terry H. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Test Free Pascal program not compiling
RDBOOL [0.398] Adding helper for SYSTEM_$$_LONGBOOL [0.398] (SQRT) Load from SQRT (implementation) unit MATH [0.398] (MATH) Loading unit MATH [0.398] Unitsearch: Math.ppu [0.398] Searching file Math.ppu... not found [0.398] Searching file math.ppu... not found [0.398] Searching file MATH.PPU... not found [0.398] Unitsearch: Math.pp [0.398] Searching file Math.pp... not found [0.398] Searching file math.pp... not found [0.398] Searching file MATH.PP... not found [0.398] Unitsearch: Math.pas [0.398] Searching file Math.pas... not found [0.398] Searching file math.pas... not found [0.398] Searching file MATH.PAS... not found [0.398] Unitsearch: /usr/lib/fpc/3.0.2/units/arm-linux/rtl/Math.ppu [0.398] Searching file /usr/lib/fpc/3.0.2/units/arm- linux/rtl/Math.ppu... not found [0.398] Searching file /usr/lib/fpc/3.0.2/units/arm- linux/rtl/math.ppu... found [0.398] PPU Loading /usr/lib/fpc/3.0.2/units/arm-linux/rtl/math.ppu [0.398] (MATH) PPU Name: /usr/lib/fpc/3.0.2/units/arm- linux/rtl/math.ppu [0.398] (MATH) PPU Time: 2017/02/18 16:59:12 [0.398] (MATH) PPU Flags: 178304 [0.398] (MATH) PPU Crc: 4669D5C9 [0.398] (MATH) PPU Crc: 655D56A5 (intfc) [0.398] (MATH) PPU Crc: BEE36B37 (indc) [0.398] (MATH) Number of definitions: 520 [0.398] (MATH) Number of symbols: 1430 [0.398] (MATH) PPU Source: math.pp not available [0.398] (MATH) PPU Source: mathu.inc not available [0.398] (MATH) Load from MATH (interface) unit SYSTEM [0.406] (MATH) Adding dependency: MATH depends on SYSTEM [0.406] (MATH) Load from MATH (interface) unit OBJPAS [0.406] (MATH) Adding dependency: MATH depends on OBJPAS [0.406] (MATH) Load from MATH (interface) unit SYSUTILS [0.406] (MATH) Adding dependency: MATH depends on SYSUTILS [0.414] (MATH) Finished loading unit MATH [0.414] Searching file Sqrt.pas... found [0.414] Sqrt.pas(3,1) (SQRT) Parsing implementation of Sqrt.pas [0.414] Sqrt.pas(2,16) Hint: Unit "math" not used in Sqrt [0.414] (SQRT) Unloading resource unit FPINTRES (not needed) [0.422] Assembling sqrt [0.422] Searching file /usr/lib/fpc/3.0.2/as... not found [0.422] Searching file /usr/lib/fpc/3.0.2/AS... not found [0.422] Searching file /usr/local/bin/as... not found [0.422] Searching file /usr/local/bin/AS... not found [0.430] Searching file /usr/bin/as... found [0.430] Using assembler: /usr/bin/as [0.430] Executing "/usr/bin/as" with command line "-mfpu=softvfp -o Sqrt.o Sqrt.s" Assembler messages: Error: unrecognized option -mfpu=softvfp [0.508] Sqrt.pas(10,27) Error: Error while assembling exitcode 1 [0.508] Sqrt.pas(10,27) Fatal: There were 2 errors compiling module, stopping [0.570] Fatal: Compilation aborted Error: /usr/bin/ppcarm returned an error exitcode terry@libre-computer:~/Documents/fpc/Silly$ On Mon, 2022-09-12 at 07:22 +0200, Christo Crause wrote: > > On Mon, 12 Sep 2022, 02:59 Terry A. Haimann via fpc-pascal, < > fpc-pascal@lists.freepascal.org> wrote: > > Trying to compile a small test pascal program on a arm cpu. I > > beleive > > > > it is an a53. Libre Le Potato > > > > > > > > I am getting the following error: > > > > > > > > Error: Error while assembling exitcode 1 > > > > > > > > Thanks in advance, > > > > > > > > Terry H. > > Enable the compiler's verbose mode (-va). The real error is sometimes > printed much earlier in the compiler output. > > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] FreePascal and the OrangePi
Dumb ? What download should I use to install the latest version of FreePascal on the OrangePi 4 LTS, I am running Debian 3.0.6 Bullseye. The Orange Pi 4 LTS is an SBC running an ARM Processor. Rockchip 3399 SOC http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/orange-pi-4-LTS.html ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] Question about tprocess from fpc
I recently tried to execute a sed command from Lazarus, but didn't receive any output. But when I imbedded the sed command in a script and then executed the script from tprocess, it worked fine. Why is this? I have run across similar issues from other Linux commands when trying to execute them from a Free Pascal program. The work around I have found is to hide them in a script. Not pretty, but it works. This was run on a i7-8700 and I am running Linux Mint 20.2 and am using Mate 1.24 Source Code Function CaptureArtWork(b, e: LongInt): TStringList; Var ArtProc:TProcess; ArtSL: TStringList; i: LongInt; Begin ArtProc := TProcess.Create(nil); ArtSL := TStringList.Create; ArtProc.Executable := 'sed'; ArtProc.Parameters.Add('-n'); ArtProc.Parameters.Add('"' + IntToStr(b) + ',' + IntToStr(e) + 'p"'); ArtProc.Parameters.Add('MyFileName'); ArtProc.Options := ArtProc.Options + [poWaitOnExit, poUsePipes]; ArtProc.Execute; ArtSL.LoadFromStream(ArtProc.Output); ArtProc.Free; CaptureArtWork := ArtSL; End; -- Terry A. Haimann ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal