Skip to content

Building TigerVNC shmvncserver

It is required to configure cmake for cross-compilation. Create CC_TOOLCHAIN_FILE.cmake and add the following code to it:

SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER   /opt/arm-2011.09/bin/arm-none-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER   /opt/arm-2011.09/bin/arm-none-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH  /opt/XA/usr/)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

We suggest to create a directory for an out-of-tree build:

mkdir build
cd build

Finally it is possible to build tigervnc shmvnc server:

cmake -DCMAKE_TOOLCHAIN_FILE=CC_TOOLCHAIN_FILE.cmake ..
make

If some TigerVNC components do not build due to unmet dependencies, it is possible to build just shmvncserver which is the only binary required by QtToRemote:

cd build/unix/shmvncserver
make