Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac ** BUILD FAILED ** with brds #3

Open
sonoptik opened this issue May 22, 2022 · 5 comments
Open

Mac ** BUILD FAILED ** with brds #3

sonoptik opened this issue May 22, 2022 · 5 comments

Comments

@sonoptik
Copy link

** BUILD FAILED **

The following build commands failed:
Ld /Users/tomhall/vb.mi-dev/build/source/projects/vb.mi.brds_tilde/vb.mi-dev.build/Release/vb.mi.brds_tilde.build/Objects-normal/x86_64/Binary/vb.mi.brds~ normal x86_64 (in target 'vb.mi.brds_tilde' from project 'vb.mi-dev')
(1 failure)

@v7b1
Copy link
Owner

v7b1 commented Jun 29, 2022

Hi, what were the exact commands you ran to start building? or did you generate an xcode project and start compiling from there? Did you follow the steps from the readme?
Just a shot in the dark: brds depends on libsamplerate. did you build it first?

@alafanechere
Copy link

Hi, I'm facing the same error. Could it be because I'm building on Apple M1?

@alafanechere
Copy link

ld: warning: ignoring file /Users/augustin/workspace/vb.mi-dev/source/libs/libsamplerate/build/src/libsamplerate.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_src_callback_new", referenced from:
      myObj_new(c74::max::symbol*, long, c74::max::atom*) in vb.mi.brds_tilde.o
  "_src_callback_read", referenced from:
      myObj_perform64(t_myObj*, c74::max::object*, double**, long, double**, long, long, long, void*) in vb.mi.brds_tilde.o
  "_src_delete", referenced from:
      myObj_free(t_myObj*) in vb.mi.brds_tilde.o
  "_src_strerror", referenced from:
      myObj_new(c74::max::symbol*, long, c74::max::atom*) in vb.mi.brds_tilde.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@v7b1
Copy link
Owner

v7b1 commented Dec 3, 2022

@alafanechere looks like you built libsamplerate for arm64 only, but trying to link it with x86_64 version of mi.brds~.

@dfischer
Copy link

Same issue. I did have an error with Xcode command line tools and had to reinstall it. I don't think the M1 Mac can build the x86 version? I could be wrong. Perhaps libsamplerate is being built for arm64 and since no build option for mi.brds~ for arm64 it's trying to do it in x86_64? I am out of touch/date with the way these archs are being handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants