Commit 0cf02d0d authored by Ludovic Fauvet's avatar Ludovic Fauvet

Cross compiling for Windows works !

parent fe945fcf
......@@ -8,6 +8,7 @@ Makefile*
*.pro.user
moc_*.cpp
moc_*.cxx*
ui_*.h
.*.swp
*~
......@@ -16,5 +17,5 @@ ui_*.h
qrc_ressources.cpp
CMakeCache.txt
CMakeFiles
*.cmake
cmake_install.cmake
CPack*.cmake
......@@ -33,18 +33,9 @@ FIND_PACKAGE(LIBVLC)
INCLUDE_DIRECTORIES(${LIBVLC_INCLUDE_DIR})
# search for Qt4
FIND_PACKAGE(Qt4 REQUIRED)
SET( QT_USE_QTXML TRUE )
SET( QT_USE_QTNETWORK TRUE )
SET( QT_USE_QTSVG TRUE )
SET( QT_USE_QTXML TRUE )
IF (ENABLE_TESTS)
SET( QT_USE_QTTEST TRUE )
ENABLE_TESTING()
ENDIF (ENABLE_TESTS)
INCLUDE( ${QT_USE_FILE} )
FIND_PACKAGE(Qt4 4.5.1 COMPONENTS QtCore QtGui QtSvg QtXml REQUIRED )
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})
# layout of VLMC installation
......
......@@ -20,7 +20,7 @@ Building VLMC
A typical way to build VLMC is:
qmake
cmake .
make
Running VLMC
......
Cross-compilation (from Unix)
=============================
Download contribs from:
http://vlmc.org/~etix/contribs/
To be continued...
----------------------------------------------------------
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-win32.cmake .
# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/i486-mingw32-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/i486-mingw32-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH contribs)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment