Error while compiling code using MP3 lib converter libmp3lame.a

Asked

Viewed 32 times

1

Someone could help me, I’m having a problem running my app on Iphone 6 I use a library to convert audio to mp3 call libmp3lame.a, but I can’t compile, follow the Warning.

ld: warning: ignoring file /Users/Abound/Desktop/Projeto Sistema da Igreja/App/AppIgreja/AppIgreja/GravaAudio/libmp3lame.a, missing required architecture x86_64 in file /Users/Abound/Desktop/Projeto Sistema da Igreja/App/AppIgreja/AppIgreja/GravaAudio/libmp3lame.a (3 slices)
Undefined symbols for architecture x86_64:
 "_lame_close", referenced from:
   -[CorrenteOracoes toMp3] in CorrenteOracoes.o
"_lame_encode_buffer_interleaved", referenced from:
  -[CorrenteOracoes toMp3] in CorrenteOracoes.o
"_lame_encode_flush", referenced from:
  -[CorrenteOracoes toMp3] in CorrenteOracoes.o
"_lame_init", referenced from:
  -[CorrenteOracoes toMp3] in CorrenteOracoes.o
"_lame_init_params", referenced from:
  -[CorrenteOracoes toMp3] in CorrenteOracoes.o
"_lame_set_VBR", referenced from:
  -[CorrenteOracoes toMp3] in CorrenteOracoes.o
"_lame_set_in_samplerate", referenced from:
  -[CorrenteOracoes toMp3] in CorrenteOracoes.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • The error is saying that the version of libmp3lame.a is not using x86_64 architecture. Try downloading a new version that supports this architecture in this repository, or generate a new lib yourself by following these steps.

1 answer

0

Yes, as well commented iTSangar, you just need to recompile the librarylibmp3lame with architecture support x86_4, which is nothing more than the iOS Simulator (or are you using the library for a Desktop program?). If you’re using a device, such as an iPhone or iPad, the libmp3lame will work normally without build errors.

Coincidentally we also maintain a church project for iOS, which needs to send recordings made on .mp3 to be used as witnesses, hence the need to use the libmp3lame.

If you need help compiling libmp3lame to be used in the Simulator, please edit your answer so we can help you more specifically.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.