Recent

Recent Posts

Pages: 1 ... 8 9 [10]
91
General / Re: a Unit problem?
« Last post by Thaddy on March 28, 2024, 01:10:07 pm »
change:
uses graph;
to uses ptcgraph;

ptcgraph is compatible with graph and often works a bit better on linux.
should not require any other code changes.
[edit] changed uses like so:
Code: Pascal  [Select][+][-]
  1. {$mode objfpc}{$H+}
  2. uses
  3.   {$IFDEF UNIX}
  4.   cthreads,
  5.   {$ENDIF}
  6.   Classes,
  7.   sysutils, ptccrt, ptcgraph;
tested linux64 debian bookworm and windows11-64. No other code changes.
Note as you can see, I also changed the cthreads define a bit, because you must always use cthreads since ptc is multithreaded.
92
Graphics / Re: Understanding and adjusting BGRABitmap's handling of line distances
« Last post by ArchChem on March 28, 2024, 12:58:12 pm »
Hello Circular,

Thank you very much for your reply and the warm welcome to this forum!

I've created a new project and executed your code. You find the result attached by.

Apart from my problem: Is there any general way in BGRABitmap to set the line distance in a TextRect?

By the way: I am using Arch Linux and Qt6, however Gtk2 leads to similar results.
93
General / Re: a Unit problem?
« Last post by Zvoni on March 28, 2024, 12:57:23 pm »
This looks fishy to me

Code: [Select]
# searchpath for units and other system dependent things
-Fu/home/userX/bin/FPC/fpc-$fpcversion/lib/fpc/$fpcversion/units/$fpctarget
-Fu/home/userX/bin/FPC/fpc-$fpcversion/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/home/userX/bin/FPC/fpc-$fpcversion/lib/fpc/$fpcversion/units/$fpctarget/rtl
check if those paths exists/are correct, and try if you can find unit graph.ppu by hand

EDIT: Forget what i said. You're on Linux.

But what TRon said: I looked at the link TS provided, and there is indeed an LPI-File in that zip
94
Windows (32/64) / Re: Complex package installation problem
« Last post by wp on March 28, 2024, 12:56:43 pm »
Tested yesterday that the UOS package (available in OPM) is working. Based on that and the sample projects provided you can try to create your favourite UOS audio player. If you have problems, ask here, the author of the package can be seen here in the forum occasionally.
95
General / Re: a Unit problem?
« Last post by TRon on March 28, 2024, 12:51:57 pm »
That's weird... Thank you though.
No, that is not weird.

a Lazarus project file (lpr) usually comes (also) accompanied with a Lazarus Project Information file (.lpi) and it is possible that this file contains information about dependencies. Now for a simple console project that is not an issue (unless relying on 3th party components) but it is for a full-fledged Lazarus program.

the FPC commandline compiler has no notion whatsoever about Lazarus and its project(s) (and accompanied) files. For that you either need to use Lazarus (IDE) or lazbuild (command line compiler that is able to compile Lazarus projects).
96
Networking and Web Programming / Re: Any upgrades to fpWeb page components?
« Last post by marcov on March 28, 2024, 12:50:25 pm »
The web stuff is also not merged to the fixes branch. So a future 3.2.4 would be mostly equal to 3.2.2 on this front.
97
Windows (32/64) / Re: Complex package installation problem
« Last post by JonBondy on March 28, 2024, 12:48:28 pm »
Thanks to everyone who is helping me!

I am relieved to learn that what I was trying to do is basically impossible, so I will move on to another audio player.

I deleted the OPM directory tree, uninstalled Lazarus, and installed a single instance of the 64-bit Lazarus.

I looked at Tools, Examples, and found nothing useful, so I used OPM to install ACS.  When I looked again at Tools, Examples, there still were no audio examples.  I then drilled down into the OPM directory tree and found "Player", which compiles, but does not work (has bugs). Progress.

Thanks, again!

Jon
98
General / Re: a Unit problem?
« Last post by EventHorizon on March 28, 2024, 12:42:09 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.
That's weird... Thank you though.

To be honest, for a start I would like to avoid Lazarus.
99
General / Re: a Unit problem?
« Last post by EventHorizon on March 28, 2024, 12:40:54 pm »
what's your fpc.cfg look like?
Well... I have attached here.
100
Graphics / Re: Help needed with Cairo / Graphics
« Last post by Roland57 on March 28, 2024, 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).
Pages: 1 ... 8 9 [10]

TinyPortal © 2005-2018