danomatika / ofxMidi

(maintained) Midi addon for openFrameworks
Other
262 stars 72 forks source link

danomatika/ofxMidi - Error compiling midiOutputExample of ofxMidi #60

Closed ghost closed 6 years ago

ghost commented 6 years ago

When compiling midiOutputExample of ofxMidi, I get the following error message:

mint:midiOutputExample a$ clear && make
HOST_OS=Darwin
Compiling OF library for Release
HOST_OS=Darwin
HOST_OS=Darwin
HOST_OS=Darwin
Done!

Compiling midiOutputExample for Release
HOST_OS=Darwin
Compiling /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp
c++ -c -Os -mtune=native -DNDEBUG -stdlib=libc++ -Wall -fexceptions -fpascal-strings -mmacosx-version-min=10.9 -D__MACOSX_CORE__ -x objective-c++ -std=c++11 -I/Applications/of_v0.10.0_osx_release/libs/FreeImage/include -I/Applications/of_v0.10.0_osx_release/libs/boost/include -I/Applications/of_v0.10.0_osx_release/libs/boost/include/boost -I/Applications/of_v0.10.0_osx_release/libs/cairo/include -I/Applications/of_v0.10.0_osx_release/libs/cairo/include/cairo -I/Applications/of_v0.10.0_osx_release/libs/curl/include -I/Applications/of_v0.10.0_osx_release/libs/curl/include/curl -I/Applications/of_v0.10.0_osx_release/libs/fmodex/include -I/Applications/of_v0.10.0_osx_release/libs/freetype/include -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2 -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype/config -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype/internal -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype/internal/services -I/Applications/of_v0.10.0_osx_release/libs/glew/include -I/Applications/of_v0.10.0_osx_release/libs/glew/include/GL -I/Applications/of_v0.10.0_osx_release/libs/glfw/include -I/Applications/of_v0.10.0_osx_release/libs/glfw/include/GLFW -I/Applications/of_v0.10.0_osx_release/libs/glm/include -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/detail -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/gtc -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/gtx -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/simd -I/Applications/of_v0.10.0_osx_release/libs/json/include -I/Applications/of_v0.10.0_osx_release/libs/pugixml/include -I/Applications/of_v0.10.0_osx_release/libs/rtAudio/include -I/Applications/of_v0.10.0_osx_release/libs/tess2/include -I/Applications/of_v0.10.0_osx_release/libs/uriparser/include -I/Applications/of_v0.10.0_osx_release/libs/uriparser/include/uriparser -I/Applications/of_v0.10.0_osx_release/libs/utf8/include -I/Applications/of_v0.10.0_osx_release/libs/utf8/include/utf8 -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/3d -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/app -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/communication -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/events -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/gl -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/graphics -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/math -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/sound -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/types -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/utils -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/video -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/emptyExample.xcodeproj/xcshareddata -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/emptyExample.xcodeproj/xcshareddata/xcschemes -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/desktop -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ios -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/pgmidi -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/rtmidi -MMD -MP -MF obj/osx/Release/src/ofxBaseMidi.d -MT obj/osx/Release/src/ofxBaseMidi.o -o obj/osx/Release/src/ofxBaseMidi.o -c /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:61:2: error:
      no template named 'vector'; did you mean 'std::vector'?
        vector<unsigned char> bytes;
        ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note:
      'std::vector' declared here
class _LIBCPP_TEMPLATE_VIS vector
                           ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:71:2: error:
      unknown type name 'string'; did you mean 'std::string'?
        string portName;
        ^~~~~~
        std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:76:17: error:
      no template named 'vector'; did you mean 'std::vector'?
        ofxMidiMessage(vector<unsigned char>* rawBytes); //< parses
                       ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note:
      'std::vector' declared here
class _LIBCPP_TEMPLATE_VIS vector
                           ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:82:17: error:
      no template named 'vector'; did you mean 'std::vector'?
        void fromBytes(vector<unsigned char> *rawBytes);
                       ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note:
      'std::vector' declared here
class _LIBCPP_TEMPLATE_VIS vector
                           ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:93:2: error:
      unknown type name 'string'; did you mean 'std::string'?
        string toString();
        ^~~~~~
        std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:97:9: error:
      unknown type name 'string'; did you mean 'std::string'?
        static string getStatusString(MidiStatus status);
               ^~~~~~
               std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:28:22: error:
      unknown type name 'string'; did you mean 'std::string'?
        ofxBaseMidiIn(const string name);
                            ^~~~~~
                            std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:32:24: error:
      unknown type name 'string'; did you mean 'std::string'?
        virtual bool openPort(string deviceName) = 0;
                              ^~~~~~
                              std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:33:31: error:
      unknown type name 'string'; did you mean 'std::string'?
        virtual bool openVirtualPort(string portName) = 0;
                                     ^~~~~~
                                     std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:37:2: error:
      unknown type name 'string'; did you mean 'std::string'?
        string getName();
        ^~~~~~
        std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:52:42: error:
      no template named 'vector'; did you mean 'std::vector'?
        void manageNewMessage(double deltatime, vector<unsigned char> *message);
                                                ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note:
      'std::vector' declared here
class _LIBCPP_TEMPLATE_VIS vector
                           ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:55:2: error:
      unknown type name 'string'; did you mean 'std::string'?
        string portName; //< current port name, "" if not connected
        ^~~~~~
        std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:57:9: error:
      no template named 'vector'; did you mean 'std::vector'?
        static vector<string> portList; //< list of port names
               ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note:
      'std::vector' declared here
class _LIBCPP_TEMPLATE_VIS vector
                           ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:57:16: error:
      unknown type name 'string'; did you mean 'std::string'?
        static vector<string> portList; //< list of port names
                      ^~~~~~
                      std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:73:23: error:
      unknown type name 'string'; did you mean 'std::string'?
        ofxBaseMidiOut(const string name);
                             ^~~~~~
                             std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:77:24: error:
      unknown type name 'string'; did you mean 'std::string'?
        virtual bool openPort(string deviceName) = 0;
                              ^~~~~~
                              std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:78:31: error:
      unknown type name 'string'; did you mean 'std::string'?
        virtual bool openVirtualPort(string portName) = 0;
                                     ^~~~~~
                                     std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:82:2: error:
      unknown type name 'string'; did you mean 'std::string'?
        string getName();
        ^~~~~~
        std::string
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note:
      'std::string' declared here
typedef basic_string<char, char_traits<char>, allocator<char> > string;
                                                                ^
In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11:
/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:96:21: error:
      no template named 'vector'; did you mean 'std::vector'?
        void sendMidiBytes(vector<unsigned char>& bytes);
                           ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note:
      'std::vector' declared here
class _LIBCPP_TEMPLATE_VIS vector
                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [obj/osx/Release/src/ofxBaseMidi.o] Error 1
make: *** [Release] Error 2
mint:midiOutputExample a$
danomatika commented 6 years ago

Yup. This add on has not yet been updated for OF 0.10.0. In the meantime, check one of the PRs.

enohp ym morf tnes

Dan Wilcox danomatika.com robotcowboy.com

On Jul 14, 2018, at 6:42 PM, tmm2018 notifications@github.com wrote:

When compiling midiOutputExample of ofxMidi, I get the following error message:

mint:midiOutputExample a$ clear && make HOST_OS=Darwin Compiling OF library for Release HOST_OS=Darwin HOST_OS=Darwin HOST_OS=Darwin Done!

Compiling midiOutputExample for Release HOST_OS=Darwin Compiling /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp c++ -c -Os -mtune=native -DNDEBUG -stdlib=libc++ -Wall -fexceptions -fpascal-strings -mmacosx-version-min=10.9 -D__MACOSX_CORE__ -x objective-c++ -std=c++11 -I/Applications/of_v0.10.0_osx_release/libs/FreeImage/include -I/Applications/of_v0.10.0_osx_release/libs/boost/include -I/Applications/of_v0.10.0_osx_release/libs/boost/include/boost -I/Applications/of_v0.10.0_osx_release/libs/cairo/include -I/Applications/of_v0.10.0_osx_release/libs/cairo/include/cairo -I/Applications/of_v0.10.0_osx_release/libs/curl/include -I/Applications/of_v0.10.0_osx_release/libs/curl/include/curl -I/Applications/of_v0.10.0_osx_release/libs/fmodex/include -I/Applications/of_v0.10.0_osx_release/libs/freetype/include -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2 -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype/config -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype/internal -I/Applications/of_v0.10.0_osx_release/libs/freetype/include/freetype2/freetype/internal/services -I/Applications/of_v0.10.0_osx_release/libs/glew/include -I/Applications/of_v0.10.0_osx_release/libs/glew/include/GL -I/Applications/of_v0.10.0_osx_release/libs/glfw/include -I/Applications/of_v0.10.0_osx_release/libs/glfw/include/GLFW -I/Applications/of_v0.10.0_osx_release/libs/glm/include -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/detail -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/gtc -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/gtx -I/Applications/of_v0.10.0_osx_release/libs/glm/include/glm/simd -I/Applications/of_v0.10.0_osx_release/libs/json/include -I/Applications/of_v0.10.0_osx_release/libs/pugixml/include -I/Applications/of_v0.10.0_osx_release/libs/rtAudio/include -I/Applications/of_v0.10.0_osx_release/libs/tess2/include -I/Applications/of_v0.10.0_osx_release/libs/uriparser/include -I/Applications/of_v0.10.0_osx_release/libs/uriparser/include/uriparser -I/Applications/of_v0.10.0_osx_release/libs/utf8/include -I/Applications/of_v0.10.0_osx_release/libs/utf8/include/utf8 -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/3d -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/app -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/communication -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/events -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/gl -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/graphics -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/math -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/sound -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/types -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/utils -I/Applications/of_v0.10.0_osx_release/libs/openFrameworks/video -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/emptyExample.xcodeproj/xcshareddata -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/emptyExample.xcodeproj/xcshareddata/xcschemes -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/desktop -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ios -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/pgmidi -I/Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/rtmidi -MMD -MP -MF obj/osx/Release/src/ofxBaseMidi.d -MT obj/osx/Release/src/ofxBaseMidi.o -o obj/osx/Release/src/ofxBaseMidi.o -c /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:61:2: error: no template named 'vector'; did you mean 'std::vector'? vector bytes; ^ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note: 'std::vector' declared here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:71:2: error: unknown type name 'string'; did you mean 'std::string'? string portName; ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:76:17: error: no template named 'vector'; did you mean 'std::vector'? ofxMidiMessage(vector rawBytes); //< parses ^ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note: 'std::vector' declared here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:82:17: error: no template named 'vector'; did you mean 'std::vector'? void fromBytes(vector rawBytes); ^ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note: 'std::vector' declared here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:93:2: error: unknown type name 'string'; did you mean 'std::string'? string toString(); ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:17: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxMidiMessage.h:97:9: error: unknown type name 'string'; did you mean 'std::string'? static string getStatusString(MidiStatus status); ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:28:22: error: unknown type name 'string'; did you mean 'std::string'? ofxBaseMidiIn(const string name); ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:32:24: error: unknown type name 'string'; did you mean 'std::string'? virtual bool openPort(string deviceName) = 0; ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:33:31: error: unknown type name 'string'; did you mean 'std::string'? virtual bool openVirtualPort(string portName) = 0; ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:37:2: error: unknown type name 'string'; did you mean 'std::string'? string getName(); ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:52:42: error: no template named 'vector'; did you mean 'std::vector'? void manageNewMessage(double deltatime, vector *message); ^ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note: 'std::vector' declared here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:55:2: error: unknown type name 'string'; did you mean 'std::string'? string portName; //< current port name, "" if not connected ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:57:9: error: no template named 'vector'; did you mean 'std::vector'? static vector portList; //< list of port names ^ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note: 'std::vector' declared here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:57:16: error: unknown type name 'string'; did you mean 'std::string'? static vector portList; //< list of port names ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:73:23: error: unknown type name 'string'; did you mean 'std::string'? ofxBaseMidiOut(const string name); ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:77:24: error: unknown type name 'string'; did you mean 'std::string'? virtual bool openPort(string deviceName) = 0; ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:78:31: error: unknown type name 'string'; did you mean 'std::string'? virtual bool openVirtualPort(string portName) = 0; ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:82:2: error: unknown type name 'string'; did you mean 'std::string'? string getName(); ^~ std::string /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:194:65: note: 'std::string' declared here typedef basic_string<char, char_traits, allocator > string; ^ In file included from /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.cpp:11: /Applications/of_v0.10.0_osx_release/addons/ofxMidi-master/midiOutputExample/src/ofxBaseMidi.h:96:21: error: no template named 'vector'; did you mean 'std::vector'? void sendMidiBytes(vector& bytes); ^ /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447:28: note: 'std::vector' declared here class _LIBCPP_TEMPLATE_VIS vector ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: [obj/osx/Release/src/ofxBaseMidi.o] Error 1 make: [Release] Error 2 mint:midiOutputExample a$ shall I assume that this package still needs maintainance? if so, how can i contribute to fix it — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

antoniomechas commented 6 years ago

I succesfully compiled the addon in VS2017 and OF 0.10.0 adding the line:

include "ofMain.h"

in line 12 of ofxMidiMessage.h

dirty but made it work!

danomatika commented 6 years ago

using namespace std; would give you the same result.

danomatika commented 6 years ago

Fixed with latest commits.