mt32emu-Qt cross-platform UI-enabled application development

Developer's Forum for discussion of bugs, code, and other developmental aspects of the Munt Project.

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby Dominus » 2012-4-07 @ 17:20

I tried but wasn't much of a help ;)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7285
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby andy504 » 2012-4-25 @ 02:48

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':
Code: Select all
[ 98%] Building CXX object mt32emu_qt/CMakeFiles/mt32emu-qt.dir/src/audiodrv/QtAudioDriver.cpp.o
/munt-munt-ae9a535/mt32emu_qt/src/audiodrv/QtAudioDriver.cpp:70:34: error:
      'estimateActualSampleRate' is a protected member of 'AudioStream'
                        realSampleRate = AudioStream::esti...
                                                      ^
/Volumes/Mac_USB_HD/Andy/Downloads/munt-munt-ae9a535/mt32emu_qt/src/audiodrv/AudioDriver.h:17:16: note:
      declared protected here
        static double estimateActualSampleRate(const double sampleRate, ...
                      ^
1 error generated.
make[2]: *** [mt32emu_qt/CMakeFiles/mt32emu-qt.dir/src/audiodrv/QtAudioDriver.cpp.o] Error 1
make[1]: *** [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. :happy:
andy504
Newbie
 
Posts: 10
Joined: 2009-11-09 @ 16:26

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby sergm » 2012-4-25 @ 15:21

Uh, seems you've found a bug in Xcode :/ That's a shame...
sergm
Oldbie
 
Posts: 734
Joined: 2011-2-23 @ 16:37

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby andy504 » 2012-4-25 @ 15:55

Okay. Thank you for letting me know where the problem is.
andy504
Newbie
 
Posts: 10
Joined: 2009-11-09 @ 16:26

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby andy504 » 2012-4-25 @ 16:20

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.
andy504
Newbie
 
Posts: 10
Joined: 2009-11-09 @ 16:26

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby Dominus » 2012-4-25 @ 16:35

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.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7285
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby sergm » 2012-4-25 @ 17:42

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...
sergm
Oldbie
 
Posts: 734
Joined: 2011-2-23 @ 16:37

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby realnc » 2012-6-14 @ 16:53

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:

Code: Select all
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'
  what():  std::bad_alloc
Aborted


I'm on Qt 4.8.2.
realnc
Member
 
Posts: 143
Joined: 2010-10-13 @ 11:02

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby sergm » 2012-6-15 @ 07:43

Oh, thanks.

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 :)
sergm
Oldbie
 
Posts: 734
Joined: 2011-2-23 @ 16:37

Re: mt32emu-Qt cross-platform UI-enabled application development

Postby realnc » 2012-6-15 @ 11:46

I already use 2.8.8 though. I upgraded to it on Thu May 3 2012 (from the logs.)
realnc
Member
 
Posts: 143
Joined: 2010-10-13 @ 11:02

Previous

Return to MT-32 Development

Who is online

Users browsing this forum: No registered users and 1 guest