emcconville / bytebeatx

ByteBeat CLI application for OS X
GNU General Public License v3.0
5 stars 0 forks source link

I get an error #1

Closed MrDorianJames closed 7 years ago

MrDorianJames commented 7 years ago

I'm not the greatest at compiling things

Everything compiled fine with your instructions but i get this error when i try to use the bybeat command

dyld: lazy symbol binding failed: Symbol not found: _AudioComponentFindNext
  Referenced from: /usr/local/bin/bytebeat (which was built for Mac OS X 10.11)
  Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox

dyld: Symbol not found: _AudioComponentFindNext
  Referenced from: /usr/local/bin/bytebeat (which was built for Mac OS X 10.11)
  Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox

Trace/BPT trap: 5

I'm on OSX 10.10. would this be a problem?

emcconville commented 7 years ago

I'm on OS X 10.10. would this be a problem?

Yes. There's some Audio Unit component not available in OS X 10.10. I'm amazed you successfully compiled at all.

Can you verify that you see the following messages? I think most if them can be cleaned up to include support for OS X 10.10.

Clang warning


/path/to/bytebeatx/ByteBeatCLI/beats.c:21:61: warning: '^' within '|' [-Wbitwise-op-parentheses]
    return ((t/2*(15&(0x2345678a0>>(t>>8&28))))|t/2>>(t>>11)^t>>12)+(t/16&t&24);
                                               ~~~~~~~~~~~~~^~~~~~
/path/to/bytebeatx/ByteBeatCLI/beats.c:21:61: note: place parentheses around the '^' expression to silence this warning
    return ((t/2*(15&(0x2345678a0>>(t>>8&28))))|t/2>>(t>>11)^t>>12)+(t/16&t&24);
                                                            ^
                                                (                 )
/path/to/bytebeatx/ByteBeatCLI/beats.c:131:53: warning: '&' within '^' [-Wbitwise-op-parentheses]
    return ((t<<1)^((t<<1)+(t>>7)&t>>12))|t>>(4-(1^7&(t>>19)))|t>>7;
                                                  ~~^~~~~~~~
/path/to/bytebeatx/ByteBeatCLI/beats.c:131:53: note: place parentheses around the '&' expression to silence this warning
    return ((t<<1)^((t<<1)+(t>>7)&t>>12))|t>>(4-(1^7&(t>>19)))|t>>7;
                                                    ^
                                                   (        )
/path/to/bytebeatx/ByteBeatCLI/beats.c:156:39: warning: '^' within '|' [-Wbitwise-op-parentheses]
    return t*(((t>>9)&10)|((t>>11)&24)^((t>>10)&15&(t>>15))); // tangent128
                         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/path/to/bytebeatx/ByteBeatCLI/beats.c:156:39: note: place parentheses around the '^' expression to silence this warning
    return t*(((t>>9)&10)|((t>>11)&24)^((t>>10)&15&(t>>15))); // tangent128
                                      ^
                          (                                )
/path/to/bytebeatx/ByteBeatCLI/beats.c:161:21: warning: '&' within '^' [-Wbitwise-op-parentheses]
    return (t*t/256)&(t>>((t/1024)%16))^t%64*(0xC0D3DE4D69>>(t>>9&30)&t%32)*t>>18; // ultrageranium
           ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/path/to/bytebeatx/ByteBeatCLI/beats.c:161:21: note: place parentheses around the '&' expression to silence this warning
    return (t*t/256)&(t>>((t/1024)%16))^t%64*(0xC0D3DE4D69>>(t>>9&30)&t%32)*t>>18; // ultrageranium
                    ^
           (                           )
4 warnings generated.

LD Errors

Undefined symbols for architecture x86_64:
  "_AudioComponentFindNext", referenced from:
      _audio_startup in audio_io.o
  "_AudioComponentInstanceDispose", referenced from:
      _audio_teardown in audio_io.o
  "_AudioComponentInstanceNew", referenced from:
      _audio_startup in audio_io.o
  "_AudioOutputUnitStart", referenced from:
      _audio_startup in audio_io.o
  "_AudioOutputUnitStop", referenced from:
      _audio_teardown in audio_io.o
  "_AudioUnitInitialize", referenced from:
      _audio_startup in audio_io.o
  "_AudioUnitSetProperty", referenced from:
      _audio_startup in audio_io.o
  "_AudioUnitUninitialize", referenced from:
      _audio_teardown in audio_io.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
MrDorianJames commented 7 years ago

Here is the output of my compilation:

=== BUILD TARGET bytebeat OF PROJECT ByteBeat WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat.LinkFileList
/bin/mkdir -p /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/bytebeat_vers.c
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-project-headers.hmap
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat.hmap
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-target-headers.hmap
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-own-target-headers.hmap
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-generated-files.hmap
write-file /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-non-framework-target-headers.hmap

CompileC build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/image_io.o ByteBeatCLI/image_io.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/FooBar/bytebeatx
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=105 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/81/nzgvqf_d1319qy85bzd6sjwc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-generated-files.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-own-target-headers.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-target-headers.hmap -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-project-headers.hmap -I/Users/FooBar/bytebeatx/build/Release/include -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/x86_64 -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources -F/Users/FooBar/bytebeatx/build/Release -MMD -MT dependencies -MF /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/image_io.d --serialize-diagnostics /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/image_io.dia -c /Users/FooBar/bytebeatx/ByteBeatCLI/image_io.c -o /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/image_io.o

CompileC build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/main.o ByteBeatCLI/main.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/FooBar/bytebeatx
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=105 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/81/nzgvqf_d1319qy85bzd6sjwc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-generated-files.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-own-target-headers.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-target-headers.hmap -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-project-headers.hmap -I/Users/FooBar/bytebeatx/build/Release/include -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/x86_64 -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources -F/Users/FooBar/bytebeatx/build/Release -MMD -MT dependencies -MF /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/main.dia -c /Users/FooBar/bytebeatx/ByteBeatCLI/main.c -o /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/main.o

CompileC build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/audio_io.o ByteBeatCLI/audio_io.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/FooBar/bytebeatx
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=105 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/81/nzgvqf_d1319qy85bzd6sjwc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-generated-files.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-own-target-headers.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-target-headers.hmap -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-project-headers.hmap -I/Users/FooBar/bytebeatx/build/Release/include -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/x86_64 -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources -F/Users/FooBar/bytebeatx/build/Release -MMD -MT dependencies -MF /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/audio_io.d --serialize-diagnostics /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/audio_io.dia -c /Users/FooBar/bytebeatx/ByteBeatCLI/audio_io.c -o /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/audio_io.o

CompileC build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/beats.o ByteBeatCLI/beats.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/FooBar/bytebeatx
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=105 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/81/nzgvqf_d1319qy85bzd6sjwc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-generated-files.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-own-target-headers.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-target-headers.hmap -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-project-headers.hmap -I/Users/FooBar/bytebeatx/build/Release/include -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/x86_64 -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources -F/Users/FooBar/bytebeatx/build/Release -MMD -MT dependencies -MF /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/beats.d --serialize-diagnostics /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/beats.dia -c /Users/FooBar/bytebeatx/ByteBeatCLI/beats.c -o /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/beats.o

CompileC build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat_vers.o build/ByteBeat.build/Release/bytebeat.build/DerivedSources/bytebeat_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/FooBar/bytebeatx
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=105 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/81/nzgvqf_d1319qy85bzd6sjwc0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-generated-files.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-own-target-headers.hmap -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-all-target-headers.hmap -iquote /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/bytebeat-project-headers.hmap -I/Users/FooBar/bytebeatx/build/Release/include -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/x86_64 -I/Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources -F/Users/FooBar/bytebeatx/build/Release -MMD -MT dependencies -MF /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat_vers.d --serialize-diagnostics /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat_vers.dia -c /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/DerivedSources/bytebeat_vers.c -o /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat_vers.o

Ld build/Release/bytebeat normal x86_64
    cd /Users/FooBar/bytebeatx
    export MACOSX_DEPLOYMENT_TARGET=10.11
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/FooBar/bytebeatx/build/Release -F/Users/FooBar/bytebeatx/build/Release -filelist /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat.LinkFileList -mmacosx-version-min=10.11 -framework CoreServices -framework ImageIO -framework CoreGraphics -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/FooBar/bytebeatx/build/ByteBeat.build/Release/bytebeat.build/Objects-normal/x86_64/bytebeat_dependency_info.dat -o /Users/FooBar/bytebeatx/build/Release/bytebeat

GenerateDSYMFile build/Release/bytebeat.dSYM build/Release/bytebeat
    cd /Users/FooBar/bytebeatx
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/FooBar/bytebeatx/build/Release/bytebeat -o /Users/FooBar/bytebeatx/build/Release/bytebeat.dSYM

** BUILD SUCCEEDED **
MrDorianJames commented 7 years ago

Can you verify that you see the following messages? I think most if them can be cleaned up to include support for OS X 10.10.

TBH, I don't see any of those errors. Sorry for my lack of knowledge of compiling things

emcconville commented 7 years ago

Thanks! It seems everything in this library was available with OS X 10.6. Still digging through header/docs.

Try adding this to the top of ByteBeatCLI/audio_io.c file.

#include <CoreAudio/CoreAudio.h>
#include <AudioToolbox/AudioToolbox.h>
#include <AudioUnit/AudioUnit.h>
MrDorianJames commented 7 years ago

No luck. I get the same output.

with command : bytebeat +44100.0 I get this:

dyld: lazy symbol binding failed: Symbol not found: _AudioComponentFindNext
  Referenced from: /usr/local/bin/bytebeat (which was built for Mac OS X 10.11)
  Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox

dyld: Symbol not found: _AudioComponentFindNext
  Referenced from: /usr/local/bin/bytebeat (which was built for Mac OS X 10.11)
  Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox

Trace/BPT trap: 5

Is that a correct command format or am I mis sing arguments?

emcconville commented 7 years ago

Command looks right. Without having 10.10 development chain handy, the only thing I can think of is rebuilding with MACOSX_DEPLOYMENT_TARGET set to 10.10. You can set this by editing ByteBeat.xcodeproj/project.pbxproj and search/replace the deployment target. (or opening in Xcode)

diff --git a/ByteBeat.xcodeproj/project.pbxproj b/ByteBeat.xcodeproj/project.pbxproj
index eb26d33..7e8c2a9 100644
--- a/ByteBeat.xcodeproj/project.pbxproj
+++ b/ByteBeat.xcodeproj/project.pbxproj
@@ -394,7 +394,7 @@
                                GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
                                GCC_WARN_UNUSED_FUNCTION = YES;
                                GCC_WARN_UNUSED_VARIABLE = YES;
-                               MACOSX_DEPLOYMENT_TARGET = 10.11;
+                               MACOSX_DEPLOYMENT_TARGET = 10.10;
                                MTL_ENABLE_DEBUG_INFO = YES;
                                ONLY_ACTIVE_ARCH = YES;
                                SDKROOT = macosx;
@@ -429,7 +429,7 @@
                                GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
                                GCC_WARN_UNUSED_FUNCTION = YES;
                                GCC_WARN_UNUSED_VARIABLE = YES;
-                               MACOSX_DEPLOYMENT_TARGET = 10.11;
+                               MACOSX_DEPLOYMENT_TARGET = 10.10;
                                MTL_ENABLE_DEBUG_INFO = NO;
                                SDKROOT = macosx;
                        };

Here's a binary I build under 10.10. No idea if that'll work for you :|

bytebeat.zip

emcconville commented 7 years ago

... or just build with

xcodebuild MACOSX_DEPLOYMENT_TARGET=10.10
MrDorianJames commented 7 years ago

Awesome!!! That worked. However, i'm getting a bunch of stuff printing to my terminal. I'm not sure if that is normal. it seems like it's oddly printing some of my AudioUnits info? AudioUnits that i didn't think i had anymore.


2016-11-16 03:49:47.413 bytebeat[11419:1157507] 03:49:47.412 WARNING:   >compload> AudioComponentPluginLoader.cpp:445: ParseInfoPlistArray: Z3TA+%202.component -- file:///Library/Audio/Plug-Ins/Components/: trouble parsing Info.plist's AudioComponents; entry: <CFBasicHash 0x7fc84041e670 [0x7fff74a20ed0]>{type = mutable dict, count = 7,
entries =>
    2 : <CFString 0x7fc84041eed0 [0x7fff74a20ed0]>{contents = "manufacturer"} = <CFString 0x7fc84041c0e0 [0x7fff74a20ed0]>{contents = "Cakewalk"}
    7 : <CFString 0x7fc84041ec20 [0x7fff74a20ed0]>{contents = "factoryFunction"} = <CFString 0x7fc84041f470 [0x7fff74a20ed0]>{contents = "AUWrapperFactory"}
    8 : <CFString 0x7fc84041eab0 [0x7fff74a20ed0]>{contents = "subtype"} = <CFString 0x7fc84041f5f0 [0x7fff74a20ed0]>{contents = "samp"}
    9 : <CFString 0x7fff749f4400 [0x7fff74a20ed0]>{contents = "description"} = <CFString 0x7fc84041ebc0 [0x7fff74a20ed0]>{contents = "Z3TA+ 2 Instrument"}
    10 : <CFString 0x7fc84041f6b0 [0x7fff74a20ed0]>{contents = "type"} = <CFString 0x7fc84041f6f0 [0x7fff74a20ed0]>{contents = "aumu"}
    11 : <CFString 0x7fc84041e620 [0x7fff74a20ed0]>{contents = "name"} = <CFString 0x7fc84041f4d0 [0x7fff74a20ed0]>{contents = "Cakewalk: Z3TA+ 2"}
    12 : <CFString 0x7fc84041f730 [0x7fff74a20ed0]>{contents = "version"} = <CFString 0x7fc84041f770 [0x7fff74a20ed0]>{contents = "0x00020000"}
}
^CSnap!

Thank you. BTW... you weren't joking about it being loud :-p

emcconville commented 7 years ago

Great to hear!

Looks like that warning message is related too a configuration/installation issues with Cakewalk. Might be worth jumping over to Cakewalk Support Home, and see if they can help.

Closing this issue for now. Cheers!