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:
parent
f05b7e040a
commit
2f7076c168
|
@ -62,7 +62,7 @@ fi
|
||||||
|
|
||||||
if [ ! -f "bin/OpenAL32.dll" ]; then
|
if [ ! -f "bin/OpenAL32.dll" ]; then
|
||||||
pushd openal-soft-1.16.0/build
|
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
|
||||||
make install
|
make install
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user