Ich verwende buildroot und ich versuche, die AWS IOT Cmake Bibliothek zu überqueren kompilieren Sie hier: https://github.com/aws/aws-iot-device-sdk-cppBuildroot Makefile für aws-IOT-device-sdk-CPP
ich einen anderen buildroot Make-Datei haben (die kompiliert korrekt) für die verschiedenen AWS sdk von hier: https://github.com/aws/aws-sdk-cpp
ich, dass andere Make-Datei kopiert und versucht, es zu ändern, zu bauen, aber ich bekomme die folgende Fehlermeldung:
...
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:9 (message):
In-source builds not allowed. Please make a new directory (called a build
directory) and run CMake from there. You may need to remove CMakeCache.txt
and CMakeFiles folder.
...
Makefi le:
################################################################################
# aws-iot-device-sdk-cpp
################################################################################
AWS_IOT_DEVICE_SDK_CPP_VERSION = master
AWS_IOT_DEVICE_SDK_CPP_SITE = https://github.com/aws/aws-iot-device-sdk-cpp.git
AWS_IOT_DEVICE_SDK_CPP_SITE_METHOD = git
AWS_IOT_DEVICE_SDK_CPP_INSTALL_STAGING = YES
AWS_IOT_DEVICE_SDK_CPP_INSTALL_TARGET = YES
AWS_IOT_DEVICE_SDK_CPP_CONF_OPT = -DBUILD_ONLY="aws-iot-sdk-cpp"
AWS_IOT_DEVICE_SDK_CPP_DEPENDENCIES = host-cmake libcurl openssl util-linux
AWS_IOT_DEVICE_SDK_CPP_LICENSE = GPLv2
AWS_IOT_DEVICE_SDK_CPP_LICENSE_FILES = LICENSE
AWS_IOT_DEVICE_SDK_CPP_PRE_CONFIGURE_HOOKS += AWS_IOT_DEVICE_SDK_CPP_CMAKE_MOVE_HOOK
define AWS_IOT_DEVICE_SDK_CPP_CMAKE_MOVE_HOOK
mkdir $(@D)/build
endef
$(eval $(cmake-package))
Wie bekomme ich Buildroot, um diese Bibliothek zu kompilieren? Vielen Dank.