Actually, I had to apply the following very small patch to one of FreeRDPs headers because Mingw already defines the "boolean" type in one of its headers:
Index: include/freerdp/types.h ================================================================== --- include/freerdp/types.h +++ include/freerdp/types.h @@ -63,11 +63,11 @@ typedef signed long long sint64; #endif #endif /* HAVE_INTTYPES_H */ -#ifdef HAVE_STDBOOL_H +#if defined(HAVE_STDBOOL_H) && !(defined(__MINGW32__) || defined(__MINGW64__)) #include <stdbool.h> typedef int boolean; Additionally, I changed the CMakeFile.txt in the main directory because I wanted a statically linked version of wfreerdp: Index: CMakeLists.txt ================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -48,11 +48,11 @@ set(CMAKE_BUILD_TYPE "Release") endif() # build shared libs if(NOT BUILD_SHARED_LIBS) - set(BUILD_SHARED_LIBS ON) + #set(BUILD_SHARED_LIBS ON) endif() # Compiler-specific flags if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") Then I ran cmake like this (I install FreeRDP in a local directory in my $HOME which is specified in $INSTALLPATH), OpenSSL (1.0.0g) is installed in this folder as well: cmake -DCMAKE_SYSTEM_NAME="Windows" \ -DCMAKE_C_COMPILER="/usr/local/mingw/bin/x86_64-w64-mingw32-gcc" \ -DCMAKE_RC_COMPILER="/usr/local/mingw/bin/x86_64-w64-mingw32-windres" \ -DCMAKE_INSTALL_PREFIX="$INSTALLPATH" \ -DBUILD_SHARED_LIBS=OFF \ -DCMAKE_C_FLAGS="-DFREERDP_EXPORTS -Dsprintf_s=snprintf $CFLAGS" \ -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \ -DWITH_SSE2=OFF \ -DWITH_SSE2_TARGET=OFF \ -DOPENSSL_INCLUDE_DIR="$INSTALLPATH/include" \ -DLIB_EAY="$INSTALLPATH/lib/libcrypto.a" \ -DSSL_EAY="$INSTALLPATH/lib/libssl.a" \ . Am Dienstag, den 20.03.2012, 01:27 +0100 schrieb Mads Kiilerich: > You could build without any patches? > > Ok - I will try harder ;-) > > /Mads > > > Felix Wolfheimer wrote, On 03/19/2012 10:26 PM: > > Hi Mads, > > > > I also cross-compiled Freerdp-1.0.1 (Mingw-w64 version 2.0 with gcc > > 4.7.0) for 32 Bit as well as for 64 Bit Windows. I tested it recently on > > a Windows 7 (64 Bit) client connecting to a Windows Server 2008 R2. > > > > You need to specify a user name and password on the command line like > > this: > > > > wfreerdp -u<user> -p<password> <servername> > > > > Then the connection works (at least in my setup). If you omit this it > > will fail silently. But the functionality is currently very limited. In > > my case the color scheme is completely messed up for some reason (looks > > like it uses an 8 bit color scheme) and it seems to ignore any attempt > > to change this. > > > > Note: If you define the PP macro WITH_DEBUG when you compile wfreerdp it > > will create a console window where you can see its output. Guess that > > will help to find out why it fails in your case. > > > > Regards > > > > Felix > > > > > > > > Am Montag, den 19.03.2012, 20:57 +0100 schrieb Mads Kiilerich: > >> I am trying to compile FreeRDP with mingw32 from Fedora 16 to win32. > >> > >> With a non-trivial number of patches it compiles ... but it silently > >> fails to run. > >> > >> Has anybody else seen any success with mingw compilation recently? > >> > >> https://github.com/FreeRDP/FreeRDP/wiki/Compilation from a couple of > >> months ago mentions cross compilation with Mingw-w64, so I wonder if I > >> am doing something wrong or if things has changed a lot since then? > >> > >> /Mads > >> > >> ------------------------------------------------------------------------------ > >> This SF email is sponsosred by: > >> Try Windows Azure free for 90 days Click Here > >> http://p.sf.net/sfu/sfd2d-msazure > >> _______________________________________________ > >> Freerdp-devel mailing list > >> Freerdp-devel@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/freerdp-devel > > > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Freerdp-devel mailing list Freerdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel