baresip / baresip-ios

Baresip for iOS
46 stars 33 forks source link

Can't compile g722 codec #36

Closed HammerProgrammer closed 3 years ago

HammerProgrammer commented 3 years ago

modules/g722/g722.c:13:10: fatal error: 'spandsp.h' file not found I've installed spandsp with Homebrew like it says in the wiki but it still can't find the header managed to fix this by adding a CPATH to /usr/local/include but now during building in Xcode I get this error

Undefined symbols for architecture x86_64: "_g722_decode", referenced from: _decode in libbaresip.a(g722.o) "_g722_decode_init", referenced from: _decode_update in libbaresip.a(g722.o) "_g722_encode", referenced from: _encode in libbaresip.a(g722.o) "_g722_encode_init", referenced from: _encode_update in libbaresip.a(g722.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

lilkid3 commented 3 years ago

Hi @HammerProgrammer, I have the same issue using, how did you handle the g722 codec. Thanks

HammerProgrammer commented 3 years ago

Hi @HammerProgrammer, I have the same issue using, how did you handle the g722 codec. Thanks

The g722 codec is not included in baresip you need to compile it yourself

lilkid3 commented 3 years ago

@HammerProgrammer Thanks, could you please share steps on how to compile the G722 codec. Thanks