Building Boost Library for Android on OS X Mavericks - android

I'm having an issue with attempting to build boost library for android. I have the apple command line tools installed and I downloaded boost. I kept getting this error:
In file included from libs/thread/src/pthread/thread.cpp:9:
In file included from ./boost/thread/detail/config.hpp:11:
In file included from ./boost/config.hpp:57:
In file included from ./boost/config/platform/macos.hpp:28:
./boost/config/posix_features.hpp:18:15: fatal error: 'unistd.h' file not found
# include <unistd.h>
^
1 error generated.
...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-android/release/link-static/runtime-link-static/threading-multi/pthread/thread.o...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-android/release/link-static/runtime-link-static/threading-multi/pthread/once.o
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -Wno-unused-function --sysroot=/Users/mac/src/android/tc/sysroot -fPIC -O3 -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-android/release/link-static/runtime-link-static/threading-multi/pthread/once.o" "libs/thread/src/pthread/once.cpp"
In file included from libs/thread/src/pthread/once.cpp:6:
In file included from ./boost/thread/detail/config.hpp:11:
In file included from ./boost/config.hpp:57:
In file included from ./boost/config/platform/macos.hpp:28:
./boost/config/posix_features.hpp:18:15: fatal error: 'unistd.h' file not found
# include <unistd.h>
^
1 error generated.
...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-android/release/link-static/runtime-link-static/threading-multi/pthread/once.o...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-android/release/link-static/runtime-link-static/threading-multi/future.o
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pedantic -Wno-unused-function --sysroot=/Users/mac/src/android/tc/sysroot -fPIC -O3 -Wextra -Wno-long-long -Wno-variadic-macros -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG -I"." -c -o "bin.v2/libs/thread/build/gcc-android/release/link-static/runtime-link-static/threading-multi/future.o" "libs/thread/src/future.cpp"
In file included from libs/thread/src/future.cpp:6:
In file included from ./boost/thread/detail/config.hpp:11:
In file included from ./boost/config.hpp:57:
In file included from ./boost/config/platform/macos.hpp:28:
./boost/config/posix_features.hpp:18:15: fatal error: 'unistd.h' file not found
# include <unistd.h>
^
1 error generated.

I got the same when building Boost 1.55.0 on Maverick with MacOSX10.7.sdk. So I added -I/usr/include to cflags and cxxflags options in my compile command. It resolved this problem. My full command.
./b2 -d+2 toolset=clang cxxflags="-stdlib=libc++ -isysroot=$SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -I/usr/include" cflags="-stdlib=libc++ -isysroot=$SDKROOT -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET -I/usr/include" --layout=system --build-type=minimal --prefix=$QTDIR link=static runtime-link=static variant=release install

Related

Fatal error: 'config.h' file not found in react-native#0.68

I am trying to run a simple react native app on iOS. Recently React Native community have showed up some big updates, I guess that problem raised because of this new version. Because I just init new project and tried to run on iOS, it just throws error, On android its working fine but iOS isn't working. I have tried every solution but the question that peoples posted are lower version then 0.68 I guess, And there is a lot changes in react-native#0.68. Here is my react native info:
System:
OS: macOS 12.4
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU # 3.10GHz
Memory: 39.15 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.10.0 - /usr/local/bin/npm
Watchman: 2022.06.13.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
#react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
AND HERE IS THE OUTPUT AFTER RUNNING npx react-native run-is
yarn run v1.22.18
$ react-native run-ios
info Found Xcode workspace "carchaze.xcworkspace"
info Building (using "xcodebuild -workspace carchaze.xcworkspace -configuration Debug -scheme carchaze -destination id=281B8E0D-0F76-4F58-9290-06986344B5AA")
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening carchaze.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace carchaze.xcworkspace -configuration Debug -scheme carchaze -destination id=281B8E0D-0F76-4F58-9290-06986344B5AA
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: 24ae75df6fda02487e58c5e870d14769
Build description path: /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/XCBuildData/24ae75df6fda02487e58c5e870d14769-desc.xcbuild
note: Build preparation complete
note: Building targets in dependency order
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent-dummy.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Target\ Support\ Files/libevent/libevent-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'libevent' from project 'Pods')
cd /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios11.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fobjc-arc -fmodules -fmodules-cache-path\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version\=2 -fobjc-legacy-dispatch -index-store-path /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Index/DataStore -iquote /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/libevent-generated-files.hmap -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/libevent-own-target-headers.hmap -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/libevent-all-non-framework-target-headers.hmap -ivfsoverlay /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/all-product-headers.yaml -iquote /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/libevent-project-headers.hmap -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/libevent/include -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private/libevent -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public/libevent -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/libevent/include -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/DerivedSources-normal/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/DerivedSources/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/DerivedSources -F/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/libevent -include /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Target\ Support\ Files/libevent/libevent-prefix.pch -MMD -MT dependencies -MF /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent-dummy.d --serialize-diagnostics /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent-dummy.dia -c /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Target\ Support\ Files/libevent/libevent-dummy.m -o /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent-dummy.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/libevent.build/Objects-normal/x86_64/libevent-dummy.o
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/vlog_is_on.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/vlog_is_on.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
cd /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-ios11.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu++14 -stdlib\=libc++ -fmodules -fmodules-cache-path\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Index/DataStore -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/glog/include -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private/glog -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public/glog -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources-normal/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources -F/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/glog -Wno-shorten-64-to-32 -include /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Target\ Support\ Files/glog/glog-prefix.pch -MMD -MT dependencies -MF /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/vlog_is_on.d --serialize-diagnostics /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/vlog_is_on.dia -c /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/vlog_is_on.cc -o /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/vlog_is_on.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/vlog_is_on.o
In file included from /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/vlog_is_on.cc:35:
In file included from /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.h:73:
/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/base/mutex.h:105:10: fatal error: 'config.h' file not found
#include "config.h" // to figure out pthreads support
^~~~~~~~~~
1 error generated.
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/utilities.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
cd /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-ios11.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu++14 -stdlib\=libc++ -fmodules -fmodules-cache-path\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Index/DataStore -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/glog/include -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private/glog -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public/glog -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources-normal/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources -F/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/glog -Wno-shorten-64-to-32 -include /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Target\ Support\ Files/glog/glog-prefix.pch -MMD -MT dependencies -MF /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/utilities.d --serialize-diagnostics /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/utilities.dia -c /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.cc -o /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/utilities.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/utilities.o
In file included from /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.cc:32:
In file included from /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.h:73:
/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/base/mutex.h:105:10: fatal error: 'config.h' file not found
#include "config.h" // to figure out pthreads support
^~~~~~~~~~
1 error generated.
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/symbolize.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/symbolize.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
cd /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-ios11.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu++14 -stdlib\=libc++ -fmodules -fmodules-cache-path\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/atifkhan/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Index/DataStore -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/glog/include -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Private/glog -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Headers/Public/glog -I/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources-normal/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources/x86_64 -I/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/DerivedSources -F/Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Products/Debug-iphonesimulator/glog -Wno-shorten-64-to-32 -include /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/Target\ Support\ Files/glog/glog-prefix.pch -MMD -MT dependencies -MF /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/symbolize.d --serialize-diagnostics /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/symbolize.dia -c /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/symbolize.cc -o /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/symbolize.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/symbolize.o
In file included from /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/symbolize.cc:55:
In file included from /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.h:73:
/Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/base/mutex.h:105:10: fatal error: 'config.h' file not found
#include "config.h" // to figure out pthreads support
^~~~~~~~~~
1 error generated.
2022-06-19 22:38:25.298 xcodebuild[40727:215217] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-19 22:38:25.298 xcodebuild[40727:215217] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
The following build commands failed:
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/vlog_is_on.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/vlog_is_on.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/utilities.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/utilities.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
CompileC /Users/atifkhan/Library/Developer/Xcode/DerivedData/carchaze-falkqfsrsbarnffmcealtkufybsn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/glog.build/Objects-normal/x86_64/symbolize.o /Users/atifkhan/Downloads/project/React_Native_Projects/Carchaze/carchaze/ios/Pods/glog/src/symbolize.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'glog' from project 'Pods')
(3 failures)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It's frustrating, I work on it over 7 hours. I have read a lot of docs, but still didn't find any solution. It would be pleasure if someone have the solution of it.
I did a lot of research, but suddenly i saw a pkg called react-native-clean-project. I just run this command in my project directory npx react-native-clean-project and then just yarn run ios my project run successfully. I have no idea what this pkg did, but for sure it didn't downgrade my pkg, react-native is still on latest version and project is now running on IOS & Android both. This pkg is a lot helpful

Compiling x265 with ffmpeg for Android and receiving errors

Trying to compile x265 for use with arm64-v8a. After successuful build of x265 itself, I receive the following error when ffmpeg is about to compile:
require_pkg_config libx265 x265 x265.h x265_api_get
check_pkg_config libx265 x265 x265.h x265_api_get
test_pkg_config libx265 x265 x265.h x265_api_get
/root/ffmpeg_android/ffmpeg-android-1.6.3/ffmpeg-pkg-config --exists --print-errors x265
check_func_headers x265.h x265_api_get -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -lx265
test_ld cc -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -lx265
test_cc -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib
BEGIN /tmp/ffconf.xKyjnplW/test.c
1 #include <x265.h>
2 #include <stdint.h>
3 long check_x265_api_get(void) { return (long) x265_api_get; }
4 int main(void) { int ret = 0;
5 ret |= ((intptr_t)check_x265_api_get) & 0xFFFF;
6 return ret; }
END /tmp/ffconf.xKyjnplW/test.c
/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/aarch64-linux-android-clang -DANDROID -fpic -fpie -march=armv8-a --sysroot=/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Dstrtod=avpriv_strtod -DPIC -DANDROID -fpic -fpie -march=armv8-a -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/vpx/android/arm64-v8a/include -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x264/android/arm64-v8a/include/x264 -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/lame/android/arm64-v8a/include -DANDROID -fpic -fpie -march=armv8-a --static -mcpu=cortex-a57 -std=c11 -fPIE -fomit-frame-pointer -fPIC -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -c -o /tmp/ffconf.xKyjnplW/test.o /tmp/ffconf.xKyjnplW/test.c
clang60: warning: argument unused during compilation: '-L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib' [-Wunused-command-line-argument]
/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/aarch64-linux-android-clang -Wl,-z,defs -Wl,--unresolved-symbols=report-all -march=armv8-a -L/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -Wl,-z,relro -Wl,-z,now -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/vpx/android/arm64-v8a/lib -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x264/android/arm64-v8a/lib -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/lame/android/arm64-v8a/lib -Wl,-z,defs -Wl,--unresolved-symbols=report-all -march=armv8-a -L/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -Wl,-z,relro -Wl,-z,now --static --sysroot=/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/sysroot -mcpu=cortex-a57 -Wl,--as-needed -Wl,-z,noexecstack -fPIE -pie -I/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/include/x265 -L/root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib -o /tmp/ffconf.xKyjnplW/test /tmp/ffconf.xKyjnplW/test.o -lx265 -lgcc
clang60: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: skipping incompatible /root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib/libx265.a when searching for -lx265
/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: skipping incompatible /root/ffmpeg_android/ffmpeg-android-1.6.3/jni/x265/android/arm64-v8a/lib/libx265.a when searching for -lx265
/root/ffmpeg_android/ffmpeg-android-1.6.3/toolchain-android/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find -lx265
clang60: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: x265 not found using pkg-config
I use ffmpeg 4.1.3 and the latest version of x265 sources. I use this project to compile and I have succeeded when building without x265. I compile on Debian Buster x64.
I ended up using the scripts from this project that uses all latest NDK and ffmpeg together with every latest library, in order to create an ffmpeg binary. It works pretty well on my device and by modifying a bit, I got a static ffmpeg as well. I only needed to add 2 extra native libraries to my app for it to work. It even uses all CPU features so it is the fastest solution for mobiles.

ffmpeg build error looks tmp file creat fail?

./configure --target-os=android --prefix=$PREFIX \
--enable-cross-compile --enable-runtime-cpudetect --disable-asm --arch=arm \
--cc=$PREBUILT/linux-x86_64/bin/arm-linux-androideabi-gcc \
--cross-prefix=$PREBUILT/linux-x86_64/bin/arm-linux-androideabi- \
--disable-stripping --nm=$PREBUILT/linux-x86_64/bin/arm-linux-androideabi-nm --sysroot=$PLATFORM --enable-gpl --enable-shared --disable-static --enable-small --disable-ffprobe --disable-ffplay --disable-ffmpeg --disable-ffserver --disable-debug --extra-cflags="-fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a"
this is out put log:
Makefile:2: config.mak: 没有那个文件或目录
Makefile:67: /common.mak: 没有那个文件或目录
Makefile:109: /libavutil/Makefile: 没有那个文件或目录
Makefile:109: /library.mak: 没有那个文件或目录
Makefile:111: /doc/Makefile: 没有那个文件或目录
Makefile:198: /tests/Makefile: 没有那个文件或目录
make: *** No rule to make target '/tests/Makefile'。 停止。
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user#ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
but my gcc path works fine
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
I seems the temp file not create ,I can't find temp file in /tmp
this is end of config.log file:
dition: defined __ARM_ARCH_6T2__ || defined __TARGET_ARCH_6T2"
^
compilation terminated due to -Wfatal-errors.
check_cpp_condition stddef.h defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7
check_cpp
BEGIN /tmp/ffconf.FHwGDPbC.c
1 #include <stddef.h>
2 #if !(defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7)
3 #error "unsatisfied condition: defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7"
4 #endif
END /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a -E -o /tmp/ffconf.csA8Jm6F.o /tmp/ffconf.FHwGDPbC.c
/tmp/ffconf.FHwGDPbC.c:3:2: error: #error "unsatisfied condition: defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7"
#error "unsatisfied condition: defined __ARM_ARCH_7__ || defined __TARGET_ARCH_7"
^
compilation terminated due to -Wfatal-errors.
check_cpp_condition stddef.h defined __ARM_ARCH_7A__ || defined __TARGET_ARCH_7_A
check_cpp
BEGIN /tmp/ffconf.FHwGDPbC.c
1 #include <stddef.h>
2 #if !(defined __ARM_ARCH_7A__ || defined __TARGET_ARCH_7_A)
3 #error "unsatisfied condition: defined __ARM_ARCH_7A__ || defined __TARGET_ARCH_7_A"
4 #endif
END /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a -E -o /tmp/ffconf.csA8Jm6F.o /tmp/ffconf.FHwGDPbC.c
check_ld cc
check_cc
BEGIN /tmp/ffconf.FHwGDPbC.c
1 int main(void){ return 0; }
END /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -fPIC -DANDROID -D__thumb__ -mthumb -Wfatal-errors -Wno-deprecated -mfloat-abi=softfp -marm -march=armv7-a -march=armv7-a -c -o /tmp/ffconf.csA8Jm6F.o /tmp/ffconf.FHwGDPbC.c
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -isysroot /opt/android/android-sdk-linux/ndk-bundle/platforms/android-arm -march=armv7-a -o /tmp/ffconf.fjKb0Qb0 /tmp/ffconf.csA8Jm6F.o
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/opt/android/android-sdk-linux/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status
C compiler test failed.
Default NDK toolchain is unsuitable for compiling Autoconf projects. You'll need to generate standalong toolchain as described here. If this does not help, you should examine the failing command in config.log and see what exactly goes wrong (simple gcc test won't help as errors may be caused by linker).

compile NITE2 for android platform

i try to compile nite2 for android platform
but it throw out some error ,
is there someone can answer my question?
ash#XxAshxX:~/usr/NITE2/NiTE-2.0.0/Samples$ cd SimpleUserTracker/
ash#XxAshxX:~/usr/NITE2/NiTE-2.0.0/Samples/SimpleUserTracker$ l
main.cpp Makefile
ash#XxAshxX:~/usr/NITE2/NiTE-2.0.0/Samples/SimpleUserTracker$ PLATFORM=Arm make
arm-none-linux-gnueabi-g++ -MD -MP -MT "./../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.d ../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.o" -c -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O3 -fno-tree-pre -fno-strict-aliasing -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -Wall --sysroot=/opt/ -O2 -DNDEBUG -I../../Include -I/home/ash/usr/OpenNI2-android/Include/ -fPIC -fvisibility=hidden -o ../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.o main.cpp
In file included from /home/ash/usr/OpenNI2-android/Include/Linux-Arm/OniPlatformLinux-Arm.h:25,
from /home/ash/usr/OpenNI2-android/Include/OniPlatform.h:43,
from ../../Include/NiteCAPI.h:8,
from ../../Include/NiTE.h:11,
from main.cpp:8:
/home/ash/usr/OpenNI2-android/Include/Linux-Arm/../Linux-x86/OniPlatformLinux-x86.h:31: fatal error: unistd.h: No such file or directory
compilation terminated.
make: *** [../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.o] error 1
Since SimpleUserTracker utilizes a proprietary NiTE2 library its not possible to compile this source code for arm platform.

configure: error: C compiler cannot create executables while compiling python for android ON Linux Ubuntu

I allready created pyton for android folder few days ago, but forgot to nclude some modules. So I just wanted to do this again...
Tis is a result of ./distribute.sh
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _curses _curses_panel
_sqlite3 _ssl _tkinter
bsddb185 bz2 dbm
gdbm linuxaudiodev ossaudiodev
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
readline
Call build_python
Entering in ARM environment
Compiler found at /home/pawel/.buildozer/android/platform/android-ndk-r9c//toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... i686
checking for --without-gcc... no
checking for arm-eabi-gcc... ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm
checking whether the C compiler works... no
configure: error: in `/home/pawel/python-for-android/build/python/Python-2.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
And this is the end of config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 2.7, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --host=arm-eabi OPT= --prefix=/home/pawel/python-for-android/build/python-install --enable-shared --disable-toolbox-glue --disable-framework
## --------- ##
## Platform. ##
## --------- ##
hostname = pawel-ThinkPad-X61-Tablet
uname -m = i686
uname -r = 3.13.0-24-generic
uname -s = Linux
uname -v = #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/pawel/.buildozer/android/platform/android-ndk-r9c//toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/
PATH: /home/pawel/.buildozer/android/platform/android-ndk-r9c//toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/
PATH: /home/pawel/.buildozer/android/platform/android-ndk-r9c/
PATH: /home/pawel/.buildozer/android/platform/android-sdk-21//tools
PATH: .
PATH: /platform-tools
PATH: /tools
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2764: checking for --enable-universalsdk
configure:2805: result: no
configure:2814: checking for --with-universal-archs
configure:2831: result: 32-bit
configure:2988: checking MACHDEP
configure:3136: result: linux3
configure:3142: checking EXTRAPLATDIR
configure:3157: result:
configure:3168: checking machine type as reported by uname -m
configure:3171: result: i686
configure:3184: checking for --without-gcc
configure:3228: result: no
configure:3249: checking for arm-eabi-gcc
configure:3276: result: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm
configure:3545: checking for C compiler version
configure:3554: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm --version >&5
arm-linux-androideabi-gcc (GCC) 4.8
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3565: $? = 0
configure:3554: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -v >&5
Using built-in specs.
COLLECT_GCC=/home/pawel/.buildozer/android/platform/android-ndk-r9c//toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
COLLECT_LTO_WRAPPER=/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../libexec/gcc/arm-linux-androideabi/4.8/lto-wrapper
Target: arm-linux-androideabi
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.8/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=arm-linux-androideabi --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-cloog=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-isl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-ppl=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --disable-ppl-version-check --disable-cloog-version-check --disable-isl-version-check --enable-cloog-backend=isl --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot --with-binutils-version=2.23 --with-mpfr-version=3.1.1 --with-mpc-version=1.0.1 --with-gmp-version=5.0.5 --with-gcc-version=4.8 --with-gdb-version=7.3.x --with-python=/usr/local/google/home/andrewhsieh/mydroid/ndk/prebuilt/linux-x86/bin/python-config.sh --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.8 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --enable-plugins --enable-libgomp --disable-libsanitizer --enable-gold --enable-graphite=yes --with-cloog-version=0.18.0 --with-isl-version=0.11.1 --enable-eh-frame-hdr-for-static --with-arch=armv5te --program-transform-name='s&^&arm-linux-androideabi-&' --enable-gold=default
Thread model: posix
gcc version 4.8 (GCC)
configure:3565: $? = 0
configure:3554: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -V >&5
arm-linux-androideabi-gcc: error: unrecognized command line option '-V'
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
configure:3565: $? = 1
configure:3554: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -qversion >&5
arm-linux-androideabi-gcc: error: unrecognized command line option '-qversion'
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
configure:3565: $? = 1
configure:3585: checking whether the C compiler works
configure:3607: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -lm conftest.c >&5
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lm
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status
configure:3611: $? = 1
configure:3649: result: no
configure: failed program was:
| /* confdefs.h */
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _DARWIN_C_SOURCE 1
| #define _XOPEN_SOURCE 600
| #define _XOPEN_SOURCE_EXTENDED 1
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3654: error: in `/home/pawel/python-for-android/build/python/Python-2.7.2':
configure:3656: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value='ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-lm
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-eabi
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_CC='ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='arm-linux-androideabi-ar'
ARCH_RUN_32BIT=''
ARFLAGS=''
BASECFLAGS=''
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC='ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'
CCSHARED=''
CFLAGS='-DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'
CFLAGSFORSHARED=''
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=''
CONFIG_ARGS=' '\''--host=arm-eabi'\'' '\''OPT='\'' '\''--prefix=/home/pawel/python-for-android/build/python-install'\'' '\''--enable-shared'\'' '\''--disable-toolbox-glue'\'' '\''--disable-framework'\'' '\''host_alias=arm-eabi'\'' '\''CC=ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'\'' '\''CFLAGS=-DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'\'' '\''LDFLAGS=-lm'\'''
CPP=''
CPPFLAGS=''
CXX='ccache arm-linux-androideabi-g++ -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm'
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
EXTRAMACHDEPPATH=''
EXTRAPLATDIR=''
FRAMEWORKALTINSTALLFIRST=''
FRAMEWORKALTINSTALLLAST=''
FRAMEWORKINSTALLAPPSPREFIX=''
FRAMEWORKINSTALLFIRST=''
FRAMEWORKINSTALLLAST=''
FRAMEWORKUNIXTOOLSPREFIX='/home/pawel/python-for-android/build/python-install'
GNULD=''
GREP=''
HAS_HG=''
HAVE_GETHOSTBYNAME=''
HAVE_GETHOSTBYNAME_R=''
HAVE_GETHOSTBYNAME_R_3_ARG=''
HAVE_GETHOSTBYNAME_R_5_ARG=''
HAVE_GETHOSTBYNAME_R_6_ARG=''
HGBRANCH=''
HGTAG=''
HGVERSION=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTSONAME=''
LDCXXSHARED=''
LDFLAGS='-lm'
LDLAST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LIBC=''
LIBFFI_INCLUDEDIR=''
LIBM=''
LIBOBJS=''
LIBRARY=''
LIBS=''
LIBTOOL_CRUFT=''
LINKCC=''
LINKFORSHARED=''
LIPO_32BIT_FLAGS=''
LN=''
LTLIBOBJS=''
MACHDEP='linux3'
MACHDEP_OBJS=''
MAINCC=''
OBJEXT=''
OPT=''
OTHER_LIBTOOL_OPT=''
PACKAGE_BUGREPORT='http://bugs.python.org/'
PACKAGE_NAME='python'
PACKAGE_STRING='python 2.7'
PACKAGE_TARNAME='python'
PACKAGE_URL=''
PACKAGE_VERSION='2.7'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PYTHONFRAMEWORK=''
PYTHONFRAMEWORKDIR='no-framework'
PYTHONFRAMEWORKIDENTIFIER='org.python.python'
PYTHONFRAMEWORKINSTALLDIR=''
PYTHONFRAMEWORKPREFIX=''
RANLIB='arm-linux-androideabi-ranlib'
RUNSHARED=''
SGI_ABI=''
SHELL='/bin/bash'
SHLIBS=''
SIGNAL_OBJS=''
SO=''
SOVERSION='1.0'
SRCDIRS=''
SVNVERSION=''
THREADHEADERS=''
THREADOBJ=''
TRUE=''
UNICODE_OBJS=''
UNIVERSALSDK=''
UNIVERSAL_ARCH_FLAGS=''
USE_SIGNAL_MODULE=''
USE_THREAD_MODULE=''
VERSION='2.7'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias='arm-eabi'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/pawel/python-for-android/build/python-install'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define __BSD_VISIBLE 1
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED 1
#define _POSIX_C_SOURCE 200112L
configure: exit 77
That is probbably the most intresting part:
configure:3585: checking whether the C compiler works
configure:3607: ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/pawel/.buildozer/android/platform/android-ndk-r9c//platforms/android-21/arch-arm -lm conftest.c >&5
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lm
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/home/pawel/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status
configure:3611: $? = 1
configure:3649: result: no
I've been googling for hours.. So now I've got to ask You
Envirement is set as:
export ANDROIDNDK="/home/user/.buildozer/android/platform/android-ndk-r9c/"
export ANDROIDSDK="/home/user/.buildozer/android/platform/android-sdk-21/"
export PATH=$ANDROIDNDK:$ANDROIDSDK/platform-tools:$ANDROIDSDK/tools:$PATH
export ANDROIDAPI=21
export ANDROIDNDKVER=r9c

Categories

Resources