Open hfan0216 opened 1 year ago
Hello, I have the same problem as you. It seems that cpprestsdk is not installed properly. If you solve this problem, I hope you can give me a reply. Thank you.
If possible, please send it to my email: Zightch@163.com
The environment I'm using is Windows 11, MinGW(gcc, g++), IDE is CLion, dependency libraries installed using vcpkg
Reference: https://github.com/alibabacloud-sdk-cpp/alidns-20150109
Error message:
-- The C++ compiler ID is: GNU
-- The C++ compiler version is: 11.2.0
-- Build type: Debug
-- Install libraries
-- alibabacloud_endpoint_util : Project will be installed to C:/Program Files (x86)/alibabacloud_alidns_20150109
-- Installing LIB components to C:\Program Files (x86)\alibabacloud_alidns_20150109\lib
-- Installing BIN components to C:\Program Files (x86)\alibabacloud_alidns_20150109\bin
-- Installing INCLUDE components to C:\Program Files (x86)\alibabacloud_alidns_20150109\include
-- Installing CMAKE components to C:\Program Files (x86)\alibabacloud_alidns_20150109\CMake
-- darabonba_core could not be located, Building darabonba_core instead.
-- alibabacloud_alidns_20150109 : Project will be installed to C:/Program Files (x86)/alibabacloud_alidns_20150109
-- Installing LIB components to C:\Program Files (x86)\alibabacloud_alidns_20150109\lib
-- Installing BIN components to C:\Program Files (x86)\alibabacloud_alidns_20150109\bin
-- Installing INCLUDE components to C:\Program Files (x86)\alibabacloud_alidns_20150109\include
-- Installing CMAKE components to C:\Program Files (x86)\alibabacloud_alidns_20150109\CMake
-- Configuring done (18.7s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CPPREST_LIB
linked by target "alibabacloud_alidns_20150109" in directory F:/Desktop/alidns-20150109-master
linked by target "darabonba_util" in directory F:/Desktop/alidns-20150109-master/cmake-build-debug/_deps/_darabonba_util-src
linked by target "darabonba_core" in directory F:/Desktop/alidns-20150109-master/cmake-build-debug/_deps/_darabonba_core-src
linked by target "alibabacloud_open_api" in directory F:/Desktop/alidns-20150109-master/cmake-build-debug/_deps/_alibabacloud_open_api-src
linked by target "alibabacloud_credential" in directory F:/Desktop/alidns-20150109-master/cmake-build-debug/_deps/_alibabacloud_credential-src
linked by target "alibabacloud_open_api_util" in directory F:/Desktop/alidns-20150109-master/cmake-build-debug/_deps/_alibabacloud_open_api_util-src
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
after execute cmd: sh chatbot-20220408/scripts/install.sh
the out errror is: -- The C++ compiler ID is: GNU -- The C++ compiler version is: 10.2.1 -- Build type: Release -- Install libraries -- alibabacloud_endpoint_util : Project will be installed to /usr/local -- Installing LIB components to /usr/local/lib64 -- Installing BIN components to /usr/local/bin -- Installing INCLUDE components to /usr/local/include -- Installing CMAKE components to /usr/local/share/cmake/darabonba_util -- darabonba_core could not be located, Building darabonba_core instead. -- alibabacloud_chatbot_20220408 : Project will be installed to /usr/local -- Installing LIB components to /usr/local/lib64 -- Installing BIN components to /usr/local/bin -- Installing INCLUDE components to /usr/local/include -- Installing CMAKE components to /usr/local/share/cmake/darabonba_util -- Configuring done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: CPPREST_LIB linked by target "alibabacloud_chatbot_20220408" in directory /home/alibabacloud-cpp-sdk/chatbot-20220408 linked by target "darabonba_util" in directory /home/alibabacloud-cpp-sdk/chatbot-20220408/cmake_build/_deps/_darabonba_util-src linked by target "darabonba_core" in directory /home/alibabacloud-cpp-sdk/chatbot-20220408/cmake_build/_deps/_darabonba_core-src linked by target "alibabacloud_open_api" in directory /home/alibabacloud-cpp-sdk/chatbot-20220408/cmake_build/_deps/_alibabacloud_open_api-src linked by target "alibabacloud_credential" in directory /home/alibabacloud-cpp-sdk/chatbot-20220408/cmake_build/_deps/_alibabacloud_credential-src linked by target "alibabacloud_open_api_util" in directory /home/alibabacloud-cpp-sdk/chatbot-20220408/cmake_build/_deps/_alibabacloud_open_api_util-src
-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.
Error: Failed to cmake.
i compile the sdk follow the steps in link: https://github.com/alibabacloud-sdk-cpp/chatbot-20220408/?spm=api-workbench.SDK%20Document.0.0.31151d204a0lj5