-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ld: library 'yaml-cpp' not found #2195
Comments
If you don't use YAML CPP, you can turn it off, |
I did the following ➜ build git:(master) ✗ make clean
➜ build git:(master) ✗ cmake .. -DBUILD_YAML_CONFIG=OFF
-- compiler: AppleClang
-- Trantor using SSL library: OpenSSL
-- c-ares found!
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Found std::filesystem
-- use c++20
-- jsoncpp version:1.9.4
-- yaml-cpp not used
-- Found UUID: /usr/local/lib/libuuid.dylib
-- Brotli found
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
-- Could NOT find pg (missing: PG_LIBRARIES PG_INCLUDE_DIRS)
-- MySql was not found.
-- Ok! We find sqlite3!
-- Could NOT find Hiredis (missing: HIREDIS_LIBRARY HIREDIS_INCLUDE_DIR)
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/cmake.csp
-- view classname:cmake
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/config_json.csp
-- view classname:config_json
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/config_yaml.csp
-- view classname:config_yaml
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/demoMain.csp
-- view classname:demoMain
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/filter_cc.csp
-- view classname:filter_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/filter_h.csp
-- view classname:filter_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/gitignore.csp
-- view classname:gitignore
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/model_cc.csp
-- view classname:model_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/model_h.csp
-- view classname:model_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/model_json.csp
-- view classname:model_json
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/plugin_cc.csp
-- view classname:plugin_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/plugin_h.csp
-- view classname:plugin_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_base_cc.csp
-- view classname:restful_controller_base_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_base_h.csp
-- view classname:restful_controller_base_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_cc.csp
-- view classname:restful_controller_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_custom_cc.csp
-- view classname:restful_controller_custom_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_custom_h.csp
-- view classname:restful_controller_custom_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_h.csp
-- view classname:restful_controller_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/test_cmake.csp
-- view classname:test_cmake
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/test_main.csp
-- view classname:test_main
-- bin:bin
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done (2.1s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/vzool/Workspace/drogon Then ➜ build git:(master) ✗ make
[ 1%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/AsyncFileLogger.cc.o
[ 1%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/ConcurrentTaskQueue.cc.o
[ 2%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/Date.cc.o
[ 2%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/LogStream.cc.o
[ 2%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/Logger.cc.o
[ 3%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/MsgBuffer.cc.o
[ 3%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/SerialTaskQueue.cc.o
[ 4%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/TimingWheel.cc.o
[ 4%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/Utilities.cc.o
[ 5%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/EventLoop.cc.o
[ 5%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/EventLoopThread.cc.o
[ 6%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/EventLoopThreadPool.cc.o
[ 6%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/InetAddress.cc.o
[ 7%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/TcpClient.cc.o
[ 7%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/TcpServer.cc.o
[ 8%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/Channel.cc.o
[ 8%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Acceptor.cc.o
[ 9%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Connector.cc.o
[ 9%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Poller.cc.o
[ 10%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Socket.cc.o
[ 10%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/MemBufferNode.cc.o
[ 11%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/StreamBufferNode.cc.o
[ 11%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/AsyncStreamBufferNode.cc.o
[ 12%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/TcpConnectionImpl.cc.o
[ 12%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Timer.cc.o
[ 13%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/TimerQueue.cc.o
[ 13%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/poller/EpollPoller.cc.o
[ 14%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/poller/KQueue.cc.o
[ 14%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/poller/PollPoller.cc.o
[ 15%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/FileBufferNodeUnix.cc.o
[ 15%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/tlsprovider/OpenSSLProvider.cc.o
[ 16%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/crypto/openssl.cc.o
[ 16%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/AresResolver.cc.o
[ 17%] Linking CXX static library libtrantor.a
[ 17%] Built target trantor
[ 18%] Building CXX object CMakeFiles/drogon.dir/lib/src/AOPAdvice.cc.o
[ 18%] Building CXX object CMakeFiles/drogon.dir/lib/src/AccessLogger.cc.o
[ 19%] Building CXX object CMakeFiles/drogon.dir/lib/src/CacheFile.cc.o
[ 19%] Building CXX object CMakeFiles/drogon.dir/lib/src/ConfigAdapterManager.cc.o
[ 20%] Building CXX object CMakeFiles/drogon.dir/lib/src/ConfigLoader.cc.o
[ 20%] Building CXX object CMakeFiles/drogon.dir/lib/src/Cookie.cc.o
[ 21%] Building CXX object CMakeFiles/drogon.dir/lib/src/DrClassMap.cc.o
[ 21%] Building CXX object CMakeFiles/drogon.dir/lib/src/DrTemplateBase.cc.o
[ 22%] Building CXX object CMakeFiles/drogon.dir/lib/src/MiddlewaresFunction.cc.o
[ 22%] Building CXX object CMakeFiles/drogon.dir/lib/src/FixedWindowRateLimiter.cc.o
[ 23%] Building CXX object CMakeFiles/drogon.dir/lib/src/GlobalFilters.cc.o
[ 23%] Building CXX object CMakeFiles/drogon.dir/lib/src/Histogram.cc.o
[ 24%] Building CXX object CMakeFiles/drogon.dir/lib/src/Hodor.cc.o
[ 24%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpAppFrameworkImpl.cc.o
[ 25%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpBinder.cc.o
[ 25%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpClientImpl.cc.o
[ 26%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpConnectionLimit.cc.o
[ 26%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpControllerBinder.cc.o
[ 27%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpControllersRouter.cc.o
[ 27%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpFileImpl.cc.o
[ 27%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpFileUploadRequest.cc.o
[ 28%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpRequestImpl.cc.o
[ 28%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpRequestParser.cc.o
[ 29%] Building CXX object CMakeFiles/drogon.dir/lib/src/RequestStream.cc.o
[ 29%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpResponseImpl.cc.o
[ 30%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpResponseParser.cc.o
[ 30%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpServer.cc.o
[ 31%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpUtils.cc.o
/Users/vzool/Workspace/drogon/lib/src/HttpUtils.cc:62:10: warning: 'CT_APPLICATION_X_JAVASCRIPT' is deprecated: use CT_TEXT_JAVASCRIPT [-Wdeprecated-declarations]
62 | {CT_APPLICATION_X_JAVASCRIPT,
| ^
/Users/vzool/Workspace/drogon/lib/inc/drogon/HttpTypes.h:106:35: note: 'CT_APPLICATION_X_JAVASCRIPT' has been explicitly marked deprecated here
106 | CT_APPLICATION_X_JAVASCRIPT [[deprecated("use CT_TEXT_JAVASCRIPT")]],
| ^
/Users/vzool/Workspace/drogon/lib/src/HttpUtils.cc:733:23: warning: 'CT_APPLICATION_X_JAVASCRIPT' is deprecated: use CT_TEXT_JAVASCRIPT [-Wdeprecated-declarations]
733 | extensionMap_[CT_APPLICATION_X_JAVASCRIPT] =
| ^
/Users/vzool/Workspace/drogon/lib/inc/drogon/HttpTypes.h:106:35: note: 'CT_APPLICATION_X_JAVASCRIPT' has been explicitly marked deprecated here
106 | CT_APPLICATION_X_JAVASCRIPT [[deprecated("use CT_TEXT_JAVASCRIPT")]],
| ^
2 warnings generated.
[ 31%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpViewData.cc.o
[ 32%] Building CXX object CMakeFiles/drogon.dir/lib/src/IntranetIpFilter.cc.o
[ 32%] Building CXX object CMakeFiles/drogon.dir/lib/src/JsonConfigAdapter.cc.o
[ 33%] Building CXX object CMakeFiles/drogon.dir/lib/src/ListenerManager.cc.o
[ 33%] Building CXX object CMakeFiles/drogon.dir/lib/src/LocalHostFilter.cc.o
[ 34%] Building CXX object CMakeFiles/drogon.dir/lib/src/MultiPart.cc.o
[ 34%] Building CXX object CMakeFiles/drogon.dir/lib/src/MultipartStreamParser.cc.o
[ 35%] Building CXX object CMakeFiles/drogon.dir/lib/src/NotFound.cc.o
[ 35%] Building CXX object CMakeFiles/drogon.dir/lib/src/PluginsManager.cc.o
[ 36%] Building CXX object CMakeFiles/drogon.dir/lib/src/PromExporter.cc.o
[ 36%] Building CXX object CMakeFiles/drogon.dir/lib/src/RangeParser.cc.o
[ 37%] Building CXX object CMakeFiles/drogon.dir/lib/src/RateLimiter.cc.o
[ 37%] Building CXX object CMakeFiles/drogon.dir/lib/src/RealIpResolver.cc.o
[ 38%] Building CXX object CMakeFiles/drogon.dir/lib/src/SecureSSLRedirector.cc.o
[ 38%] Building CXX object CMakeFiles/drogon.dir/lib/src/Redirector.cc.o
[ 39%] Building CXX object CMakeFiles/drogon.dir/lib/src/SessionManager.cc.o
[ 39%] Building CXX object CMakeFiles/drogon.dir/lib/src/SlashRemover.cc.o
[ 40%] Building CXX object CMakeFiles/drogon.dir/lib/src/SlidingWindowRateLimiter.cc.o
[ 40%] Building CXX object CMakeFiles/drogon.dir/lib/src/StaticFileRouter.cc.o
[ 41%] Building CXX object CMakeFiles/drogon.dir/lib/src/TaskTimeoutFlag.cc.o
[ 41%] Building CXX object CMakeFiles/drogon.dir/lib/src/TokenBucketRateLimiter.cc.o
[ 42%] Building CXX object CMakeFiles/drogon.dir/lib/src/Utilities.cc.o
[ 42%] Building CXX object CMakeFiles/drogon.dir/lib/src/WebSocketClientImpl.cc.o
[ 43%] Building CXX object CMakeFiles/drogon.dir/lib/src/WebSocketConnectionImpl.cc.o
[ 43%] Building CXX object CMakeFiles/drogon.dir/lib/src/YamlConfigAdapter.cc.o
[ 44%] Building CXX object CMakeFiles/drogon.dir/lib/src/drogon_test.cc.o
[ 44%] Building CXX object CMakeFiles/drogon.dir/lib/src/SharedLibManager.cc.o
[ 44%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/sqlite3_impl/Sqlite3Connection.cc.o
[ 45%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/sqlite3_impl/Sqlite3ResultImpl.cc.o
[ 45%] Building CXX object CMakeFiles/drogon.dir/lib/src/RedisClientSkipped.cc.o
[ 46%] Building CXX object CMakeFiles/drogon.dir/lib/src/RedisResultSkipped.cc.o
[ 46%] Building CXX object CMakeFiles/drogon.dir/lib/src/RedisClientManagerSkipped.cc.o
[ 47%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/ArrayParser.cc.o
[ 47%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Criteria.cc.o
[ 48%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClient.cc.o
[ 48%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClientImpl.cc.o
[ 49%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClientLockFree.cc.o
[ 49%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbConnection.cc.o
[ 50%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbListener.cc.o
[ 50%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Exception.cc.o
[ 51%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Field.cc.o
[ 51%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Result.cc.o
[ 52%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Row.cc.o
[ 52%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/SqlBinder.cc.o
[ 53%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/TransactionImpl.cc.o
[ 53%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/RestfulController.cc.o
[ 54%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClientManager.cc.o
[ 54%] Linking CXX static library libdrogon.a
[ 54%] Built target drogon
[ 55%] Building CXX object examples/CMakeFiles/client.dir/client_example/main.cc.o
[ 55%] Linking CXX executable client
ld: library 'yaml-cpp' not found
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/client] Error 1
make[1]: *** [examples/CMakeFiles/client.dir/all] Error 2
make: *** [all] Error 2 What I did wrong? |
I deleted ➜ drogon git:(master) ✗ rm -rf build
➜ drogon git:(master) ✗ cmake . -DBUILD_YAML_CONFIG=OFF
-- compiler: AppleClang
-- Trantor using SSL library: OpenSSL
-- c-ares found!
-- Found std::filesystem
-- use c++20
-- jsoncpp version:1.9.4
-- yaml-cpp not used
-- Found UUID: /usr/local/lib/libuuid.dylib
-- Brotli found
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
-- Could NOT find pg (missing: PG_LIBRARIES PG_INCLUDE_DIRS)
-- MySql was not found.
-- Ok! We find sqlite3!
-- Could NOT find Hiredis (missing: HIREDIS_LIBRARY HIREDIS_INCLUDE_DIR)
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/cmake.csp
-- view classname:cmake
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/config_json.csp
-- view classname:config_json
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/config_yaml.csp
-- view classname:config_yaml
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/demoMain.csp
-- view classname:demoMain
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/filter_cc.csp
-- view classname:filter_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/filter_h.csp
-- view classname:filter_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/gitignore.csp
-- view classname:gitignore
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/model_cc.csp
-- view classname:model_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/model_h.csp
-- view classname:model_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/model_json.csp
-- view classname:model_json
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/plugin_cc.csp
-- view classname:plugin_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/plugin_h.csp
-- view classname:plugin_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_base_cc.csp
-- view classname:restful_controller_base_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_base_h.csp
-- view classname:restful_controller_base_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_cc.csp
-- view classname:restful_controller_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_custom_cc.csp
-- view classname:restful_controller_custom_cc
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_custom_h.csp
-- view classname:restful_controller_custom_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/restful_controller_h.csp
-- view classname:restful_controller_h
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/test_cmake.csp
-- view classname:test_cmake
-- cspFile:/Users/vzool/Workspace/drogon/drogon_ctl/templates/test_main.csp
-- view classname:test_main
-- bin:bin
-- Configuring done (2.1s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/vzool/Workspace/drogon
➜ drogon git:(master) ✗ make clean
➜ drogon git:(master) ✗ make
[ 1%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/AsyncFileLogger.cc.o
[ 1%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/ConcurrentTaskQueue.cc.o
[ 2%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/Date.cc.o
[ 2%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/LogStream.cc.o
[ 3%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/Logger.cc.o
[ 3%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/MsgBuffer.cc.o
[ 4%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/SerialTaskQueue.cc.o
[ 4%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/TimingWheel.cc.o
[ 5%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/Utilities.cc.o
[ 5%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/EventLoop.cc.o
[ 6%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/EventLoopThread.cc.o
[ 6%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/EventLoopThreadPool.cc.o
[ 6%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/InetAddress.cc.o
[ 7%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/TcpClient.cc.o
[ 7%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/TcpServer.cc.o
[ 8%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/Channel.cc.o
[ 8%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Acceptor.cc.o
[ 9%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Connector.cc.o
[ 9%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Poller.cc.o
[ 10%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Socket.cc.o
[ 10%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/MemBufferNode.cc.o
[ 11%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/StreamBufferNode.cc.o
[ 11%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/AsyncStreamBufferNode.cc.o
[ 12%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/TcpConnectionImpl.cc.o
[ 12%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/Timer.cc.o
[ 13%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/TimerQueue.cc.o
[ 13%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/poller/EpollPoller.cc.o
[ 14%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/poller/KQueue.cc.o
[ 14%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/poller/PollPoller.cc.o
[ 15%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/FileBufferNodeUnix.cc.o
[ 15%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/tlsprovider/OpenSSLProvider.cc.o
[ 16%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/utils/crypto/openssl.cc.o
[ 16%] Building CXX object trantor/CMakeFiles/trantor.dir/trantor/net/inner/AresResolver.cc.o
[ 17%] Linking CXX static library libtrantor.a
[ 17%] Built target trantor
[ 18%] Building CXX object CMakeFiles/drogon.dir/lib/src/AOPAdvice.cc.o
[ 18%] Building CXX object CMakeFiles/drogon.dir/lib/src/AccessLogger.cc.o
[ 19%] Building CXX object CMakeFiles/drogon.dir/lib/src/CacheFile.cc.o
[ 19%] Building CXX object CMakeFiles/drogon.dir/lib/src/ConfigAdapterManager.cc.o
[ 20%] Building CXX object CMakeFiles/drogon.dir/lib/src/ConfigLoader.cc.o
[ 20%] Building CXX object CMakeFiles/drogon.dir/lib/src/Cookie.cc.o
[ 21%] Building CXX object CMakeFiles/drogon.dir/lib/src/DrClassMap.cc.o
[ 21%] Building CXX object CMakeFiles/drogon.dir/lib/src/DrTemplateBase.cc.o
[ 22%] Building CXX object CMakeFiles/drogon.dir/lib/src/MiddlewaresFunction.cc.o
[ 22%] Building CXX object CMakeFiles/drogon.dir/lib/src/FixedWindowRateLimiter.cc.o
[ 22%] Building CXX object CMakeFiles/drogon.dir/lib/src/GlobalFilters.cc.o
[ 23%] Building CXX object CMakeFiles/drogon.dir/lib/src/Histogram.cc.o
[ 23%] Building CXX object CMakeFiles/drogon.dir/lib/src/Hodor.cc.o
[ 24%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpAppFrameworkImpl.cc.o
[ 24%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpBinder.cc.o
[ 25%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpClientImpl.cc.o
[ 25%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpConnectionLimit.cc.o
[ 26%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpControllerBinder.cc.o
[ 26%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpControllersRouter.cc.o
[ 27%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpFileImpl.cc.o
[ 27%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpFileUploadRequest.cc.o
[ 28%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpRequestImpl.cc.o
[ 28%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpRequestParser.cc.o
[ 29%] Building CXX object CMakeFiles/drogon.dir/lib/src/RequestStream.cc.o
[ 29%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpResponseImpl.cc.o
[ 30%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpResponseParser.cc.o
[ 30%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpServer.cc.o
[ 31%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpUtils.cc.o
/Users/vzool/Workspace/drogon/lib/src/HttpUtils.cc:62:10: warning: 'CT_APPLICATION_X_JAVASCRIPT' is deprecated: use CT_TEXT_JAVASCRIPT [-Wdeprecated-declarations]
62 | {CT_APPLICATION_X_JAVASCRIPT,
| ^
/Users/vzool/Workspace/drogon/lib/inc/drogon/HttpTypes.h:106:35: note: 'CT_APPLICATION_X_JAVASCRIPT' has been explicitly marked deprecated here
106 | CT_APPLICATION_X_JAVASCRIPT [[deprecated("use CT_TEXT_JAVASCRIPT")]],
| ^
/Users/vzool/Workspace/drogon/lib/src/HttpUtils.cc:733:23: warning: 'CT_APPLICATION_X_JAVASCRIPT' is deprecated: use CT_TEXT_JAVASCRIPT [-Wdeprecated-declarations]
733 | extensionMap_[CT_APPLICATION_X_JAVASCRIPT] =
| ^
/Users/vzool/Workspace/drogon/lib/inc/drogon/HttpTypes.h:106:35: note: 'CT_APPLICATION_X_JAVASCRIPT' has been explicitly marked deprecated here
106 | CT_APPLICATION_X_JAVASCRIPT [[deprecated("use CT_TEXT_JAVASCRIPT")]],
| ^
2 warnings generated.
[ 31%] Building CXX object CMakeFiles/drogon.dir/lib/src/HttpViewData.cc.o
[ 32%] Building CXX object CMakeFiles/drogon.dir/lib/src/IntranetIpFilter.cc.o
[ 32%] Building CXX object CMakeFiles/drogon.dir/lib/src/JsonConfigAdapter.cc.o
[ 33%] Building CXX object CMakeFiles/drogon.dir/lib/src/ListenerManager.cc.o
[ 33%] Building CXX object CMakeFiles/drogon.dir/lib/src/LocalHostFilter.cc.o
[ 34%] Building CXX object CMakeFiles/drogon.dir/lib/src/MultiPart.cc.o
[ 34%] Building CXX object CMakeFiles/drogon.dir/lib/src/MultipartStreamParser.cc.o
[ 35%] Building CXX object CMakeFiles/drogon.dir/lib/src/NotFound.cc.o
[ 35%] Building CXX object CMakeFiles/drogon.dir/lib/src/PluginsManager.cc.o
[ 35%] Building CXX object CMakeFiles/drogon.dir/lib/src/PromExporter.cc.o
[ 36%] Building CXX object CMakeFiles/drogon.dir/lib/src/RangeParser.cc.o
[ 36%] Building CXX object CMakeFiles/drogon.dir/lib/src/RateLimiter.cc.o
[ 37%] Building CXX object CMakeFiles/drogon.dir/lib/src/RealIpResolver.cc.o
[ 37%] Building CXX object CMakeFiles/drogon.dir/lib/src/SecureSSLRedirector.cc.o
[ 38%] Building CXX object CMakeFiles/drogon.dir/lib/src/Redirector.cc.o
[ 38%] Building CXX object CMakeFiles/drogon.dir/lib/src/SessionManager.cc.o
[ 39%] Building CXX object CMakeFiles/drogon.dir/lib/src/SlashRemover.cc.o
[ 39%] Building CXX object CMakeFiles/drogon.dir/lib/src/SlidingWindowRateLimiter.cc.o
[ 40%] Building CXX object CMakeFiles/drogon.dir/lib/src/StaticFileRouter.cc.o
[ 40%] Building CXX object CMakeFiles/drogon.dir/lib/src/TaskTimeoutFlag.cc.o
[ 41%] Building CXX object CMakeFiles/drogon.dir/lib/src/TokenBucketRateLimiter.cc.o
[ 41%] Building CXX object CMakeFiles/drogon.dir/lib/src/Utilities.cc.o
[ 42%] Building CXX object CMakeFiles/drogon.dir/lib/src/WebSocketClientImpl.cc.o
[ 42%] Building CXX object CMakeFiles/drogon.dir/lib/src/WebSocketConnectionImpl.cc.o
[ 43%] Building CXX object CMakeFiles/drogon.dir/lib/src/YamlConfigAdapter.cc.o
[ 43%] Building CXX object CMakeFiles/drogon.dir/lib/src/drogon_test.cc.o
[ 44%] Building CXX object CMakeFiles/drogon.dir/lib/src/SharedLibManager.cc.o
[ 44%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/sqlite3_impl/Sqlite3Connection.cc.o
[ 45%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/sqlite3_impl/Sqlite3ResultImpl.cc.o
[ 45%] Building CXX object CMakeFiles/drogon.dir/lib/src/RedisClientSkipped.cc.o
[ 46%] Building CXX object CMakeFiles/drogon.dir/lib/src/RedisResultSkipped.cc.o
[ 46%] Building CXX object CMakeFiles/drogon.dir/lib/src/RedisClientManagerSkipped.cc.o
[ 47%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/ArrayParser.cc.o
[ 47%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Criteria.cc.o
[ 47%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClient.cc.o
[ 48%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClientImpl.cc.o
[ 48%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClientLockFree.cc.o
[ 49%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbConnection.cc.o
[ 49%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbListener.cc.o
[ 50%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Exception.cc.o
[ 50%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Field.cc.o
[ 51%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Result.cc.o
[ 51%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/Row.cc.o
[ 52%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/SqlBinder.cc.o
[ 52%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/TransactionImpl.cc.o
[ 53%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/RestfulController.cc.o
[ 53%] Building CXX object CMakeFiles/drogon.dir/orm_lib/src/DbClientManager.cc.o
[ 54%] Linking CXX static library libdrogon.a
[ 54%] Built target drogon
[ 55%] Building CXX object examples/CMakeFiles/client.dir/client_example/main.cc.o
[ 55%] Linking CXX executable client
Undefined symbols for architecture x86_64:
"_SSL_get_peer_certificate", referenced from:
OpenSSLProvider::processHandshake() in libtrantor.a[32](OpenSSLProvider.cc.o)
ld: symbol(s) not found for architecture x86_64
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/client] Error 1
make[1]: *** [examples/CMakeFiles/client.dir/all] Error 2
make: *** [all] Error 2 |
Thanks @nqf The main issue for |
I haven't encountered this error before. I can compile it using openssl3.0 on Ubuntu |
Thanks @nqf again, now I can build it successfully. ➜ git clone [email protected]:openssl/openssl.git
➜ cd openssl
➜ git checkout openssl-3.4.0 # select the latest version tag
➜ ./Configure
➜ make
➜ sudo make install |
But, when I tried to create a new project according to the docs it fails to complete. ➜ Workspace drogon_ctl create project drogon_static_site
dyld[18433]: Library not loaded: @rpath/libjsoncpp.24.dylib
Referenced from: <A408D630-177C-33E2-9B2D-6238B9FFA4A7> /usr/local/bin/drogon_ctl
Reason: no LC_RPATH's found
[1] 18433 abort drogon_ctl create project drogon_static_site |
Library not loaded: @rpath/libjsoncpp.24.dylib |
@fantasy-peak How to load @rpath/libjsoncpp.24.dylib? |
@nqf Strange it can't be loaded even after I set it manually by many ways, I think it should be loaded automatically, because it is "User-Installed Libraries" location on macOS. ➜ Workspace drogon_ctl create project drogon_static_site
dyld[78229]: Library not loaded: @rpath/libjsoncpp.24.dylib
Referenced from: <A408D630-177C-33E2-9B2D-6238B9FFA4A7> /usr/local/bin/drogon_ctl
Reason: no LC_RPATH\'s found
[1] 78229 abort drogon_ctl create project drogon_static_site
➜ Workspace LC_RPATH=/usr/local/lib
➜ Workspace echo $LC_RPATH
/usr/local/lib
➜ Workspace ll /usr/local/lib/libjsoncpp.24.dylib
lrwxr-xr-x 1 vzool staff 22B Jul 29 2021 /usr/local/lib/libjsoncpp.24.dylib -> libjsoncpp.1.9.4.dylib
➜ Workspace drogon_ctl create project drogon_static_site
dyld[78848]: Library not loaded: @rpath/libjsoncpp.24.dylib
Referenced from: <A408D630-177C-33E2-9B2D-6238B9FFA4A7> /usr/local/bin/drogon_ctl
Reason: no LC_RPATH\'s found
[1] 78848 abort drogon_ctl create project drogon_static_site
➜ Workspace LC_RPATH=/usr/local/lib/ drogon_ctl create project drogon_static_site
dyld[79090]: Library not loaded: @rpath/libjsoncpp.24.dylib
Referenced from: <A408D630-177C-33E2-9B2D-6238B9FFA4A7> /usr/local/bin/drogon_ctl
Reason: no LC_RPATH\'s found
[1] 79090 abort LC_RPATH=/usr/local/lib/ drogon_ctl create project drogon_static_site |
I am not very familiar with macOS because I am using Linux,But your error message is very strange, |
I think this is because the main OS was used to develop the framework is Linux, right? |
https://github.com/drogonframework/drogon/actions/runs/11538296012/job/32116613793 no, It can be compiled on macOS 12 , Please check the CI file, I think it may be an issue with your environment |
I can't build the source code.
Describe the bug
When I follow the steps in the docs, it failed to build.
I did install all dependancies.
In fact, I installed
yaml-cpp
library by the following commandbrew install yaml-cpp
Even
cmake
said it foundyaml-cpp
Desktop (please complete the following information):
Any suggestions?
The text was updated successfully, but these errors were encountered: