I think the crux of the problem is your use of mingw32-make. I can't get mingw32-make to work at all with our build system. It should work fine if you use MSYS make, however:
cmake -G "MSYS Makefiles" {...} I tested this with your exact set of CMake arguments (apart from changing "MinGW Makefiles" to "MSYS Makefiles"), and it works fine as long as c:\mingw\msys\1.0\bin and c:\mingw\bin are in the PATH. On 11/29/11 2:03 PM, Ben Short wrote: > Hi, > > I have installed the following.. > > CMake 2.8.6 > mingw-get-inst-20111118 > gnutls-2.10.1 > > I only needed the vncviewer so I tried executing the following: > > c:\MinGW\binmingw32-make.exe vncviewer > > and it built the viewer ok. > > Thanks > > Ben > > > On 29 November 2011 19:57, DRC <dcomman...@users.sourceforge.net> wrote: >> On 11/29/11 10:03 AM, Ben Short wrote: >>> Hi, >>> >>> I'm trying to compile TigerVNC revision 4819 on windows xp. >>> >>> Here is my cmake command: >>> >>> cmake -G "MinGW Makefiles" -DUSE_INCLUDED_ZLIB=1 -DENABLE_GNUTLS=OFF >>> -DJPEG_INCLUDE_DIR=c:\libjpeg-turbo-gcc\include >>> -DJPEG_LIBRARY=c:\libjpeg-turbo-gcc\lib\libjpeg.a >>> -DGNUTLS_INCLUDE_DIR=c:\gnutls\include >>> -DGNUTLS_LIBRARY="c:\gnutls\lib\libgnutls.a;c:\gnutls\lib\libgcrypt.a;c:\gnutls\lib\libtasn1.a;c:\gnutls\lib\libgpg-error.a" >>> c:\Development\nalps\tigervnc_trunk_export >>> >>> Which executes fine. When I execute make I get the following error: >>> >>> Scanning dependencies of target wm_hooks >>> [ 96%] Building CXX object >>> win/winvnc/CMakeFiles/wm_hooks.dir/__/wm_hooks/wm_hooks.cxx.obj >>> [ 96%] Building RC object >>> win/winvnc/CMakeFiles/wm_hooks.dir/__/wm_hooks/wm_hooks.rc.obj >>> Linking CXX shared library wm_hooks.dll >>> c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: >>> c:\Development\nalps\tigervnc_trunk_export\win\wm_hooks\wm_hooks.def:4: >>> syntax error >>> c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe:c:\Development\nalps\tigervnc_trunk_export\win\wm_hooks\wm_hooks.def: >>> file format not recognized; treating as linker script >>> c:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe:c:\Development\nalps\tigervnc_trunk_export\win\wm_hooks\wm_hooks.def:1: >>> syntax error >>> collect2: ld returned 1 exit status >>> mingw32-make[2]: *** [win/winvnc/wm_hooks.dll] Error 1 >>> mingw32-make[1]: *** [win/winvnc/CMakeFiles/wm_hooks.dir/all] Error 2 >>> mingw32-make: *** [all] Error 2 >>> >>> Can anyone help me get this working please? >> >> Hmmm... I've never seen that. Are you installing MinGW using >> mingw-get-inst? Also, which distribution of CMake are you using? >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure >> contains a definitive record of customers, application performance, >> security threats, fraudulent activity, and more. Splunk takes this >> data and makes sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-novd2d >> _______________________________________________ >> Tigervnc-users mailing list >> tigervnc-us...@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tigervnc-users >> ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel