Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiled failed #9

Open
hfan0216 opened this issue Mar 5, 2023 · 1 comment
Open

compiled failed #9

hfan0216 opened this issue Mar 5, 2023 · 1 comment

Comments

@hfan0216
Copy link

hfan0216 commented Mar 5, 2023

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

@Zightch
Copy link

Zightch commented Jan 20, 2024

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: [email protected]

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants