Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
Graphics / Re: Help needed with Cairo / Graphics
« Last post by Roland57 on Today at 12:25:16 pm »
The Cairo unit of FPC is referencing LibCairo2.dll only, but LibCairo2.dl on its own is referencing several others Dlls.

Maybe you should take a look to this repository. If I well understood, it's a Cairo DLL without dependencies (not tested).
2
General / Re: a Unit problem?
« Last post by Handoko on Today at 12:15:34 pm »
If the source code contains *.lpr, I believe you will have higher chances for successful compiling it if you use Lazarus. I could be wrong, but that is what I believe.

Some of the advantages of using Lazarus to open *.lpr files are:
-You can use Project Inspector to check what files are missing or miss-located
-You can use Project Options > Paths to configure all paths that are needed

You still can use FPC only to configure those things but you need pass the settings as command line options:
https://www.freepascal.org/docs-html/user/userap1.html
3
General / Re: a Unit problem?
« Last post by Zvoni on Today at 12:07:12 pm »
what's your fpc.cfg look like?
4
General / a Unit problem?
« Last post by EventHorizon on Today at 11:59:09 am »
Hello to all.

before posing the question, I would like to mention my setting: Void Linux 64bit, and fpc 3.2.2 (downloaded and installed by the site of FPC and not using the Void repositories, which have an older version). My installation works (I mean I have tested various programs).

To the question now:
From this site https://www.streetinfo.lu/computing/lazarus/doc/mandelbrot.html I have downloaded the corresponding program.
1. Unzipped the file
2. $ cd Downloads/mandelbrot_src
3. There are three files: mandelbrot.lpi,  mandelbrot.lpr,  mandelbrot.lps
4. Upon issuing
   
Code: Pascal  [Select][+][-]
  1. $ fpc mandelbrot.lpr
    I get:
   
Code: Pascal  [Select][+][-]
  1.     Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  2.     Copyright (c) 1993-2021 by Florian Klaempfl and others
  3.     Target OS: Linux for x86-64
  4.     Compiling mandelbrot.lpr
  5.     mandelbrot.lpr(14,18) Fatal: Can't find unit graph used by mandelbrot
  6.    Fatal: Compilation aborted
  7.    Error: /home/userX/bin/FPC/fpc-3.2.2/bin/ppcx64 returned an error exitcode
    I do not understand. Other programs using units seem to work. Am I doing something stupid?

    Thanks
5
General / Re: JEDI error but unit compiles??
« Last post by Roland57 on Today at 11:50:11 am »
I would like to see the file too.

Meanwhile, if SQL commands are really the issue, you could try to surround them like this:

Code: Pascal  [Select][+][-]
  1. {(*}
  2. Q.SQL.Text := 'SELECT *, Count(*) AS KT FROM MyTable WHERE  .....';
  3. {*)}
6
LCL / Re: Using KeyPress event, how to get subsequent key presses?
« Last post by Bart on Today at 11:32:53 am »
In a TMemo, during the KeyPressed event how do you get the key pressed to be "disposed of" (or dropped is maybe a better term) once you do what you want with it
Set Key to #0.

Bart
7
General / Re: Configure JCF messages
« Last post by DomingoGP on Today at 11:26:55 am »
I have added these options in the trunk version of Jedi code format to disable warning messages.
You have to insert one or more of the following comments in the unit source code to disable the messages.

//jcf:warnassigntofunctionname=off
//jcf:warncasenoelse=off
//jcf:warnemptyblock=off
//jcf:warnunusedparam=off

I hope this solves the problem for you.

Regards
Domingo

8
FV/Textmode IDE / Re: IDE instability on Raspberry Pi?
« Last post by rvk on Today at 10:37:14 am »
On rpi3 with bookworm 64bit it also hangs on File menu.
With rpi3 with bullseye 32bit it works but the screen handling is still a mess via SSH.

9
Graphics / Re: Boleeman's projects are published on GitHub
« Last post by AlexTP on Today at 10:18:04 am »
Added these 3 demos too (bgrabmp tree + spiral + bgrabmp spiral).
And new 'STARS' too.
10
LCL / Re: Using KeyPress event, how to get subsequent key presses?
« Last post by alpine on Today at 10:02:15 am »
*snip*
and while it reads the first key pressed, subsequent key presses leave KeyPressed stuck at the first character that was typed (viewing in the Watch window while debugging).  Once I grab that key (I am adding it to a buffer) how do I get the next key pressed to be captured by this function?
I'm not experiencing that behavior with TMemo.OnKeyPress, probably your problem lies somewhere else.

Lazarus 2.2.4 (rev lazarus_2_2_4) FPC 3.2.2 x86_64-linux-gtk2
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018