leapcode / pysqlcipher

Python bindings for SQLCipher
https://leap.se
Other
130 stars 42 forks source link

Link Error on Windows7 #33

Open hjw21century opened 6 years ago

hjw21century commented 6 years ago

sqlite3.obj : error LNK2019: unresolved external symbol HMAC_CTX_cleanup referenced in function sqlcipher_openssl_hmac sqlite3.obj : error LNK2019: unresolved external symbol HMAC_Final referenced in function sqlcipher_openssl_hmac sqlite3.obj : error LNK2019: unresolved external symbol HMAC_Update referenced in function sqlcipher_openssl_hmac sqlite3.obj : error LNK2019: unresolved external symbol HMAC_Init_ex referenced in function sqlcipher_openssl_hmac sqlite3.obj : error LNK2019: unresolved external symbol EVP_sha1 referenced in function sqlcipher_openssl_hmac sqlite3.obj : error LNK2019: unresolved external symbol HMAC_CTX_init referenced in function sqlcipher_openssl_hmac sqlite3.obj : error LNK2019: unresolved external symbol PKCS5_PBKDF2_HMAC_SHA1 referenced in function sqlcipheropenssl kdf sqlite3.obj : error LNK2019: unresolved external symbol EVP_CIPHER_CTX_cleanup referenced in function sqlcipheropenssl cipher sqlite3.obj : error LNK2019: unresolved external symbol EVP_CipherFinal referenced in function sqlcipher_openssl_cipher sqlite3.obj : error LNK2019: unresolved external symbol EVP_CipherUpdate referenced in function sqlcipher_openssl_cipher

sqlite3.obj : error LNK2019: unresolved external symbol EVP_CIPHER_CTX_set_padding referenced in function sqlcipher_open ssl_cipher sqlite3.obj : error LNK2019: unresolved external symbol EVP_CipherInit referenced in function sqlcipher_openssl_cipher sqlite3.obj : error LNK2019: unresolved external symbol EVP_get_cipherbyname referenced in function sqlcipher_openssl_se t_cipher sqlite3.obj : error LNK2019: unresolved external symbol OBJ_nid2sn referenced in function sqlcipher_openssl_get_cipher sqlite3.obj : error LNK2019: unresolved external symbol EVP_CIPHER_nid referenced in function sqlcipher_openssl_get_ciph er sqlite3.obj : error LNK2019: unresolved external symbol EVP_CIPHER_key_length referenced in function sqlcipher_openssl_g et_key_sz sqlite3.obj : error LNK2019: unresolved external symbol EVP_CIPHER_iv_length referenced in function sqlcipher_openssl_ge t_iv_sz sqlite3.obj : error LNK2019: unresolved external symbol EVP_CIPHER_block_size referenced in function sqlcipher_openssl_g et_block_sz sqlite3.obj : error LNK2019: unresolved external symbol EVP_MD_size referenced in function sqlcipher_openssl_get_hmac_sz

sqlite3.obj : error LNK2019: unresolved external symbol RAND_add referenced in function sqlcipher_openssl_add_random sqlite3.obj : error LNK2019: unresolved external symbol RAND_bytes referenced in function sqlcipher_openssl_random sqlite3.obj : error LNK2019: unresolved external symbol OPENSSL_add_all_algorithms_noconf referenced in function sqlciph er_openssl_activate sqlite3.obj : error LNK2019: unresolved external symbol EVP_cleanup referenced in function sqlcipher_openssl_deactivate build\lib.win-amd64-2.7\pysqlcipher_sqlite.pyd : fatal error LNK1120: 23 unresolved externals error: command 'C:\Users\hw\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\ link.exe' failed with exit status 1120

hjw21century commented 6 years ago

I have added as below: #pragma comment(lib,"libeay32.lib") #pragma comment(lib,"ssleay32.lib") But that does not work...

Xuepaopao commented 5 years ago

@hjw21century Have you solved the problem?