On 6/21/11 2:54 AM, Pierre Ossman wrote:
> Not being a CMake expert myself either, I took the easy way out and
> modified the build definitions in our local copy of TigerVNC. This
> entails:

At least with respect to FLTK, libjpeg-turbo, and GnuTLS, it's a fairly
simple matter of overriding CMake variables.  For instance, here's an
example of how I'm building on Linux:

cd {source_dir}
mkdir linux64
cd linxu64
CC=gcc4 CXX=g++4 cmake -G"Unix Makefiles"
-DGNUTLS_INCLUDE_DIR=/opt/gnutls/linux64/include/
-DGNUTLS_LIBRARY='/opt/gnutls/linux64/lib/libgnutls.a;/opt/gnutls/linux64/lib/libgcrypt.a;/opt/gnutls/linux64/lib/libtasn1.a;/opt/gnutls/linux64/lib/libgpg-error.a'
-DJPEG_INCLUDE_DIR=/opt/libjpegturbo/include
-DJPEG_LIBRARY=/opt/libjpeg-turbo/lib64/libjpeg.a
-DBUILD_NEW_VNCVIEWER=1 -DFLTK_INCLUDE_DIR=~/src/fltk.linux64
-DFLTK_LIBRARY=~/src/fltk.linux64/lib/libfltk.a ..

This links statically with the libjpeg-turbo SDK and with static builds
of GnuTLS and FLTK that I've previously installed.  The resulting binary
still depends on the X11 libs and other system libs.  build-xorg takes
care of the libstdc++ and libgcc dependencies.

Again, all of this will be documented soon.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to