Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-07

ques about libraries

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabriel Guzmics

I now played around with free pascal. my friends mean i am an idiot still believing open source will make it to something one day. I think, right, maybe nearly every open source project on the net is in development, but linux shows us, that open source HAS power, and not just one big company can rule the software base.

well what is really important about freepascal is, that it has so many compiling targets and options. well but whats about the libraries?

my question is, if anybody could list libraries running under win32 and linux x, with following abstract codes (so the source code of the prog hasnt to be modified, only maybe the uses list, to port it to another system)

* a thread lib (VERY important, abstract thread lib)
* a graphics lib, gfx lib with opt. hardware acc. (i think this is easiest -> opengl)
* an abstraction to sockets working on both platforms. maybe on more.

* abstract input routines like keyboard and mouse
* dosumentation or short help files

i am browsing the PAS files i have, maybe somebody can tell me faster.

with abstract i mean that system dependent functions are bound to an individual API. e.g. i can put a pixel in each system with "PutPixel".

most important for me is threading and socks, mostly TCP/IP, i personally dont use any other network protocol (since its standard)

Reply by email

Michael Van Canneyt
to Gabriel Guzmics
Gabriel Guzmics wrote 9 lines
I now played around with free pascal. my friends mean i am an idiot still believing open source will make it to something one day. I think, right, maybe nearly every open source project on the net is in development, but linux shows us, that open source HAS power, and not just one big company can rule the software base. well what is really important about freepascal is, that it has so many compiling targets and options. well but whats about the libraries? my question is, if anybody could list libraries running under win32 and linux x, with following abstract codes (so the source code of the prog hasnt to be modified, only maybe the uses list, to port it to another system) * a thread lib (VERY important, abstract thread lib)

Use glib; it has a threads module.

* a graphics lib, gfx lib with opt. hardware acc. (i think this is easiest -> opengl)

GTK and OpenGL would be best ATM.

* an abstraction to sockets working on both platforms. maybe on more.

The standard sockets unit is cross-platform.

* abstract input routines like keyboard and mouse

GTK would take care of that.

* dosumentation or short help files
LateX is recommended; For source documentation there is pasdoc or fpdoc;
Show quoted text 5 lines
i am browsing the PAS files i have, maybe somebody can tell me faster. with abstract i mean that system dependent functions are bound to an individual API. e.g. i can put a pixel in each system with "PutPixel".

GTK does that.

most important for me is threading and socks, mostly TCP/IP, i personally dont use any other network protocol (since its standard)

The problem with threading is that the RTL is _not_ yet thread safe, although that is being worked on. This problem can be solved by not using some standard functions.

Michael.

Reply by email

Thomas Schatzl
to Gabriel Guzmics: I now played around with free pascal. my friends mean i am an idiot still believing open…

Hi,

From: Gabriel Guzmics
Subject: [fpc-pascal]ques about libraries

Show quoted text 6 lines
well what is really important about freepascal is, that it has so many compiling targets and options. well but whats about the libraries? my question is, if anybody could list libraries running under win32 and linux x, with following abstract codes (so the source code of the prog hasnt to be modified, only maybe the uses list, to port it to another

system)

Well, this is nothing but a dream. Prepare to use ifdef's here and there since the rtl units are not 100% cross-platform compatible as soon as you require more functionality as the TP/BP rtl provides.

* a thread lib (VERY important, abstract thread lib)

FPC isn't thread safe yet. Although there is some sort of an abstract thread lib in the classes unit (called TThread afair) it makes no sense using it atm. Even replacing with some platform specific code might not help.

* a graphics lib, gfx lib with opt. hardware acc. (i think this is easiest -> opengl)

GTK, OpenGL, probably SDL (uses OpenGL)

* an abstraction to sockets working on both platforms. maybe on more.

Hmm. Try the sockets unit in combination with the inet unit (latter only available on Linux platform last time I looked, you might have to use the winsock unit) from the packages

* abstract input routines like keyboard and mouse

Don't know anything here, except probably the API (/2) units. I've seen some Win32 sources in the packages about it and it seems promising. I don't know whether it's useable at all though.
Using GTK might solve this though.

I might be wrong, feel free to correct me.

Regards,
Thomas

Reply by email