Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Visual Studio MonaServer 64 bits compiler error #69

Open
al-sabr opened this issue Jan 20, 2018 · 1 comment
Open

Visual Studio MonaServer 64 bits compiler error #69

al-sabr opened this issue Jan 20, 2018 · 1 comment

Comments

@al-sabr
Copy link

al-sabr commented Jan 20, 2018

I've copie the External folder from MonServer2 to MonaServer, after having compiled luajit 2 with Visual Studio command prompt and copying the lua51_64.lib into external folder. I get the following erros:

1>------ Build started: Project: UnitTests, Configuration: Release x64 ------
2>------ Build started: Project: MonaServer, Configuration: release x64 ------
1>MonaBase64.lib(PersistentData.obj) : error LNK2001: unresolved external symbol EVP_Digest
1>MonaBase64.lib(PersistentData.obj) : error LNK2001: unresolved external symbol EVP_md5
1>C:\Users\bobo\Documents\Visual Studio 2013\Projects\MonaServer\UnitTests\Release\UnitTests.exe : fatal error LNK1120: 2 unresolved externals
2>LUAInvoker.obj : error LNK2001: unresolved external symbol EVP_sha256
2>LUAInvoker.obj : error LNK2001: unresolved external symbol EVP_Digest
2>LUAInvoker.obj : error LNK2001: unresolved external symbol EVP_md5
2>MonaCore64.lib(RTMPSession.obj) : error LNK2001: unresolved external symbol RC4
2>MonaCore64.lib(RTMFP.obj) : error LNK2001: unresolved external symbol HMAC_CTX_cleanup
2>MonaCore64.lib(RTMFP.obj) : error LNK2001: unresolved external symbol HMAC_CTX_init
2>MonaCore64.lib(WS.obj) : error LNK2001: unresolved external symbol EVP_sha1
2>MonaCore64.lib(RTMFPSession.obj) : error LNK2001: unresolved external symbol EVP_CIPHER_CTX_new
2>MonaCore64.lib(RTMFPSession.obj) : error LNK2001: unresolved external symbol EVP_CIPHER_CTX_free
2>MonaCore64.lib(RTMFPSession.obj) : error LNK2001: unresolved external symbol EVP_CIPHER_CTX_cleanup
2>MonaCore64.lib(RTMFPSession.obj) : error LNK2001: unresolved external symbol EVP_CIPHER_CTX_init
2>MonaCore64.lib(RTMP.obj) : error LNK2001: unresolved external symbol RC4_set_key
2>MonaCore64.lib(RTMFPSender.obj) : error LNK2001: unresolved external symbol EVP_CipherInit_ex
2>MonaCore64.lib(RTMFPSender.obj) : error LNK2001: unresolved external symbol EVP_CipherUpdate
2>MonaCore64.lib(RTMFPSender.obj) : error LNK2001: unresolved external symbol EVP_aes_128_cbc
2>MonaBase64.lib(Crypto.obj) : error LNK2001: unresolved external symbol HMAC_Final
2>MonaBase64.lib(Crypto.obj) : error LNK2001: unresolved external symbol HMAC_Update
2>MonaBase64.lib(Crypto.obj) : error LNK2001: unresolved external symbol HMAC_Init_ex
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol DH_generate_key
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol BN_free
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol DH_free
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol BN_num_bits
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol DH_compute_key
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol BN_set_word
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol BN_new
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol BN_bn2bin
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol DH_new
2>MonaBase64.lib(DiffieHellman.obj) : error LNK2001: unresolved external symbol BN_bin2bn
2>C:\Users\bobo\Documents\Visual Studio 2013\Projects\MonaServer\MonaServer\release\MonaServer.exe : fatal error LNK1120: 28 unresolved externals
@al-sabr al-sabr changed the title Visual Studio compiler error Visual Studio MonaServer 64 bits compiler error Jan 21, 2018
@thomasjammet
Copy link
Contributor

Hi,

This is a link error due to openssl, recompile it with the same compiler (VS 2017 64bits) and it should link with MonaServer. Otherwise please ensure that you have the same version of openssl includes and libraries in External directory.
If you are not sure of what to do you can take the external files from MonaServer2 here : https://github.com/MonaSolutions/MonaServer2/tree/master/External

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

No branches or pull requests

2 participants