Giter Club home page Giter Club logo

Comments (4)

izzyreal avatar izzyreal commented on August 22, 2024

For anyone reading this, for now I've resolved this by doing the below in my CMakeLists.txt:

if (IOS)
    target_compile_definitions(rtmidi PRIVATE TARGET_OS_IPHONE=1)
endif()

But setting this is actually the responsibility of #include <TargetConditionals.h> as far as I know. So I doubt this is the way to go. Not sure if I should do something different on my end, or if there's in issue in rtmidi.

PS: I first tried to #include <TargetConditionals.h> before including RtMidi.h, but this did not help.

from rtmidi.

GarrettFleischer avatar GarrettFleischer commented on August 22, 2024

I'm completely lost here... Could you perhaps give some more details on how to set this up? Thank you

from rtmidi.

izzyreal avatar izzyreal commented on August 22, 2024

@GarrettFleischer What is your issue precisely? For what it's worth, here's my static lib's CMakeLists.txt where you can see

target_compile_definitions(rtmidi PRIVATE TARGET_OS_IPHONE=1)

in context: https://github.com/izzyreal/mpc/blob/ee500b24c64b3bff438c533711c539541343c8ef/CMakeLists.txt#L127

from rtmidi.

GarrettFleischer avatar GarrettFleischer commented on August 22, 2024

@izzyreal thank you for the response, I was able to do it through creating a new xcode project

from rtmidi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.