Skip to content

Commit

Permalink
tigervnc: Add libraries from fltl-config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Mar 9, 2018
1 parent cded3bf commit 990d62c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tigervnc.be0
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ SRCURL[0]="https://github.com/TigerVNC/tigervnc/archive/v${PKGVERSION}/tigervnc-
# bee_patch "${@}"
#}

#mee_configure() {
# bee_configure
#}
mee_configure() {
bee_configure -DFLTK_LIBRARIES="$(fltk-config --use-images --ldflags)"
}

#mee_build() {
# bee_build
Expand Down

0 comments on commit 990d62c

Please sign in to comment.