我正在尝试为k编译适用于android的kconfig,但遇到以下情况
In file included from /home/dashed/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/stl_algo.h:59:0,
from /home/dashed/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include/algorithm:62,
from /home/dashed/android-qt/include/QtCore/qglobal.h:109,
from /home/dashed/android-qt/include/QtCore/QtGlobal:1,
from /home/dashed/Documents/kconfig/src/core/kconfigbase.h:29,
from /home/dashed/Documents/kconfig/src/core/kconfig.h:27,
from /home/dashed/Documents/kconfig/src/core/kconfig.cpp:23:
/home/dashed/android-ndk-r10e/sources/cxx-stl/gnu-
libstdc++/4.9/include/cstdlib:72:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
我用:
生成了makefile。cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake -DECM_ADDITIONAL_FIND_ROOT_PATH=/home/dashed/android-qt -DCMAKE_INSTALL_PREFIX=/home/dashed/android-kf5 ..
我该怎么做才能成功编译?
答案 0 :(得分:0)
我通过更新ndk来“解决”了这个问题。我当时使用r10e编译qt,但使用r17b成功。