Hi,
I'm trying to cross-compile an SFML 2.0 app for Win32, from my Linux box, using the following MinGW compiler:
# i586-mingw32msvc-g++ -v
Using built-in specs.
Target: i586-mingw32msvc
Configured with: /build/buildd/mingw32-4.2.1dfsg/build_dir/src/gcc-4.2.1-2-dfsg/configure -v --prefix=/usr --target=i586-mingw32msvc --enable-languages=c,c++ --enable-threads --enable-sjlj-exceptions --disable-multilib --enable-version-specific-runtime-libs
Thread model: win32
gcc version 4.2.1-sjlj (mingw32-2)
#
The background is the following:
I can build SFML and a test app on 32 bit Linux natively (but not on 64 bit), and it runs fine.
When I try to cross-compile SFML 2.0 for Windows, I get errors.
Here's what I'm doing.. all manual, so there should be no "tool-config" type errors creeping in anywhere.
# sudo apt-get install cmake mingw32
# wget
http://www.sfml-dev.org/download/sfml/2.0/SFML-2.0-sources.zip# unzip SFML-2.0-sources.zip
# cd SFML-2.0
# rm -rf CMakeFiles Makefile
# cmake -DCMAKE_TOOLCHAIN_FILE=../MinGW_toolchain.cmake -G "Unix Makesfiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE .
# make
I get the following error:
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find Freetype (missingL FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
..
I guess my questions are the following:
1: Is there an easier way of doing this? I tried using the SFML binaries for Windows, but could not cross-compile successfully against them
2: Does anyone happen to have Windows SFML binaries suitable for use with this version of MinGW/G++?
3: If the answer to 1 and 2 is "No", then do I need to install the Windows dev source for all the dependent libraries that SFML uses?
Thanks, any help appreciated..
ElColmo