Re: [fpc-pascal] Xlib bindings

2008-11-29 Thread Graeme Geldenhuys
Uh?? That already exists! That's how I managed to write fpGUI , which talks directly to GDI and XLib. See: fpc-2.3.1/src/packages/x11/src Regards, - Graeme - On Sat, Nov 29, 2008 at 12:35 AM, ik <[EMAIL PROTECTED]> wrote: > Hello, > > I'm binding xlib to FPC, and the code can be found at >

Re: [fpc-pascal] Xlib bindings

2008-11-29 Thread ik
It's not a full binding, but ony real basic binding ! I'm binding what's left. Including XCB, for future use. BTW on fpGUI you also bind specific functions, but if you have an already existed units based on the headers that you binded in fpGUI it can be helpful. Ido http://ik.homelinux.org/ On

[fpc-pascal] number of cpu cores

2008-11-29 Thread Mattias Gaertner
I need a default value of the number of maximum threads. Is there already some RTL function that can be used for that? For example if the program runs on a 2 x quad core it would be nice to get 8. Hyperthreading multipliers should be applied. Mattias

Re: [fpc-pascal] number of cpu cores

2008-11-29 Thread Florian Klaempfl
Mattias Gaertner schrieb: > I need a default value of the number of maximum threads. > Is there already some RTL function that can be used for that? > > For example if the program runs on a 2 x quad core it would be nice to > get 8. > Hyperthreading multipliers should be applied. No, but having s

Re: [fpc-pascal] number of cpu cores

2008-11-29 Thread Dariusz Mazur
Mattias Gaertner pisze: I need a default value of the number of maximum threads. Is there already some RTL function that can be used for that? For example if the program runs on a 2 x quad core it would be nice to get 8. Hyperthreading multipliers should be applied. I've found something on

Re: [fpc-pascal] number of cpu cores

2008-11-29 Thread Michalis Kamburelis
Florian Klaempfl wrote: > Mattias Gaertner schrieb: >> I need a default value of the number of maximum threads. >> Is there already some RTL function that can be used for that? >> >> For example if the program runs on a 2 x quad core it would be nice to >> get 8. >> Hyperthreading multipliers shoul

Re: [fpc-pascal] number of cpu cores

2008-11-29 Thread Marco van de Voort
In our previous episode, Michalis Kamburelis said: [ Charset ISO-8859-1 unsupported, converting... ] > Florian Klaempfl wrote: > > Mattias Gaertner schrieb: > >> I need a default value of the number of maximum threads. > >> Is there already some RTL function that can be used for that? > >> > >> For

[fpc-pascal] How to build 2.2.2-crosscompiler for arm-linux ?

2008-11-29 Thread Koenraad Lelong
Hello, In the past I built numerous fpc-crosscompilers for arm-linux but now I can't anymore. What I did : Downloaded and extracted fpcbuild-2.2.2.tar.gz make CPU_TARGET=arm OS_TARGET=linux NOGDB=1 NODOCS=1 crosszipinstall This complains that ppcrossarm is not found ! If I do the same with 2.2.0 I