[Stk] RtMidi in Qt

Joao Magalhaes Martins joao.martins at plymouth.ac.uk
Mon Oct 10 11:31:42 PDT 2005


Dear list,

 

I'm trying to use Qt (in windows) to build the "midiout" example
provided with the RtMidi library. Has anyone tried to use this software?
It was told to me that it would be easier to build platform independent
applications with this tool. 

 

Here is the scrip "midiout.pro":

 

-------------------------------------------------------------------

TEMPLATE = app

 

CONFIG += console

 

SOURCES = rtmidi.cpp \

            midiout.cpp

 

HEADERS = rtmidi.h \

            rterror.h

 

win32:LIBS += -lwinmm -L./

 

DEFINES += __WINDOWS_MM__

 

--------------------------------------

 

And this is the first error that I get:

 

 

C:\Qt\QtProject\QtRtmidi>make

mingw32-make -f Makefile.Release

mingw32-make[1]: Entering directory `C:/Qt/QtProject/QtRtmidi'

g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -D__WI

NDOWS_MM__ -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB
-DQT_THREAD_SUPPORT

 -I"C:/Qt/401/include/QtGui" -I"C:/Qt/401/include/QtCore"
-I"C:/Qt/401/include"

-I"C:/Qt/401/include/ActiveQt" -I"release" -I"."
-I"C:/Qt/401/mkspecs/win32-g++"

 -o release\rtmidi.o rtmidi.cpp

rtmidi.cpp: In member function `virtual std::string
RtMidiIn::getPortName(unsign

ed int)':

rtmidi.cpp:1799: error: no matching function for call to
`std::basic_string<char

, std::char_traits<char>, std::allocator<char>
>::basic_string(WCHAR[32])'

 

 

 

Thanks for any tip.

 

Joao

 

 

 

 

Joao Martins

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

Interdisciplinary Centre for Computer Music Research 

School of Computing, Communications and Electronics
Smeaton Building - Room 206 
Drake Circus, Plymouth, Devon PL4 8AA, UK
 

phone: +44 (0)1752 232579

email:  <mailto:joao.martins at plymouth.ac.uk> joao.martins at plymouth.ac.uk

web:    <http://www.joao.co.uk> http://www.joao.co.uk

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20051010/36c6f58c/attachment.html>


More information about the Stk mailing list