Skip to content

Add tigervnc #661

Merged
merged 7 commits into from
Mar 9, 2018
Merged

Add tigervnc #661

merged 7 commits into from
Mar 9, 2018

Conversation

donald
Copy link
Collaborator

@donald donald commented Mar 9, 2018

This updates FLTK (an X toolkit) and installs tigervnc. tigervnc include a VNC client (vncviewer) and VNC server to share/export the X-screen via VNC ( `x0vncserver' ) and a complete X-Server to offer independent X-Session via VNC.

Update required for tigervnc

FLTK release history: http://www.fltk.org/articles.php?L825
There is some logic in CMakeLists.txt to create the list of required
link libraries in FLTK_LIBRARIES. This depends on the output of
FindFLTK.cmake provided by cmake.

The logic seems to fail as several libraries are missing in the end:

    [ 89%] Linking CXX executable vncviewer
    /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
    /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib64/libfltk.a(Fl_Window_shape.o):
    undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
    /lib/libdl.so.2: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    vncviewer/CMakeFiles/vncviewer.dir/build.make:427: recipe for target
    'vncviewer/vncviewer' failed
    make[2]: *** [vncviewer/vncviewer] Error 1

Overwrite the computed FLTK_LIBRARIES with the output of

    fltk-config --use-images --ldflags

which seems to enumerate the required libraries.
Xvnc is the X.org xserver with a framebuffer display (like Xvfb) but
adapted by tigervnc to offer the framebuffer via the vnc protocol.

Build instructions :

https://github.com/TigerVNC/tigervnc/blob/7cc9f6ad07db1f4f7f141d229d2dc5035bd2f89d/BUILDING.txt#L97

Some configure option suggested by the above instructions are not
recognized by the x.org xserver 1.19.6 configure script and removed:

    --disable-config-dbus
    --enable-install-libxf86config
    --with-fontdir
    --with-dri-driver-path

The option --disable-xwayland has been added to avoid the creation of
/usr/bin/Xwayland conflicting with the xorg-server package.

Installation of a Xserver manpage has been disabled for the same
reason.
Default the x-session to xfce4 instead of twm and a xterm.
@thomas thomas merged commit 32da7c6 into master Mar 9, 2018
@donald donald deleted the add-tigervnc branch March 10, 2018 13:35
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants