lame-ios-build icon indicating copy to clipboard operation
lame-ios-build copied to clipboard

C compiler cannot create executables

Open Vetagiri-Hrushikesh opened this issue 4 years ago • 1 comments

checking build system type... x86_64-apple-darwin20.4.0 checking host system type... i386-apple-darwin checking for a BSD-compatible install... /usr/local/bin/ginstall -c checking whether build environment is sane... yes checking for i386-apple-darwin-strip... no checking for strip... strip checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for i386-apple-darwin-gcc... xcrun -sdk iphonesimulator clang -arch i386 checking whether the C compiler works... no configure: error: in /Users/mac/Desktop/Organize/Personal/MaighaCom/TestingSources/maiSources/ffmpeg_build/platforms/ffmpeg_build_ios/scratch-lame/i386': configure: error: C compiler cannot create executables See config.log' for more details make: *** No rule to make target `install'. Stop.

Thank you for help

Vetagiri-Hrushikesh avatar May 09 '21 09:05 Vetagiri-Hrushikesh

try this

./configure \
--disable-shared \
--disable-frontend \
--host=arm-apple-darwin \
--prefix="/Users/nina/Documents/personal/audioLearn/lame/lame/thin/armv7" \
CC="xcrun -sdk iphoneos clang -arch armv7" \
CFLAGS="-arch armv7 -fembed-bitcode -miphoneos-version-min=7.0" \
LDFLAGs="-arch armv7 -fembed-bitcode -miphoneos-version-min=7.0"
make clean
make -j8
make install

ninaccl avatar Nov 27 '21 06:11 ninaccl