Fb2edit MinGW
Материал из LinTest Wiki
(Различия между версиями)
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) м (1 версия) |
Текущая версия на 16:15, 27 июля 2014
./configure -prefix /usr/i686-pc-mingw32/usr \ -opensource -release -static \ -no-exceptions -no-stl -no-qt3support -no-scripttools -no-openssl -no-opengl -no-script \ -no-scripttools -no-declarative -no-multimedia -no-audio-backend -no-phonon \ -nomake examples -nomake demos -nomake tools -nomake translations -nomake docs \ -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-
- i686-pc-mingw32.cmake
# the name of the target operating system SET(CMAKE_SYSTEM_NAME Windows) # which compilers to use for C and C++ SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) # here is the target environment located SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32) # adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search # programs in the host environment set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
cmake -DCMAKE_TOOLCHAIN_FILE=~/i686-pc-mingw32.cmake . make
Источник: Кросскомпиляция Qt-4.8.0 под mingw32 (x86) в Gentoo (x86_64)