1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(build): fix OpenAL build on Windows

Add OpenAL-specific define to fix `error: redefinition of 'struct timespec'` when compiling with MinGW.
`timespec` is already defined within MinGW, but probably detection does not work correctly.

Partially fixes #3372
This commit is contained in:
Vincas Dargis 2016-06-27 20:34:10 +03:00
parent f05b7e040a
commit 2f7076c168

View File

@ -62,7 +62,7 @@ fi
if [ ! -f "bin/OpenAL32.dll" ]; then
pushd openal-soft-1.16.0/build
cmake -G "MSYS Makefiles" -DQT_QMAKE_EXECUTABLE=NOTFOUND -DCMAKE_BUILD_TYPE=Release -DALSOFT_REQUIRE_DSOUND=NO -DCMAKE_INSTALL_PREFIX=$QTOX_DIR/libs ..
CFLAGS="-D_TIMESPEC_DEFINED" cmake -G "MSYS Makefiles" -DQT_QMAKE_EXECUTABLE=NOTFOUND -DCMAKE_BUILD_TYPE=Release -DALSOFT_REQUIRE_DSOUND=NO -DCMAKE_INSTALL_PREFIX=$QTOX_DIR/libs ..
make
make install
popd