error: lua: no archive symbol table (run ranlib)
i'm compile android platform on macosx
VLC source found Configuring ABI: armeabi-v7a API: android-9 SYSROOT: /Users/lidongxu/dev_software/android-ndk-r12b/platforms/android-9/arch-arm PATH: /Users/lidongxu/dev_software/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin:/Users/lidongxu/.jenv/bin:/usr/local/apache-ant-1.9.7/bin:/usr/local/curl/bin/:/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home//bin:/Users/lidongxu/workspace/modifyPackage_server/tools:/Users/lidongxu/dev_software/apache-ant-1.9.6/bin:/Users/lidongxu/dev_software/cocos2d-x-3.9:/Users/lidongxu/dev_software/cocos2d-x-3.9/tools/cocos2d-console/bin:/Users/lidongxu/dev_software/android-ndk-r12b:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/build-tools/23.0.1:/Users/lidongxu/dev_software/mysql/bin:/usr/local/bin:/Users/lidongxu/bin:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/tools:/Users/lidongxu/dev_software/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin:/Users/lidongxu/.jenv/bin:/usr/local/apache-ant-1.9.7/bin:/usr/local/curl/bin/:/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home//bin:/Users/lidongxu/workspace/modifyPackage_server/tools:/Users/lidongxu/dev_software/apache-ant-1.9.6/bin:/Users/lidongxu/dev_software/cocos2d-x-3.9:/Users/lidongxu/dev_software/cocos2d-x-3.9/tools/cocos2d-console/bin:/Users/lidongxu/dev_software/android-ndk-r12b:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/build-tools/23.0.1:/Users/lidongxu/dev_software/mysql/bin:/usr/local/bin:/Users/lidongxu/bin:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin CFLAGS: -g -O2 -fstrict-aliasing -funsafe-math-optimizations -mlong-calls EXTRA_CFLAGS: -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include Building tools You are ready to build VLC and its contribs Building the contribs Generating EGL pkg-config file Generating GLESv2 pkg-config file -n Guessing build system... x86_64-apple-darwin14.4.0 Creating configuration file... config.mak Bootstrap completed. Run "make" to start compilation.
Other targets:
- make install same as "make"
- make prebuilt fetch and install prebuilt binaries
- make list list packages
- make fetch fetch required source tarballs
- make fetch-all fetch all source tarballs
- make distclean clean everything and undo bootstrap
- make mostlyclean clean everything except source tarballs
- make clean clean everything
- make package prepare prebuilt packages
- make help show this text
make: Nothing to be done for
fetch'. make:
.gettext' is up to date. cd lua && CC="arm-linux-androideabi-gcc --sysroot=/Users/lidongxu/dev_software/android-ndk-r12b/platforms/android-9/arch-arm" CXX="arm-linux-androideabi-g++ --sysroot=/Users/lidongxu/dev_software/android-ndk-r12b/platforms/android-9/arch-arm" LD="arm-linux-androideabi-ld" AR="arm-linux-androideabi-ar" CCAS="arm-linux-androideabi-gcc --sysroot=/Users/lidongxu/dev_software/android-ndk-r12b/platforms/android-9/arch-arm -c" RANLIB="arm-linux-androideabi-ranlib" STRIP="arm-linux-androideabi-strip" PATH="/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/arm-linux-androideabi/bin:/Users/lidongxu/oraginal_projects/vlc-android/vlc/extras/tools/build/bin:/Users/lidongxu/oraginal_projects/vlc-android/vlc/extras/tools/build/bin:/Users/lidongxu/dev_software/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin:/Users/lidongxu/.jenv/bin:/usr/local/apache-ant-1.9.7/bin:/usr/local/curl/bin/:/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home//bin:/Users/lidongxu/workspace/modifyPackage_server/tools:/Users/lidongxu/dev_software/apache-ant-1.9.6/bin:/Users/lidongxu/dev_software/cocos2d-x-3.9:/Users/lidongxu/dev_software/cocos2d-x-3.9/tools/cocos2d-console/bin:/Users/lidongxu/dev_software/android-ndk-r12b:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/build-tools/23.0.1:/Users/lidongxu/dev_software/mysql/bin:/usr/local/bin:/Users/lidongxu/bin:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/tools:/Users/lidongxu/dev_software/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin:/Users/lidongxu/.jenv/bin:/usr/local/apache-ant-1.9.7/bin:/usr/local/curl/bin/:/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home//bin:/Users/lidongxu/workspace/modifyPackage_server/tools:/Users/lidongxu/dev_software/apache-ant-1.9.6/bin:/Users/lidongxu/dev_software/cocos2d-x-3.9:/Users/lidongxu/dev_software/cocos2d-x-3.9/tools/cocos2d-console/bin:/Users/lidongxu/dev_software/android-ndk-r12b:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/build-tools/23.0.1:/Users/lidongxu/dev_software/mysql/bin:/usr/local/bin:/Users/lidongxu/bin:/Users/lidongxu/dev_software/android-sdk-macosx/platform-tools:/Users/lidongxu/dev_software/android-sdk-macosx/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/../arm-linux-androideabi/bin" CPPFLAGS=" -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/arm-linux-androideabi/include -fPIC" CFLAGS=" -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2 -fPIC" CXXFLAGS=" -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/arm-linux-androideabi/include -g -O2 -fPIC" LDFLAGS=" -L/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -lgnustl_static -L/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/arm-linux-androideabi/lib" /Applications/Xcode.app/Contents/Developer/usr/bin/make linux cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make linux /Applications/Xcode.app/Contents/Developer/usr/bin/make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" gcc -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -g -mfpu=vfpv3-d16 -mcpu=cortex-a8 -mthumb -mfloat-abi=softfp -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/include -I/Users/lidongxu/dev_software/android-ndk-r12b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I/Users/lidongxu/oraginal_projects/vlc-android/vlc/contrib/arm-linux-androideabi/include -fPIC -c -o lua.o lua.c clang: warning: argument unused during compilation: '-mfpu=vfpv3-d16' clang: warning: argument unused during compilation: '-mcpu=cortex-a8' clang: warning: argument unused during compilation: '-mthumb' clang: warning: argument unused during compilation: '-mfloat-abi=softfp' gcc -std=gnu99 -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline ld: unknown option: -E clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [lua] Error 1 make[2]: *** [linux] Error 2 make[1]: *** [linux] Error 2 make: *** [.lua] Error 2 contribs: make failed
I attempt to make lua use (make macosx test) , i can compile success . but i will get the error: /Users/lidongxu/dev_software/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: lua: no archive symbol table (run ranlib)
omg