ofxAudioUnit
ofxAudioUnit copied to clipboard
missing CADebugPrintf.h when using Make Debug
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
Can you reproduce same problem if you use Xcode instead of vscode?
@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"
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 [email protected] 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 .
Indeed @hiroMTB Error is appearing with make Debug and it is running OK with make (Release)
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 [email protected] 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 .