Reply 21 of 29, by andy504
Hi- There is a new bug when compiling the most recent source. CMake configures and generates fine, as far as I can tell. I now encounter this error, during 'make':
[ 98%] Building CXX object mt32emu_qt/CMakeFiles/mt32emu-qt.dir/src/audiodrv/QtAudioDriver.cpp.o
'estimateActualSampleRate' is a protected member of 'AudioStream'
realSampleRate = AudioStream::esti...
declared protected here
static double estimateActualSampleRate(const double sampleRate, ...
1 error generated.
make: *** [mt32emu_qt/CMakeFiles/mt32emu-qt.dir/src/audiodrv/QtAudioDriver.cpp.o] Error 1
make: *** [mt32emu_qt/CMakeFiles/mt32emu-qt.dir/all] Error 2
make: *** [all] Error 2
Same system as before. Any help would be appreciated. Thank you for all your hard work. 😀
Reply 22 of 29, by sergm
Uh, seems you've found a bug in Xcode 😒 That's a shame...
Reply 23 of 29, by andy504
Okay. Thank you for letting me know where the problem is.
Reply 24 of 29, by andy504
I have found the solution. The problem is with Xcode's version of Clang. Mt32emu-qt compiled once I specified the compilers to /usr/bin/gcc and /usr/bin/g++ in CMake. That should be a temporary solution until/if Apple fixes the bug in its version of Clang.
Reply 25 of 29, by Dominus
- DOSBox Moderator
Funnily as you are on Lion and thus on Xcode 4.2 or 4.3x you don't actually have gcc 😉 those gcc & g++ in usr/bin are just symlinks to lvm-gcc/g++
I've run into something like that too before some time ago. You could send Apple a bug report if you are in thd developer program.
Reply 26 of 29, by sergm
Hmm, that's not too fun in this case 🙁 Well, QtAudio seems anyway useless for Mac, I can just disable it in order not to invent horrible workarounds...
Reply 27 of 29, by realnc
I've tried to compile this in Linux. The cmake step failed because it couldn't find PulseAudio. I deleted that from the CMakeLists.txt.
Aftet that, the build aborted because it couldn't find "asoundlib.h". I've fixed mt32emu_qt/src/audiodrv/AlsaAudioDriver.h to #include <alsa/asoundlib.h> instead.
That worked and I got a binary. I ran it, but when I select "Options->ROM Configuration", it crashes with:
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'std::bad_alloc'
I'm on Qt 4.8.2.
Reply 28 of 29, by sergm
As it reads at http://www.cmake.org/files/v2.8/CMakeChangeLog-2.8.8
Changes in CMake 2.8.8-rc1 (since 2.8.7)
FindALSA: Fix incorrect include path detection
The software world surely evolves 😀
Reply 29 of 29, by realnc
I already use 2.8.8 though. I upgraded to it on Thu May 3 2012 (from the logs.)