diff options
author | Rob Sykes <rob@rob-Ideapad-S205.(none)> | 2013-02-27 22:50:12 +0400 |
---|---|---|
committer | Rob Sykes <rob@rob-Ideapad-S205.(none)> | 2013-02-27 22:50:12 +0400 |
commit | 4d9db78903ab378efaf7fbf9e943695a0e8ac266 (patch) | |
tree | ea10e3347e94e2a6f4a93a99000a4a3c562e3887 | |
parent | 0d7c99ad0fcc274ec9f6e069d1144e0d1a82c124 (diff) |
add example of mingw build
-rw-r--r-- | INSTALL | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -1,5 +1,16 @@ SoX Resampler Library Copyright (c) 2007-13 robs@users.sourceforge.net +INSTALLATION GUIDE CONTENTS + +* Standard build +* Build customisation +* Cross-compiling with mingw (linux host) +* Integration with other build systems + + + +STANDARD BUILD + 1. Prerequisites: Before you can build this library, you need to have available on your @@ -70,6 +81,38 @@ Options, if given, should be preceded with '-D', e.g. +CROSS-COMPILING WITH MINGW (LINUX HOST) + +For example: + + mkdir build + cd build + cmake -DCMAKE_TOOLCHAIN_FILE=~/Toolchain-x86_64-mingw-w64-mingw32.cmake \ + -DCMAKE_INSTALL_PREFIX=install \ + -DHAVE_WORDS_BIGENDIAN_EXITCODE=1 \ + -DBUILD_TESTS=0 \ + -DBUILD_EXAMPLES=1 \ + .. + make + +where ~/Toolchain-x86_64-mingw-w64-mingw32.cmake might contain: + + SET(CMAKE_SYSTEM_NAME Windows) + SET(CMAKE_C_COMPILER /usr/bin/x86_64-w64-mingw32-gcc) + SET(CMAKE_CXX_COMPILER /usr/bin/x86_64-w64-mingw32-g++) + SET(CMAKE_RC_COMPILER /usr/bin/x86_64-w64-mingw32-windres) + SET(CMAKE_Fortran_COMPILER /usr/bin/x86_64-w64-mingw32-gfortran) + SET(CMAKE_AR:FILEPATH /usr/bin/x86_64-w64-mingw32-ar) + SET(CMAKE_RANLIB:FILEPATH /usr/bin/x86_64-w64-mingw32-ranlib) + SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32) + SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) + SET(QT_BINARY_DIR /usr/x86_64-w64-mingw32/bin /usr/bin) + SET(Boost_COMPILER -gcc47) + + + INTEGRATION WITH OTHER BUILD SYSTEMS Autotools-based systems might find it useful to create a file called |