Recent

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Graphics / Re: Splitting Picture into Quads using Quadtree ?
« Last post by Dzandaa on Today at 06:16:22 pm »
Hi,

@ADMGNS:

It works now, but if I load an image and click cmdColorCount, I have a crash here:

Code: Pascal  [Select][+][-]
  1.   for k:=0 to nSize1-1 do
  2.   begin
  3.     c := (p^ shl 8) shr 8; // ie, c := c and $00FFFFFF; // <---- here
  4.     inc(hist[c]);
  5.  
  6.     inc(p);
  7.   end;
  8.  
  9.  

Perhaps the size of the picture is too big.

Also, you can test with

Code: Pascal  [Select][+][-]
  1.  for k:=0 to Pred(nSize1) do
  2.  

I don't know if it is faster.
B->
22
General / Re: Portable verion of FPC and Lazarus
« Last post by backprop on Today at 06:07:53 pm »
Martin, I really have no time nor wish to  try or ask anywhere, but here. I simply need solution which works. I have listed FPC arguments and noticed that @<x>, but that is related to additional config option and now well explained, it is not clear what it does. Rigid path to it is all necessary in this case, overriding any "self guidance logic". Lazarus have pcp for command line, but that seems is oveeriden in GUI...

Probably is the best to use fpc/<version>... etc stile anyway, as overriding with exact paths seem to make sometimes  problems too... And generic fpc filename is used as compiler... All in all, not a clear way how to simply set things as they where needed.
23
Games / Re: Knigo
« Last post by jcmontherock on Today at 06:03:59 pm »
I try to compile Knigo and I get the following error. What I did wrong ?
Code: Pascal  [Select][+][-]
  1. Knigo.lpr(347,1) Error: Internal error 200603061
24
Linux / Re: Lazarus Main and Gnome/Wayland
« Last post by zeljko on Today at 06:03:18 pm »
sudo apt install libgtk-3-dev and then try again to build it.
EDIT: some other devel packages are needed too: libcairo2-dev libpango1.0-dev libgdk-pixbuf-2.0-dev and libglib2.0-dev ... just install all of them and you're good to go.
25
General / Re: Portable verion of FPC and Lazarus
« Last post by Martin_fr on Today at 05:55:59 pm »
As I said, fpcupdeluxe may be able to provide answers. Ask there.

It dose a script that calls

Code: Bash  [Select][+][-]
  1. #!/bin/sh
  2. fpc XXX_arg_for_set_config  @_

That script then is used as compiler.

that would mean you can do anything you need in that script. (though nothing to slow, as it is called for every fpc invocation)




IF it is just for your own use => i.e. not "portable" but a "custom install in a custom folder" and that folder stays fix, and you can ensure no conf in /home => then the ../etc location should work.

I definitely have that working on all my VM. Each of my VM has 3.2.2, 3.2.3 and 3.3.1 in different builds (opt/dbg). Of course, all my VM do not have a global config file at all. (all I need to start them is one ppcx compiler)
26
Editor / Re: Lazarus 4.99 - New features
« Last post by Martin_fr on Today at 05:46:05 pm »
For Linux existed some configurational sets to redirect stdio, but that was rather copmlicated and OS dependent. Every single IDE I'm aware allows that automatically.
StreamIO is cross-platform.

You should sue AI for hallucinating. You clearly invented it. ;) (SCNR). I have no idea what you talk about, in the context of this conversation.

The IDE has a global option to specify a pty for redirecting the output of a debugged app. 
In some cases it may also have been possible to use > < redirection in "Run Parameters"




@backprop

The Console Window (on Linux, with the option for plain/hex display of the output => I guess that is the one you talk about?) did indeed exist for many years. And several major versions of Lazarus (if not even before 1.0).

But it did not open when the app printed something. You had to go to the menu (view > debug window) and open it (and for confusion there was a 2nd "debug output" which is something else)....

And the console window also allows (and has done for a long time) to enter text, which will be sent to stdin.

If you mean a different window => then I am not sure what you meant.


What it does not (and never did) is terminal emulation => if you send escape sequences for color, or cursor placement, or clear screen, .... All that does not work (for that only the pty trick works)


20 years back, that worked by using a terminal (xterm) as  start app. 20 years back that did just run the app inside the same process, and so the debugger would attach to the xterm, and eventually end up debugging the app...
Nowadays that just starts a terminal-server, and the trick no longer works.

Running inside gdbserver, inside a terminal => that may work. But is rather complex to setup, and needs setup for each and every run....

I have ideas how to better integrate that (had those ideas for some time already). But so far not had the time to implement it. (and it likely still will be a while)



27
General / Re: Portable verion of FPC and Lazarus
« Last post by backprop on Today at 05:37:40 pm »
I have planned to remove all FPC/Lazarus installations from .deb, that will also remove unwanted numerous of cfg files. There is also fpcmkcfg thus if that also fail, then it is definitely waste of time. If FPC decide by it's own what config file to use, then it is fairly a shame to whoever make it to work as this...
28
Linux / Re: Lazarus Main and Gnome/Wayland
« Last post by Jonax on Today at 05:37:09 pm »
OK. So I spawned a new VM. Debian 13 with Gnome and Wayland. After some troubles the installation of Trunk with GTK2 succeeded. The top bar keeps misbehaving in Gnome on Wayland. I tried building the GTK3 Lazarus but there was some glitch. Is probably just some failed setting which I could adjust if I knew where to look. I agree with the opinion that Lazarus on Gnome is not very beginner friendly.

Here a screenshot of the attempt to build with GTK3.
29
Editor / Re: Lazarus 4.99 - New features
« Last post by Thaddy on Today at 05:29:31 pm »
For Linux existed some configurational sets to redirect stdio, but that was rather copmlicated and OS dependent. Every single IDE I'm aware allows that automatically.
StreamIO is cross-platform.
30
No it is not an ordinary local variable as per my example. You can only use it as a static variable.
It has the same semantics as the field of a record/class/object but at procedure/function level,
static vars can only be changed by explicit reads or writes, thus capturing state, just like fields do.
Pages: 1 2 [3] 4 5 ... 10

TinyPortal © 2005-2018