Lazarus

Programming => General => Topic started by: willbprog9933 on March 02, 2021, 06:56:15 pm

Title: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: willbprog9933 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
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: MarkMLl 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


Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: willbprog9933 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
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: willbprog9933 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! :)
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: MarkMLl 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
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: Fred vS 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
...
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: willbprog9933 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
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: avra on March 03, 2021, 07:50:57 am
https://sourceforge.net/projects/conectavnc/
https://sourceforge.net/p/dsk/dskvnc/ci/1.0.0.528/tree/
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: willbprog9933 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!
Title: Re: Are there any existing vnc libs for use with Lazarus / fpc?
Post by: avra on March 03, 2021, 10:20:40 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++
Look again: https://master.dl.sourceforge.net/project/conectavnc/0.9.0/Source/ConectaVNC_0.9.0.zip
TinyPortal © 2005-2018