libfec icon indicating copy to clipboard operation
libfec copied to clipboard

configure fails to generate makefile on Mac OS X

Open muellermartin opened this issue 9 years ago • 3 comments

Compiling libfec on Mac OS 10.11.3 (El Capitan) keeps failing by saying error: unknown target CPU 'i386' when running make after ./configure. I tried to fix that by manually specifing the build target via --build=x86_64 (as I'm running 64-bit architecture and i686 fails with a similar error) when running configure (e.g. ./configure --build=x86_64), but this leads to an error when linking stating ld: unknown option: -soname=libfec.so. By looking at the makefile there seems to be a target for Mac OS (libfec.dylib in line 98), it just does not get triggered. Passing a full tuple like x86_64-apple-darwin to the configure script (e.g. ./configure --build=x86_64-apple-darwin) successfully builds libfec on my machine. I hope this helps other users on Mac OS X as this behaviour is somewhat strange. Maybe the configure script is somehow wrong...

muellermartin avatar Mar 10 '16 20:03 muellermartin

I have to do the same thing as you. Thanks for pointing this out. It's something that can hopefully be fixed.

brian-armstrong avatar Mar 10 '16 20:03 brian-armstrong

Thanks @muellermartin. Successfully built on my el capitan with your tip.

beshrkayali avatar Jun 14 '16 09:06 beshrkayali

This would be nice if it was in the readme for libfec or in a wiki somewhere

fornof avatar Jul 28 '19 16:07 fornof