Recent

Author Topic: Are there any existing vnc libs for use with Lazarus / fpc?  (Read 1917 times)

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Are there any existing vnc libs for use with Lazarus / fpc?
« on: March 02, 2021, 06:56:15 pm »
Greetings all,

In the C/C++ world, I have written a multi-view VNC viewer (SpiritVNC-FLTK) using libvncserver / libvncclient, but on some platforms, like macOS, FLTK doesn't seem to handle clicks as efficiently as on Linux, FreeBSD, OpenIndiana, etc.

Does anyone know of a library for use with Lazarus and/or fpc that provides VNC client stuff?  If not, I would consider starting to work on one, but don't want to duplicate something that's already out there.  When libvncserver / libvncclient was having problems in the past, I started work on my own VNC library, so I could try to port that progress over to fpc if there's nothing out there now.

Thank you friends! :D
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

MarkMLl

  • Hero Member
  • *****
  • Posts: 6647
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #1 on: March 02, 2021, 09:36:26 pm »
What is available in terms of non-Pascal libraries? Specifically, what's e.g. TigerVNC written in: if it's C (rather than C++) it should be possible to generate a Pascal binding for it using h2pas which would probably be a good start.

MarkMLl


MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #2 on: March 02, 2021, 09:47:29 pm »
What is available in terms of non-Pascal libraries? Specifically, what's e.g. TigerVNC written in: if it's C (rather than C++) it should be possible to generate a Pascal binding for it using h2pas which would probably be a good start.

MarkMLl

Thanks for the reply MarkMLl.

I was actually asking about Pascal-centric libraries for VNC.

Thank you! :D
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #3 on: March 02, 2021, 09:48:31 pm »
Also, I tried h2pas before on libvncserver and it didn't work out so well, but thanks for that suggestion too! :)
« Last Edit: March 02, 2021, 09:52:47 pm by willbprog9933 »
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

MarkMLl

  • Hero Member
  • *****
  • Posts: 6647
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #4 on: March 02, 2021, 10:06:44 pm »
Also, I tried h2pas before on libvncserver and it didn't work out so well, but thanks for that suggestion too! :)

/Why/ didn't it work? It usually takes a bit of fettling, and that's an extremely common topic of discussion.

However the basic question is C vs C++, hence my earlier question which you've brushed under the carpet.

> I was actually asking about Pascal-centric libraries for VNC.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #5 on: March 02, 2021, 10:07:22 pm »
Hello.

You may take a look at what was already done for Delphi, it should be (maybe) compatible with fpc.

For example:

http://delphivnc.sourceforge.net/
https://github.com/pjde/delphi-vnc
...
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #6 on: March 02, 2021, 11:19:57 pm »
Hello.

You may take a look at what was already done for Delphi, it should be (maybe) compatible with fpc.

...

Thanks Fred vS.  I checked those out, and the first one may give me a few ideas.  I guess I won't be duplicating any recent work if I start on a Pascal-centric library for VNC.

Thank you MarkMLl and Fred vS! :D
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

willbprog9933

  • Jr. Member
  • **
  • Posts: 93
  • Big guy, tiny brain :P
    • BrainOut!
Re: Are there any existing vnc libs for use with Lazarus / fpc?
« Reply #8 on: March 03, 2021, 07:57:04 am »
https://sourceforge.net/projects/conectavnc/
https://sourceforge.net/p/dsk/dskvnc/ci/1.0.0.528/tree/

Hello avra!

Thank you for those. :)  The first one appears to be just C/C++ but the second has some interesting things in it.

I still think I'll just need to make my own (and share with everyone, of course ;) ).  It will likely take a while because I'll be relearning the RFB protocol again and also learning to do heavy things in FPC.  Yay! :D

Thanks again!
macOS, Linux, FreeBSD and sometimes OpenIndiana.

Blessed, loved and forgiven! :D

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018