Bug Tracker item #3519792, was opened at 2012-04-20 04:03
Message generated for change (Settings changed) made by hramrach
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3519792&group_id=254363

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Windows version
>Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michal Suchanek (hramrach)
Assigned to: Nobody/Anonymous (nobody)
Summary: mingw build instructions broken

Initial Comment:
Hello,

the cmake wiki suggests to write CMake settings files for different build types 
instead of setting all the required options on the command line:

http://www.cmake.org/Wiki/CMake_Cross_Compiling#The_toolchain_file

However,

even if you prefer to include 'build recipes' in the docs at least include 
working recipes.

This is script to build with mingw (which is way different from the build 
recipe which fails in multiple ways)::

CC=i686-w64-mingw32-gcc \
   CXX=i686-w64-mingw32-g++ \
   RC=i686-w64-mingw32-windres \
   AR=i686-w64-mingw32-ar \
   RANLIB=i686-w64-mingw32-ranlib \
   cmake -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Windows \
     -DCMAKE_FIND_ROOT_PATH=/usr/i486-mingw32 \
     -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
     -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
     -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
     -DJPEG_INCLUDE_DIR=/scratch/turbojpeg/include \
     -DJPEG_LIBRARY=/scratch/turbojpeg/lib/libjpeg.a \
     -DBUILD_STATIC=1 \
     -DCMAKE_INSTALL_PREFIX="/" \
../tigervnc/trunk && \
make -j6 && \
make install DESTDIR=/scratch/tigerinst


You need the programs specified in environment rather than as -D because they 
are not found otherwise.

You need static build so that the installed executables can be actually 
executed without searching for mingw dlls.

You need CMAKE_FIND_ROOT_PATH so that the system libraries are not picked by 
cmake. This is probably no-op on windows because they don't have system 
libraries anyway.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3519792&group_id=254363

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to