ofxAudioUnit icon indicating copy to clipboard operation
ofxAudioUnit copied to clipboard

missing CADebugPrintf.h when using Make Debug

Open dimitre opened this issue 4 years ago • 5 comments

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

dimitre avatar Aug 20 '19 17:08 dimitre

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

hiroMTB avatar Aug 20 '19 18:08 hiroMTB

@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"
		

dimitre avatar Aug 20 '19 18:08 dimitre

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 .

hiroMTB avatar Aug 20 '19 18:08 hiroMTB

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

dimitre avatar Aug 20 '19 19:08 dimitre

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 .

hiroMTB avatar Aug 20 '19 20:08 hiroMTB