Skip to content

mer-qa/libvncserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libVNCServer: A library for easy implementation of a VNC server.

Build in Sailfish OS SDK

This is how it works under linux.

  • Go to https://sailfishos.org/ and grab the Sailfish OS SDK and install it.

  • Check out the code (if not done already)

git clone https://github.com/mer-qa/libvncserver.git
  • Start the Sailfish OS SDK build engine virtual box machine
VBoxHeadless -s MerSDK &
  • Log into the build engine via ssh
ssh -p 2222 -i ~/SailfishOS/vmshare/ssh/private_keys/engine/mersdk mersdk@localhost
  • Navigate to the folder where you have cloned the git repo in step 2. You will find your home directory under /home/mersdk/share.

  • Build the RPM package for armv7hl

mb2 -t SailfishOS-armv7hl -s ./rpm/libvncserver.spec build
  • In the new created folder RPMS you will now find two rpm files

    These RPM files can now be installed in the armv7hl build target of the SDK or on the device (just LibVNCServer-0.9.9.29git7b9fc019-1.armv7hl.rpm, not the -devel package).

cd RPMS/
ls -l
total 448
-rw-rw-r-- 1 mersdk 1001 402729 2014-10-21 13:47 LibVNCServer-0.9.9.29git7b9fc019-1.armv7hl.rpm
-rw-rw-r-- 1 mersdk 1001  49429 2014-10-21 13:47 LibVNCServer-devel-0.9.9.29git7b9fc019-1.armv7hl.rpm
  • install them in the SailfishOS-armv7hl target so it's available to link against for other applications
sb2 -t SailfishOS-armv7hl -m sdk-install -R
rpm -ivh LibVNCServer-devel-0.9.9.29git7b9fc019-1.armv7hl.rpm LibVNCServer-0.9.9.29git7b9fc019-1.armv7hl.rpm
exit

Clone repo for upstream updates

git clone git@github.com:mer-qa/libvncserver.git
cd libvncserver
git submodule init
git submodule update
cd upstream/
git checkout -B reference-branch HEAD
cd ..
git remote add -f --no-tags upstream upstream
git branch reference-branch upstream/reference-branch

Update to upstream master

cd upstream/
git checkout master
git fetch origin

Instead of master also a tag or branch can be given, just ensure that the branch contains the new upstream code you want.

git merge origin master
git checkout -B reference-branch master
cd ..
git commit -a -m "[update] update to upstream X.Y.Z"
git subtree pull --squash --prefix=libVNCserver upstream reference-branch

About

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.

Resources

Stars

Watchers

Forks

Packages

No packages published