Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(build): fix OpenAL build on Windows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Talkless committed Aug 10, 2016
1 parent f05b7e0 commit 2f7076c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f7076c

Please sign in to comment.