[Stk] RtMidi in Qt

Eduardo Coutinho eduardo.coutinho@plymouth.ac.uk
Tue, 11 Oct 2005 12:07:20 +0100


Hi Paul

I am trying this with Joao, and the problem is quite confusing.
You're right when you say about the std library, the problem is that
only happens with stk (in fact we are only trying rtmidi). I had no
problems with the same library in other programs. But I don't use also
the same structure used with rtmidi.
We are trying to compile the midiout example (that comes with the
library).
We also tried to compile the files as a static library to include then
in our program. Again we were not able to find a solution.

Best regards,
Eduardo Coutinho


-----Original Message-----
From: stk-admin@ccrma.Stanford.EDU [mailto:stk-admin@ccrma.Stanford.EDU]
On Behalf Of Paul
Sent: 11 October 2005 09:39
To: stk@ccrma.Stanford.EDU
Subject: Re: [Stk] RtMidi in Qt

Dear Joao,

 I have used Qt (linux). I wrote a music notation program sequencer
program with it. It is OK but I have started to use JAVA because I
find it easier to code and debug.

 From your last message it looks like a problem with 
the std C++ library. You could check that the C++ installed
is the latest version. If you want me to check out any of your
code on my linux box to see if it compiles OK here feel free
to send me the offending code.

 regards Paul.



On Monday 10 October 2005 19:31, Joao Magalhaes Martins wrote:
> 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@plymouth.ac.uk>
joao.martins@plymouth.ac.uk
> 
> web:    <http://www.joao.co.uk> http://www.joao.co.uk
> 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
> 
>  
> 
> 

_______________________________________________
Stk mailing list
Stk@ccrma.stanford.edu
http://ccrma-mail.stanford.edu/mailman/listinfo/stk