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

Build Error #284

Open
Sunburst7 opened this issue Aug 22, 2023 · 1 comment
Open

Build Error #284

Sunburst7 opened this issue Aug 22, 2023 · 1 comment

Comments

@Sunburst7
Copy link

Envirmorment

Centos7
cmake version 3.27.3
gcc version 13.2.0 (GCC)

I have execute cmake .. ,

-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- compiler: GNU
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Looking for C++ include any
-- Looking for C++ include any - found
-- Looking for C++ include string_view
-- Looking for C++ include string_view - found
-- Looking for C++ include coroutine
-- Looking for C++ include coroutine - not found
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1") 
-- Could NOT find Botan (missing: Botan_LIBRARIES Botan_INCLUDE_DIRS) 
-- Trantor using SSL library: None
-- Could NOT find c-ares (missing: C-ARES_INCLUDE_DIRS C-ARES_LIBRARIES) 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Looking for C++ include filesystem
-- Looking for C++ include filesystem - found
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED
-- Performing Test CXX_FILESYSTEM_NO_LINK_NEEDED - Success
-- Found std::filesystem
-- use c++17
-- Found Jsoncpp: /usr/local/include  
-- jsoncpp verson:1.9.5
-- yaml-cpp not used
-- Found UUID: /lib64/libuuid.so
-- Could NOT find BROTLI (missing: BROTLIDEC_LIBRARY BROTLIENC_LIBRARY BROTLICOMMON_LIBRARY BROTLI_INCLUDE_DIR) 
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR) 
-- Could NOT find pg (missing: PG_LIBRARIES PG_INCLUDE_DIRS) 
-- MySql was not found.
-- sqlite3 was not found.
-- Could NOT find Hiredis (missing: HIREDIS_LIBRARY HIREDIS_INCLUDE_DIR) 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")  
-- cspFile:/home/drogon/drogon_ctl/templates/cmake.csp
-- view classname:cmake
-- cspFile:/home/drogon/drogon_ctl/templates/config_json.csp
-- view classname:config_json
-- cspFile:/home/drogon/drogon_ctl/templates/config_yaml.csp
-- view classname:config_yaml
-- cspFile:/home/drogon/drogon_ctl/templates/demoMain.csp
-- view classname:demoMain
-- cspFile:/home/drogon/drogon_ctl/templates/filter_cc.csp
-- view classname:filter_cc
-- cspFile:/home/drogon/drogon_ctl/templates/filter_h.csp
-- view classname:filter_h
-- cspFile:/home/drogon/drogon_ctl/templates/gitignore.csp
-- view classname:gitignore
-- cspFile:/home/drogon/drogon_ctl/templates/model_cc.csp
-- view classname:model_cc
-- cspFile:/home/drogon/drogon_ctl/templates/model_h.csp
-- view classname:model_h
-- cspFile:/home/drogon/drogon_ctl/templates/model_json.csp
-- view classname:model_json
-- cspFile:/home/drogon/drogon_ctl/templates/plugin_cc.csp
-- view classname:plugin_cc
-- cspFile:/home/drogon/drogon_ctl/templates/plugin_h.csp
-- view classname:plugin_h
-- cspFile:/home/drogon/drogon_ctl/templates/restful_controller_base_cc.csp
-- view classname:restful_controller_base_cc
-- cspFile:/home/drogon/drogon_ctl/templates/restful_controller_base_h.csp
-- view classname:restful_controller_base_h
-- cspFile:/home/drogon/drogon_ctl/templates/restful_controller_cc.csp
-- view classname:restful_controller_cc
-- cspFile:/home/drogon/drogon_ctl/templates/restful_controller_custom_cc.csp
-- view classname:restful_controller_custom_cc
-- cspFile:/home/drogon/drogon_ctl/templates/restful_controller_custom_h.csp
-- view classname:restful_controller_custom_h
-- cspFile:/home/drogon/drogon_ctl/templates/restful_controller_h.csp
-- view classname:restful_controller_h
-- cspFile:/home/drogon/drogon_ctl/templates/test_cmake.csp
-- view classname:test_cmake
-- cspFile:/home/drogon/drogon_ctl/templates/test_main.csp
-- view classname:test_main
-- bin:bin
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done (5.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/drogon/build

and then when I execute make, it occur:

image

it seems like that the compile don‘t support unique_ptr?

@an-tao
Copy link
Owner

an-tao commented Aug 22, 2023

please try to add the #include <memory> line on the top of the file.

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