Browse Source

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
reviewable/pr3604/r1
Vincas Dargis 9 years ago
parent
commit
2f7076c168
  1. 2
      windows/bootstrap.sh

2
windows/bootstrap.sh

@ -62,7 +62,7 @@ fi @@ -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

Loading…
Cancel
Save