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

Build failed example in xCode #222

Closed
Djoust opened this issue Feb 15, 2015 · 1 comment
Closed

Build failed example in xCode #222

Djoust opened this issue Feb 15, 2015 · 1 comment

Comments

@Djoust
Copy link

Djoust commented Feb 15, 2015

Hi,
I'm trying to build the c++ example in xCode but it fails at line 42 "essentia::init()"
If set all the linker flags and try to build it for 32-bit architecture.

This is the error i get:

ld: warning: ld: warning: ld: warning: ignoring file /usr/local/lib/libfftw3.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libfftw3.dylibignoring file /usr/local/lib/libyaml.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libyaml.dylibignoring file /usr/local/lib/libavcodec.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libavcodec.dylib


ld: warning: ignoring file /usr/local/lib/libavformat.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libavformat.dylib
ld: warning: ignoring file /usr/local/lib/libavutil.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libavutil.dylib
ld: warning: ignoring file /usr/local/lib/libtag.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libtag.dylib
ld: warning: ignoring file /usr/local/lib/libsamplerate.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libsamplerate.dylib
ld: warning: ignoring file /usr/local/lib/libswresample.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libswresample.dylib
ld: warning: ignoring file /usr/local/lib/libfftw3f.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libfftw3f.dylib
ld: warning: ignoring file /usr/local/lib/libessentia.a, file was built for archive which is not the architecture being linked (i386): /usr/local/lib/libessentia.a
Undefined symbols for architecture i386:
  "essentia::init()", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@Djoust
Copy link
Author

Djoust commented Feb 16, 2015

Solved!
Dont know what was wrong but i started a new project, followed these steps again and it worked.
#58 (comment)

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

2 participants