-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
使用vcpkg引入libwebsockets导致链接错误:未找到符号 #5551
Comments
Title: Introducing libwebsockets using vcpkg results in link error: symbol not found Xmake version2.9.4 Operating system version and architectureWindows 11 Describe the problemWhen 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 resultsIt 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 configurationadd_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 logserror: 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 |
目前集成第三方包管理是不支持级联依赖的,只有用 xmake-repo的包才支持。所以你得自己外面配齐所有依赖包 |
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 |
Xmake 版本
2.9.4
操作系统版本和架构
Windows11
描述问题
在使用xmake的vcpkg包管理工具引入第三方包libwebsockets时,遇到了链接错误。
在Windows平台上,vcpkg的libwebsockets包依赖于libuv、openssl、zlib以及其他Windows库,这导致了大量的找不到符号的错误。
期待的结果
希望在Windows平台上,xmake可以自动处理这些依赖,确保项目能够顺利编译和链接。
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: