xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.82k stars 774 forks source link

使用vcpkg引入libwebsockets导致链接错误:未找到符号 #5551

Open lizh1999 opened 2 weeks ago

lizh1999 commented 2 weeks ago

Xmake 版本

2.9.4

操作系统版本和架构

Windows11

描述问题

在使用xmake的vcpkg包管理工具引入第三方包libwebsockets时,遇到了链接错误。

在Windows平台上,vcpkg的libwebsockets包依赖于libuv、openssl、zlib以及其他Windows库,这导致了大量的找不到符号的错误。

期待的结果

希望在Windows平台上,xmake可以自动处理这些依赖,确保项目能够顺利编译和链接。

工程配置

add_requires("vcpkg::libwebsockets")

set_languages("cxx23")

target("main", function () 
  set_kind("binary")
  add_files("main.cc")
  add_packages("vcpkg::libwebsockets")
end)

附加信息和错误日志

error: websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_free,函数 lws_ssl_SSL_CTX_destroy 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_free
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_want,函数 __lws_tls_shutdown 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_want
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_want
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_current_cipher,函数 lws_openssl_describe_cipher 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CIPHER_get_bits,函数 lws_openssl_describe_cipher 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_fd,函数 lws_ssl_close 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_pending,函数 lws_ssl_capable_read 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_pending
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_default_passwd_cb,函数 lws_ssl_bind_passphrase 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_default_passwd_cb_userdata,函数 lws_ssl_bind_passphrase 中引用了该符号     
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_free,函数 lws_ssl_close 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_free
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_read,函数 lws_ssl_capable_read 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_write,函数 lws_ssl_capable_write 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_error,函数 __lws_tls_shutdown 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_shutdown,函数 __lws_tls_shutdown 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_shutdown
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_SSL_CTX,函数 lws_ssl_info_callback 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_get_SSL_CTX
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_info_callback,函数 lws_ssl_close 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_set_info_callback
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_set_info_callback
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_get_ex_data,函数 lws_ssl_info_callback 中引用了该符号
websockets.lib(openssl-ssl.c.obj) : error LNK2019: 无法解析的外部符号 ERR_clear_error,函数 __lws_tls_shutdown 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 ERR_clear_error
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 ERR_clear_error
websockets.lib(openssl-tls.c.obj) : error LNK2019: 无法解析的外部符号 CRYPTO_get_ex_new_index,函数 lws_context_init_ssl_library 中引用了该符号
websockets.lib(openssl-tls.c.obj) : error LNK2019: 无法解析的外部符号 OPENSSL_init_ssl,函数 lws_context_init_ssl_library 中引用了该符号
websockets.lib(openssl-tls.c.obj) : error LNK2019: 无法解析的外部符号 ERR_get_error,函数 lws_tls_err_describe_clear 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 ERR_get_error
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 ERR_get_error
websockets.lib(openssl-tls.c.obj) : error LNK2019: 无法解析的外部符号 ERR_error_string_n,函数 lws_tls_err_describe_clear 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 ERR_error_string_n
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_loop_init,函数 elops_init_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_loop_close,函数 elops_destroy_context2_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_run,函数 elops_destroy_context1_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_stop,函数 elops_destroy_context2_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_is_active,函数 elops_check_client_connect_ok_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_close,函数 elops_wsi_logical_close_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_poll_init,函数 elops_accept_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_poll_init_socket,函数 elops_accept_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_poll_start,函数 elops_io_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_poll_stop,函数 elops_wsi_logical_close_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_idle_init,函数 elops_init_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_idle_start,函数 elops_init_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_idle_stop,函数 elops_destroy_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_timer_init,函数 elops_init_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_timer_start,函数 lws_uv_idle 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_timer_stop,函数 elops_destroy_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_signal_init,函数 elops_init_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_signal_start,函数 elops_init_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_signal_stop,函数 elops_destroy_pt_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_thread_self,函数 elops_accept_uv 中引用了该符号
websockets.lib(libuv.c.obj) : error LNK2019: 无法解析的外部符号 uv_thread_equal,函数 elops_foreign_thread_uv 中引用了该符号
websockets.lib(tls.c.obj) : error LNK2019: 无法解析的外部符号 SSL_select_next_proto,函数 alpn_cb 中引用了该符号
websockets.lib(tls.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_alpn_select_cb,函数 lws_context_init_alpn 中引用了该符号
websockets.lib(tls.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get0_alpn_selected,函数 lws_tls_server_conn_alpn 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_get0_alpn_selected
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_sess_set_new_cb,函数 lws_tls_session_cache 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_timeout,函数 lws_tls_session_cache 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_SESSION_set_time,函数 lws_tls_reuse_session 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_SESSION_set_time
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_SESSION_get_timeout,函数 lws_tls_session_new_cb 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_SESSION_free,函数 __lws_tls_session_destroy 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 i2d_SSL_SESSION,函数 lws_tls_session_dump_save 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_session,函数 lws_tls_reuse_session 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 d2i_SSL_SESSION,函数 lws_tls_session_dump_load 中引用了该符号
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_ctrl,函数 lws_tls_session_cache 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_ctrl
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_ctrl
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_ex_data,函数 lws_tls_session_new_cb 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_get_ex_data
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_get_ex_data
websockets.lib(openssl-session.c.obj) : error LNK2019: 无法解析的外部符号 SSL_session_reused,函数 lws_tls_session_is_reused 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_session_reused
websockets.lib(windows-sockets.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_add_cert,函数 lws_plat_vhost_tls_client_ctx_init 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 X509_STORE_add_cert
websockets.lib(windows-sockets.c.obj) : error LNK2019: 无法解析的外部符号 X509_free,函数 lws_plat_vhost_tls_client_ctx_init 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 X509_free
websockets.lib(openssl-x509.c.obj) : error LNK2001: 无法解析的外部符号 X509_free
websockets.lib(windows-sockets.c.obj) : error LNK2019: 无法解析的外部符号 d2i_X509,函数 lws_plat_vhost_tls_client_ctx_init 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 d2i_X509
websockets.lib(windows-sockets.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_get_cert_store,函数 lws_plat_vhost_tls_client_ctx_init 中引用了该符号      
websockets.lib(openssl-client.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_get_cert_store
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 BIO_ctrl,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 BIO_ctrl
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 BIO_new_socket,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 EVP_MD_CTX_new,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 EVP_MD_CTX_free,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 EVP_DigestInit_ex,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 EVP_DigestUpdate,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 EVP_DigestFinal_ex,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 EVP_sha256,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_new,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_free,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_CTX_get_ex_data,函数 OpenSSL_client_verify_callback 中引用了该符号       
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 X509_STORE_CTX_get_ex_data
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_CTX_get_error,函数 OpenSSL_client_verify_callback 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_CTX_set_error,函数 OpenSSL_client_verify_callback 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_CTX_get_error_depth,函数 OpenSSL_client_verify_callback 中引用了该符号   
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_VERIFY_PARAM_set1_host,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_VERIFY_PARAM_set_hostflags,函数 lws_ssl_client_bio_create 中引用了该符号       
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_VERIFY_PARAM_set1_ip_asc,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 X509_verify_cert_error_string,函数 OpenSSL_client_verify_callback 中引用了该符号    
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_clear_options,函数 lws_tls_client_create_vhost_context 中引用了该符号       
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_clear_options
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_options,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_set_options
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_alpn_protos,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_cipher_list,函数 lws_tls_client_create_vhost_context 中引用了该符号     
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_set_cipher_list
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_new,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_new
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_cert_store,函数 lws_tls_client_create_vhost_context 中引用了该符号      
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_bio,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_verify,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_use_PrivateKey_ASN1,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_use_certificate_ASN1,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_use_PrivateKey_file,函数 lws_tls_client_create_vhost_context 中引用了该符号 
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_use_PrivateKey_file
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_use_certificate_chain_file,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_use_certificate_chain_file
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_use_PrivateKey_ASN1,函数 lws_tls_client_create_vhost_context 中引用了该符号 
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_use_PrivateKey_ASN1
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_use_certificate_ASN1,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_use_certificate_ASN1
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_check_private_key,函数 lws_tls_client_create_vhost_context 中引用了该符号   
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_check_private_key
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_check_private_key,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_new,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_new
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get0_param,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_connect,函数 lws_tls_client_connect 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_ctrl,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_ctrl
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 TLS_client_method,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_default_verify_paths,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_load_verify_locations,函数 lws_tls_client_create_vhost_context 中引用了该符 号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_load_verify_locations
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_session,函数 lws_tls_client_connect 中引用了该符号
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_verify_result,函数 lws_tls_client_confirm_peer_cert 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2001: 无法解析的外部符号 SSL_get_verify_result
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_ex_data,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_set_ex_data
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_ex_data,函数 lws_tls_client_create_vhost_context 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_CTX_set_ex_data
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_ex_data_X509_STORE_CTX_idx,函数 OpenSSL_client_verify_callback 中引用了该符 号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 SSL_get_ex_data_X509_STORE_CTX_idx
websockets.lib(openssl-client.c.obj) : error LNK2019: 无法解析的外部符号 ERR_error_string,函数 lws_ssl_client_bio_create 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2001: 无法解析的外部符号 ERR_error_string
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 OPENSSL_sk_value,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2001: 无法解析的外部符号 OPENSSL_sk_value
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 OBJ_sn2nid,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 EVP_PKEY_type,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 EVP_PKEY_get_id,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 EVP_PKEY_get1_EC_KEY,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 EC_KEY_new_by_curve_name,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 EC_KEY_free,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 X509_STORE_CTX_get_current_cert,函数 OpenSSL_verify_callback 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 X509_get_pubkey,函数 lws_tls_server_certs_load 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_servername,函数 lws_ssl_server_name_cb 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_fd,函数 lws_tls_server_new_nonblocking 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_rbio,函数 lws_tls_server_new_nonblocking 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get_wbio,函数 lws_tls_server_new_nonblocking 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_verify,函数 lws_tls_server_client_cert_verify_config 中引用了该符号     
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_set_session_id_context,函数 lws_tls_server_client_cert_verify_config 中引用 了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_accept,函数 lws_tls_server_accept 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_callback_ctrl,函数 lws_tls_server_vhost_backend_init 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 TLS_server_method,函数 lws_tls_server_vhost_backend_init 中引用了该符号
websockets.lib(openssl-server.c.obj) : error LNK2019: 无法解析的外部符号 SSL_set_SSL_CTX,函数 lws_ssl_server_name_cb 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 OPENSSL_sk_num,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 CRYPTO_malloc,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 CRYPTO_free,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 BIO_new,函数 lws_x509_parse_from_pem 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 BIO_free,函数 lws_x509_parse_from_pem 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 BIO_write,函数 lws_x509_parse_from_pem 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 BIO_s_mem,函数 lws_x509_parse_from_pem 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 ASN1_get_object,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 i2d_X509_PUBKEY,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 i2d_X509,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_NAME_oneline,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_get_issuer_name,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_get_subject_name,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_getm_notBefore,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_getm_notAfter,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_get_X509_PUBKEY,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_get_ext_by_NID,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_get_ext,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509_EXTENSION_get_data,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 PEM_read_bio_X509,函数 lws_x509_parse_from_pem 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 SSL_get1_peer_certificate,函数 lws_tls_peer_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 SSL_CTX_get0_certificate,函数 lws_tls_vhost_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 AUTHORITY_KEYID_free,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 i2v_GENERAL_NAMES,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509V3_EXT_get,函数 lws_tls_openssl_cert_info 中引用了该符号
websockets.lib(openssl-x509.c.obj) : error LNK2019: 无法解析的外部符号 X509V3_EXT_d2i,函数 lws_tls_openssl_cert_info 中引用了该符号
,函数 lcs_process_deflate 中引用了该符号
websockets.lib(deflate.c.obj) : error LNK2019: 无法解析的外部符号 inflateEnd,函数 lcs_destroy_deflate 中引用了该符号
websockets.lib(deflate.c.obj) : error LNK2019: 无法解析的外部符号 deflateInit2_,函数 lcs_init_compression_deflate 中引用了该符号
websockets.lib(deflate.c.obj) : error LNK2019: 无法解析的外部符号 inflateInit2_,函数 lcs_init_compression_deflate 中引用了该符号
build\windows\x64\release\main.exe : fatal error LNK1120: 160 个无法解析的外部命令
Issues-translate-bot commented 2 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Title: Introducing libwebsockets using vcpkg results in link error: symbol not found

Xmake version

2.9.4

Operating system version and architecture

Windows 11

Describe the problem

When using xmake's vcpkg package management tool to introduce the third-party package libwebsockets, a link error was encountered.

On the Windows platform, vcpkg's libwebsockets package depends on libuv, openssl, zlib and other Windows libraries, which leads to a large number of symbol not found errors.

Expected results

It is hoped that on the Windows platform, xmake can automatically handle these dependencies to ensure that the project can be compiled and linked smoothly.

Project configuration

add_requires("vcpkg::libwebsockets")

set_languages("cxx23")

target("main", function ()
  set_kind("binary")
  add_files("main.cc")
  add_packages("vcpkg::libwebsockets")
end)

Additional information and error logs

error: websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_free, referenced in function lws_ssl_SSL_CTX_destroy
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_free
websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_want, referenced in function __lws_tls_shutdown
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_want
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_want
websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_get_current_cipher, referenced in function lws_openssl_describe_cipher
websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_CIPHER_get_bits, referenced in function lws_openssl_describe_cipher
websockets.lib(openssl-ssl.c.obj) : error LNK2019: unresolved external symbol SSL_get_fd, referenced in function lws_ssl_close
websockets.lib(openssl-ssl.c.obj): error LNK2019: Unresolved external symbol SSL_pending, which is referenced in function lws_ssl_capable_read
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_pending
websockets.lib(openssl-ssl.c.obj): error LNK2019: unresolved external symbol SSL_CTX_set_default_passwd_cb, referenced in function lws_ssl_bind_passphrase
websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_set_default_passwd_cb_userdata, referenced in function lws_ssl_bind_passphrase
websockets.lib(openssl-ssl.c.obj) : error LNK2019: unresolved external symbol SSL_free, referenced in function lws_ssl_close
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_free
websockets.lib(openssl-ssl.c.obj) : error LNK2019: unresolved external symbol SSL_read, referenced in function lws_ssl_capable_read
websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_write, referenced in function lws_ssl_capable_write
websockets.lib(openssl-ssl.c.obj): error LNK2019: unresolved external symbol SSL_get_error, referenced in function __lws_tls_shutdown
websockets.lib(openssl-ssl.c.obj) : error LNK2019: unresolved external symbol SSL_shutdown, referenced in function __lws_tls_shutdown
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_shutdown
websockets.lib(openssl-ssl.c.obj) : error LNK2019: Unresolved external symbol SSL_get_SSL_CTX, referenced in function lws_ssl_info_callback
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_get_SSL_CTX
websockets.lib(openssl-ssl.c.obj): error LNK2019: unresolved external symbol SSL_set_info_callback, which is referenced in function lws_ssl_close
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_set_info_callback
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_set_info_callback
websockets.lib(openssl-ssl.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_get_ex_data, referenced in function lws_ssl_info_callback
websockets.lib(openssl-ssl.c.obj): error LNK2019: Unresolved external symbol ERR_clear_error, the symbol is referenced in function __lws_tls_shutdown
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol ERR_clear_error
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol ERR_clear_error
websockets.lib(openssl-tls.c.obj): error LNK2019: Unresolved external symbol CRYPTO_get_ex_new_index, referenced in function lws_context_init_ssl_library
websockets.lib(openssl-tls.c.obj) : error LNK2019: unresolved external symbol OPENSSL_init_ssl, referenced in function lws_context_init_ssl_library
websockets.lib(openssl-tls.c.obj): error LNK2019: Unresolved external symbol ERR_get_error, which is referenced in function lws_tls_err_describe_clear
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol ERR_get_error
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol ERR_get_error
websockets.lib(openssl-tls.c.obj): error LNK2019: Unresolved external symbol ERR_error_string_n, which is referenced in function lws_tls_err_describe_clear
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol ERR_error_string_n
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_loop_init, which is referenced in function elops_init_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_loop_close, which is referenced in function elops_destroy_context2_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_run, which is referenced in function elops_destroy_context1_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_stop, referenced in function elops_destroy_context2_uv
websockets.lib(libuv.c.obj): error LNK2019: Unresolved external symbol uv_is_active, which is referenced in function elops_check_client_connect_ok_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_close, referenced in function elops_wsi_logical_close_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_poll_init, which is referenced in function elops_accept_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_poll_init_socket, which is referenced in function elops_accept_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_poll_start, which is referenced in function elops_io_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_poll_stop, referenced in function elops_wsi_logical_close_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_idle_init, which is referenced in function elops_init_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_idle_start, which is referenced in function elops_init_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_idle_stop, which is referenced in function elops_destroy_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_timer_init, referenced in function elops_init_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_timer_start, which is referenced in function lws_uv_idle
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_timer_stop, referenced in function elops_destroy_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_signal_init, which is referenced in function elops_init_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_signal_start, which is referenced in function elops_init_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_signal_stop, referenced in function elops_destroy_pt_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_thread_self, which is referenced in function elops_accept_uv
websockets.lib(libuv.c.obj) : error LNK2019: Unresolved external symbol uv_thread_equal, which is referenced in function elops_foreign_thread_uv
websockets.lib(tls.c.obj) : error LNK2019: Unresolved external symbol SSL_select_next_proto, which is referenced in function alpn_cb
websockets.lib(tls.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_set_alpn_select_cb, referenced in function lws_context_init_alpn
websockets.lib(tls.c.obj) : error LNK2019: Unresolved external symbol SSL_get0_alpn_selected, referenced in function lws_tls_server_conn_alpn
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_get0_alpn_selected
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_sess_set_new_cb, referenced in function lws_tls_session_cache
websockets.lib(openssl-session.c.obj) : error LNK2019: unresolved external symbol SSL_CTX_set_timeout, referenced in function lws_tls_session_cache
websockets.lib(openssl-session.c.obj): error LNK2019: Unresolved external symbol SSL_SESSION_set_time, referenced in function lws_tls_reuse_session
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_SESSION_set_time
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol SSL_SESSION_get_timeout, referenced in function lws_tls_session_new_cb
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol SSL_SESSION_free, referenced in function __lws_tls_session_destroy
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol i2d_SSL_SESSION, referenced in function lws_tls_session_dump_save
websockets.lib(openssl-session.c.obj): error LNK2019: Unresolved external symbol SSL_set_session, which is referenced in function lws_tls_reuse_session
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol d2i_SSL_SESSION, referenced in function lws_tls_session_dump_load
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_ctrl, referenced in function lws_tls_session_cache
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_ctrl
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_ctrl
websockets.lib(openssl-session.c.obj): error LNK2019: Unresolved external symbol SSL_get_ex_data, referenced in function lws_tls_session_new_cb
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_get_ex_data
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_get_ex_data
websockets.lib(openssl-session.c.obj) : error LNK2019: Unresolved external symbol SSL_session_reused, which is referenced in function lws_tls_session_is_reused
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_session_reused
websockets.lib(windows-sockets.c.obj): error LNK2019: Unresolved external symbol X509_STORE_add_cert, referenced in function lws_plat_vhost_tls_client_ctx_init
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol X509_STORE_add_cert
websockets.lib(windows-sockets.c.obj): error LNK2019: Unresolved external symbol X509_free, referenced in function lws_plat_vhost_tls_client_ctx_init
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol X509_free
websockets.lib(openssl-x509.c.obj) : error LNK2001: unresolved external symbol X509_free
websockets.lib(windows-sockets.c.obj) : error LNK2019: Unresolved external symbol d2i_X509, referenced in function lws_plat_vhost_tls_client_ctx_init
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol d2i_X509
websockets.lib(windows-sockets.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_get_cert_store, referenced in function lws_plat_vhost_tls_client_ctx_init
websockets.lib(openssl-client.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_get_cert_store
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol BIO_ctrl, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol BIO_ctrl
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol BIO_new_socket, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol EVP_MD_CTX_new, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol EVP_MD_CTX_free, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol EVP_DigestInit_ex, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol EVP_DigestUpdate, which is referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol EVP_DigestFinal_ex, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol EVP_sha256, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_STORE_new, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol X509_STORE_free, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_STORE_CTX_get_ex_data, which is referenced in function OpenSSL_client_verify_callback
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol X509_STORE_CTX_get_ex_data
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_STORE_CTX_get_error, which is referenced in the function OpenSSL_client_verify_callback
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_STORE_CTX_set_error, which is referenced in the function OpenSSL_client_verify_callback
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_STORE_CTX_get_error_depth, which is referenced in function OpenSSL_client_verify_callback
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_VERIFY_PARAM_set1_host, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_VERIFY_PARAM_set_hostflags, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_VERIFY_PARAM_set1_ip_asc, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol X509_verify_cert_error_string, which is referenced in the function OpenSSL_client_verify_callback
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_clear_options, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_clear_options
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_set_options, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_set_options
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_set_alpn_protos, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_set_cipher_list, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_set_cipher_list
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_new, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_new
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_set_cert_store, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_set_bio, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_set_verify, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_use_PrivateKey_ASN1, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_use_certificate_ASN1, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_use_PrivateKey_file, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_use_PrivateKey_file
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_use_certificate_chain_file, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_use_certificate_chain_file
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_use_PrivateKey_ASN1, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_use_PrivateKey_ASN1
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_use_certificate_ASN1, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_use_certificate_ASN1
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_check_private_key, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_check_private_key
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_check_private_key, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_new, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_new
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_get0_param, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_connect, which is referenced in function lws_tls_client_connect
websockets.lib(openssl-client.c.obj) : error LNK2019: Unresolved external symbol SSL_ctrl, referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_ctrl
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol TLS_client_method, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_set_default_verify_paths, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_load_verify_locations, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_load_verify_locations
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_get_session, which is referenced in function lws_tls_client_connect
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_get_verify_result, which is referenced in function lws_tls_client_confirm_peer_cert
websockets.lib(openssl-x509.c.obj) : error LNK2001: unresolved external symbol SSL_get_verify_result
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_set_ex_data, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_set_ex_data
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_set_ex_data, referenced in function lws_tls_client_create_vhost_context
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_CTX_set_ex_data
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol SSL_get_ex_data_X509_STORE_CTX_idx, which is referenced in function OpenSSL_client_verify_callback
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol SSL_get_ex_data_X509_STORE_CTX_idx
websockets.lib(openssl-client.c.obj): error LNK2019: Unresolved external symbol ERR_error_string, which is referenced in function lws_ssl_client_bio_create
websockets.lib(openssl-server.c.obj) : error LNK2001: unresolved external symbol ERR_error_string
websockets.lib(openssl-server.c.obj) : error LNK2019: unresolved external symbol OPENSSL_sk_value, which is referenced in function lws_tls_server_certs_load
websockets.lib(openssl-x509.c.obj) : error LNK2001: unresolved external symbol OPENSSL_sk_value
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol OBJ_sn2nid, referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol EVP_PKEY_type, referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj): error LNK2019: Unresolved external symbol EVP_PKEY_get_id, which is referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj): error LNK2019: Unresolved external symbol EVP_PKEY_get1_EC_KEY, referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol EC_KEY_new_by_curve_name, referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj): error LNK2019: Unresolved external symbol EC_KEY_free, referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj): error LNK2019: Unresolved external symbol X509_STORE_CTX_get_current_cert, which is referenced in function OpenSSL_verify_callback
websockets.lib(openssl-server.c.obj): error LNK2019: Unresolved external symbol X509_get_pubkey, which is referenced in function lws_tls_server_certs_load
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol SSL_get_servername, referenced in function lws_ssl_server_name_cb
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol SSL_set_fd, referenced in function lws_tls_server_new_nonblocking
websockets.lib(openssl-server.c.obj): error LNK2019: unresolved external symbol SSL_get_rbio, referenced in function lws_tls_server_new_nonblocking
websockets.lib(openssl-server.c.obj): error LNK2019: unresolved external symbol SSL_get_wbio, referenced in function lws_tls_server_new_nonblocking
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_set_verify, which is referenced in function lws_tls_server_client_cert_verify_config
websockets.lib(openssl-server.c.obj): error LNK2019: Unresolved external symbol SSL_CTX_set_session_id_context, which is referenced in function lws_tls_server_client_cert_verify_config
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol SSL_accept, which is referenced in function lws_tls_server_accept
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_callback_ctrl, referenced in function lws_tls_server_vhost_backend_init
websockets.lib(openssl-server.c.obj) : error LNK2019: unresolved external symbol TLS_server_method, referenced in function lws_tls_server_vhost_backend_init
websockets.lib(openssl-server.c.obj) : error LNK2019: Unresolved external symbol SSL_set_SSL_CTX, referenced in function lws_ssl_server_name_cb
websockets.lib(openssl-x509.c.obj) : error LNK2019: unresolved external symbol OPENSSL_sk_num, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: unresolved external symbol CRYPTO_malloc, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol CRYPTO_free, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj): error LNK2019: Unresolved external symbol BIO_new, which is referenced in function lws_x509_parse_from_pem
websockets.lib(openssl-x509.c.obj): error LNK2019: Unresolved external symbol BIO_free, which is referenced in function lws_x509_parse_from_pem
websockets.lib(openssl-x509.c.obj): error LNK2019: unresolved external symbol BIO_write, referenced in function lws_x509_parse_from_pem
websockets.lib(openssl-x509.c.obj): error LNK2019: unresolved external symbol BIO_s_mem, referenced in function lws_x509_parse_from_pem
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol ASN1_get_object, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: unresolved external symbol i2d_X509_PUBKEY, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: unresolved external symbol i2d_X509, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_NAME_oneline, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_get_issuer_name, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_get_subject_name, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_getm_notBefore, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_getm_notAfter, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_get_X509_PUBKEY, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj): error LNK2019: Unresolved external symbol X509_get_ext_by_NID, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509_get_ext, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj): error LNK2019: Unresolved external symbol X509_EXTENSION_get_data, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol PEM_read_bio_X509, which is referenced in function lws_x509_parse_from_pem
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol SSL_get1_peer_certificate, which is referenced in function lws_tls_peer_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol SSL_CTX_get0_certificate, referenced in function lws_tls_vhost_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol AUTHORITY_KEYID_free, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol i2v_GENERAL_NAMES, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509V3_EXT_get, referenced in function lws_tls_openssl_cert_info
websockets.lib(openssl-x509.c.obj) : error LNK2019: Unresolved external symbol X509V3_EXT_d2i, referenced in function lws_tls_openssl_cert_info
, the symbol is referenced in the function lcs_process_deflate
websockets.lib(deflate.c.obj) : error LNK2019: unresolved external symbol inflateEnd, referenced in function lcs_destroy_deflate
websockets.lib(deflate.c.obj) : error LNK2019: unresolved external symbol deflateInit2_, which is referenced in function lcs_init_compression_deflate
websockets.lib(deflate.c.obj) : error LNK2019: unresolved external symbol inflateInit2_, referenced in function lcs_init_compression_deflate
build\windows\x64\release\main.exe: fatal error LNK1120: 160 unresolved external commands
waruqi commented 2 weeks ago

目前集成第三方包管理是不支持级联依赖的,只有用 xmake-repo的包才支持。所以你得自己外面配齐所有依赖包

Issues-translate-bot commented 2 weeks ago

Bot detected the issue body's language is not English, translate it automatically.


Currently, integrated third-party package management does not support cascading dependencies, only packages using xmake-repo do. So you have to configure all the dependency packages yourself