Post by Nick AppletonHi Roland,
On 16 Sep 2016, at 10:13 PM, Roland Winklmeier <
Hey there,
Anyone who uses CMake should take a look now and voice any
concerns/comments/suggestions either here on the merge request comment
stream.
One question regarding the new CMake feature set: Does it include also
MinGW builds and if not may I ask to consider adding it? It is not easy to
build with MinGW since you can't use the MSVC project files and the current
cmake files didn't support it. Instead I had to build it with the normal
autobuild tools via msys which isn't easy after all. CMake would be a big
improvement on this.
I spent a little bit of time a couple of nights ago getting this working.
On my Windows machine I was able to use CMake to generate "MinGW
Makefilesâ and managed to get everything building and running through a
normal Windows command prompt using mingw32-make except for the WASAPI
hostapi. Feel free to try it out and provide comments: if you clone the
PortAudio repository and checkout the âcmake_updates" branch, you will have
access to everything that has been done so far.
Hi Nick,
sorry for not coming back to you earlier. I was trying a build with
Mingw-w64 today and got two different build issues. I was running the
normal cmake, make build with default arguments:
cd build && cmake -G "MinGW Makesfile" ..
mingw32-make
The errors are:
* Many redefinition errors - see attached build.log. I was able to
workaround this by applying the patch from
https://github.com/mxe/mxe/issues/716
* After that, linking fails due to undefined references. Adding
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} winmm) helped.
Both fixes are in the attached patch if someone wants to look at and apply
it.
I haven't done any runtime testing, but purely compile testing.
Cheers Roland