admsyn / ofxAudioUnit

An openFrameworks addon which makes it easy to work with Audio Units on OSX and iOS
MIT License
120 stars 24 forks source link

missing CADebugPrintf.h when using Make Debug #37

Open dimitre opened 4 years ago

dimitre commented 4 years ago

I've noticed it complains the missing CADebugPrintf.h when I try to build using VSCode. it compiles OK after I copy the files from another project, specifically this one: https://github.com/elliottjohnson/GenericUSBMIDI cc: @hiroMTB

hiroMTB commented 4 years ago

Can you reproduce same problem if you use Xcode instead of vscode?

dimitre commented 4 years ago

@hiroMTB it doesn't happen in XCode. maybe the #define variables are different

#if DEBUG || CoreAudio_Debug
    // can be used to break into debugger immediately, also see CADebugger
    #define BusError()      { long* p=NULL; *p=0; }

    //  basic debugging print routines
    #if TARGET_OS_MAC && !TARGET_API_MAC_CARBON
        extern void DebugStr(const unsigned char* debuggerMsg);
        #define DebugMessage(msg)   DebugStr("\p"msg)
        #define DebugMessageN1(msg, N1)
        #define DebugMessageN2(msg, N1, N2)
        #define DebugMessageN3(msg, N1, N2, N3)
    #else
        #include "CADebugPrintf.h"
hiroMTB commented 4 years ago

How about if you compile with make command via terminal? Basically vscode only excutes make command.

On Tue, Aug 20, 2019, 8:26 PM Dimitre notifications@github.com wrote:

@hiroMTB https://github.com/hiroMTB it doesn't happen in XCode. maybe the #define variables are different

if DEBUG || CoreAudio_Debug

// can be used to break into debugger immediately, also see CADebugger

define BusError() { long p=NULL; p=0; }

// basic debugging print routines

if TARGET_OS_MAC && !TARGET_API_MAC_CARBON

  extern void DebugStr(const unsigned char* debuggerMsg);
  #define DebugMessage(msg)   DebugStr("\p"msg)
  #define DebugMessageN1(msg, N1)
  #define DebugMessageN2(msg, N1, N2)
  #define DebugMessageN3(msg, N1, N2, N3)

else

  #include "CADebugPrintf.h"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/admsyn/ofxAudioUnit/issues/37?email_source=notifications&email_token=AABPGAFEVTD7JI5JYMBS3GTQFQZNDA5CNFSM4IN2CPVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4XHL5I#issuecomment-523138549, or mute the thread https://github.com/notifications/unsubscribe-auth/AABPGAGDKFO653QPAS5P7ZTQFQZNDANCNFSM4IN2CPVA .

dimitre commented 4 years ago

Indeed @hiroMTB Error is appearing with make Debug and it is running OK with make (Release)

hiroMTB commented 4 years ago

Great so this seems like an issue with make script for osx but not a vscode template. Could you change the title of issue or make another issue? Thanks you this catch!

On Tue, Aug 20, 2019, 9:22 PM Dimitre notifications@github.com wrote:

Indeed @hiroMTB https://github.com/hiroMTB Error is appearing with make Debug and it is running OK with make (Release)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/admsyn/ofxAudioUnit/issues/37?email_source=notifications&email_token=AABPGAFS3WLWVJYNY4MCJYDQFRABBA5CNFSM4IN2CPVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4XMLVY#issuecomment-523158999, or mute the thread https://github.com/notifications/unsubscribe-auth/AABPGAE7SN6PIJ44HKJA2ULQFRABBANCNFSM4IN2CPVA .