[Openal-devel] OpenAL Soft 1.6.372 released!

Ludwig Nussel ludwig.nussel at suse.de
Sun Nov 23 08:29:58 PST 2008


Chris Robinson wrote:
> There's also a new preliminary CMake option, XCOMPILEWIN32, to build a Win32 
> DLL from Linux/Unix:
> export CC=mingw32-gcc
> cmake .. -DXCOMPILEWIN32=ON
> There's still some oddities with it due to CMake not working too well with 
> cross-compiling, but it creates a usable DLL all the same.

Is that special flag actually needed? I was able to cross compile
previous openal-soft versions just fine already AFAICT[1]. I use the
following toolchain file:

# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)

# which compilers to use for C and C++
SET(CMAKE_C_COMPILER /opt/cross/bin/i386-mingw32msvc-gcc)
SET(CMAKE_CXX_COMPILER /opt/cross/bin/i386-mingw32msvc-g++)

# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /opt/cross/i386-mingw32msvc)

# 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)



cu
Ludwig

[1] http://download.opensuse.org/repositories/home:/lnussel:/win32/win32/
    https://build.opensuse.org/project/show?project=home%3Alnussel%3Awin32

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/




More information about the Openal-devel mailing list