<div dir="ltr">Hi,<div><br></div><div>I'm trying to build the latest openal-soft from git with MinGW 4.8.1, but aren't having much luck.</div><div><br></div><div>I tried:</div><div><br></div><div>> cd build</div>
<div>> cmake -G "MinGW Makefiles" ..</div><div>> mingw32-make all</div><div><br></div><div>Which generates a bunch of compiler warnings/errors such as:</div><div><div><br></div><div><div>D:/openal-soft/include/threads.h:47:52: warning: 'struct timespec' declared inside parameter list [enabled by default]</div>
<div> int althrd_sleep(const struct timespec *ts, struct timespec *rem);</div></div><div><br></div><div>...and...<br></div><div><br></div><div><div>D:\openal-soft\common\threads.c:182:28: error: dereferencing pointer to incomplete type</div>
<div>     if(ts->tv_sec < 0 || ts->tv_sec >= (0x7fffffff / 1000) ||</div></div><div><br></div><div>I tried adding #include <time.h> somewhere but that didn't help.</div><div><br></div></div><div>I was able to cmake/build OpenAL32 using msvc13, but my project is codelite/mingw.</div>
<div><br></div><div>Sorry for the noob question!<br></div><div><br></div><div>Bye,</div><div>Mark</div><div><br></div></div>