LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.08k stars 483 forks source link

How to install LibVNCServer/LibVNCCLient in Ubuntu #526

Closed cybersecurity99 closed 2 years ago

cybersecurity99 commented 2 years ago

Hi I am trying install LibVNC but there is no guide . How to build didn't work I download the source and run the following commands:

cd build
cmake ..
cmake --build .```

But when I try to run this sample program 

include <rfb/rfb.h>

int main(int argc,char* argv) { rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4); server->frameBuffer=malloc(400300*4); rfbInitServer(server); rfbRunEventLoop(server,-1,FALSE); return(0); }


I get the issue rfb/rfb.h not found.
Is there any solution to this
bk138 commented 2 years ago

You need to read up on the basics :-)

See https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html for how to specify the include path.

Also, libvncserver is available prepackaged in Ubuntu, you need to install https://packages.ubuntu.com/focal/libvncserver-dev