Forum Navigation
You need to log in to create posts and topics.

Compiling Ovito on Macosx

Hi,

I've been attempting to build the latest version of ovito to be able to use the python interface on my local mac rather than using ovitos. I already installed all dependencies but it seems like there is a complication in linking "libssh" to the package. Here is the command I run, but it seems like either the it cannot find the necessary library (or include header) or maybe the latest version of libssh which I provide is not compatible with what ovito requires. I appreciate if you could help me on this.

 

cmake -DCMAKE_BUILD_TYPE=Release \

      -DCMAKE_INSTALL_PREFIX=../install \

      -DCMAKE_PREFIX_PATH=`echo $HOME/Qt/5.*.*/clang_64/` \

      -DLIBAV_INCLUDE_DIR=$HOME/libav/include \

      -DLIBAV_LIBRARY_DIR=$HOME/libav/lib \

      -DLIBSSH_LIBRARY=$HOME/libssh-0.9.2/build/src/libssh.a \

      -DLIBSSH_INCLUDE_DIR=$HOME/libssh-0.9.2/include \

      ..

 

 

Error:

 

Undefined symbols for architecture x86_64:
"_BIO_ctrl", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
"_BIO_free", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_BIO_new", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
"_BIO_new_mem_buf", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_BIO_s_mem", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
"_BN_CTX_free", referenced from:
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
_ssh_packet_server_ecdh_init in libssh.a(ecdh_crypto.c.o)
"_BN_CTX_new", referenced from:
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
_ssh_packet_server_ecdh_init in libssh.a(ecdh_crypto.c.o)
"_BN_bin2bn", referenced from:
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
_ssh_dh_init in libssh.a(dh.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
_ssh_dh_compute_shared_secret in libssh.a(dh_crypto.c.o)
_ssh_make_string_bn in libssh.a(bignum.c.o)
"_BN_bn2bin", referenced from:
_ssh_make_bignum_string in libssh.a(bignum.c.o)
"_BN_bn2hex", referenced from:
_ssh_print_bignum in libssh.a(bignum.c.o)
"_BN_clear_free", referenced from:
_ssh_buffer_unpack_va in libssh.a(buffer.c.o)
_crypto_free in libssh.a(wrapper.c.o)
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
_ssh_dh_finalize in libssh.a(dh.c.o)
_ssh_server_dh_process_init in libssh.a(dh.c.o)
_ssh_fallback_group in libssh.a(dh.c.o)
_ssh_packet_client_dh_reply in libssh.a(dh.c.o)
...
"_BN_cmp", referenced from:
_pki_key_compare in libssh.a(pki_crypto.c.o)
_ssh_dh_is_known_group in libssh.a(dh.c.o)
"_BN_copy", referenced from:
_ssh_fallback_group in libssh.a(dh.c.o)
"_BN_dup", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_ssh_fallback_group in libssh.a(dh.c.o)
_ssh_dh_set_parameters in libssh.a(dh_crypto.c.o)
"_BN_free", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_generate_rsa in libssh.a(pki_crypto.c.o)
_ssh_dh_set_parameters in libssh.a(dh_crypto.c.o)
"_BN_is_bit_set", referenced from:
_ssh_make_bignum_string in libssh.a(bignum.c.o)
"_BN_new", referenced from:
_pki_key_generate_rsa in libssh.a(pki_crypto.c.o)
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
_ssh_dh_init in libssh.a(dh.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
_ssh_make_string_bn in libssh.a(bignum.c.o)
"_BN_num_bits", referenced from:
_ssh_dh_is_known_group in libssh.a(dh.c.o)
_ssh_dh_keypair_get_keys in libssh.a(dh_crypto.c.o)
_ssh_dh_compute_shared_secret in libssh.a(dh_crypto.c.o)
_ssh_make_bignum_string in libssh.a(bignum.c.o)
"_BN_set_word", referenced from:
_pki_key_generate_rsa in libssh.a(pki_crypto.c.o)
_ssh_dh_init in libssh.a(dh.c.o)
"_CRYPTO_free", referenced from:
_ssh_print_bignum in libssh.a(bignum.c.o)
"_DH_compute_key", referenced from:
_ssh_dh_compute_shared_secret in libssh.a(dh_crypto.c.o)
"_DH_free", referenced from:
_ssh_dh_set_parameters in libssh.a(dh_crypto.c.o)
_ssh_dh_init_common in libssh.a(dh_crypto.c.o)
_ssh_dh_cleanup in libssh.a(dh_crypto.c.o)
"_DH_generate_key", referenced from:
_ssh_dh_keypair_gen_keys in libssh.a(dh_crypto.c.o)
"_DH_get0_key", referenced from:
_ssh_dh_keypair_get_keys in libssh.a(dh_crypto.c.o)
_ssh_dh_compute_shared_secret in libssh.a(dh_crypto.c.o)
"_DH_get0_pqg", referenced from:
_ssh_dh_get_parameters in libssh.a(dh_crypto.c.o)
"_DH_new", referenced from:
_ssh_dh_set_parameters in libssh.a(dh_crypto.c.o)
"_DH_set0_key", referenced from:
_ssh_dh_keypair_set_keys in libssh.a(dh_crypto.c.o)
"_DH_set0_pqg", referenced from:
_ssh_dh_set_parameters in libssh.a(dh_crypto.c.o)
"_DH_size", referenced from:
_ssh_dh_compute_shared_secret in libssh.a(dh_crypto.c.o)
"_DSA_SIG_free", referenced from:
_pki_signature_to_blob in libssh.a(pki_crypto.c.o)
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_DSA_SIG_get0", referenced from:
_pki_signature_to_blob in libssh.a(pki_crypto.c.o)
"_DSA_SIG_new", referenced from:
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_DSA_SIG_set0", referenced from:
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_DSA_free", referenced from:
_ssh_key_clean in libssh.a(pki.c.o)
_ssh_userauth_privatekey_file in libssh.a(legacy.c.o)
_privatekey_free in libssh.a(legacy.c.o)
_publickey_free in libssh.a(legacy.c.o)
_pki_key_generate_dss in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_privkey_build_dss in libssh.a(pki_crypto.c.o)
...
"_DSA_generate_key", referenced from:
_pki_key_generate_dss in libssh.a(pki_crypto.c.o)
"_DSA_generate_parameters_ex", referenced from:
_pki_key_generate_dss in libssh.a(pki_crypto.c.o)
"_DSA_get0_key", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_compare in libssh.a(pki_crypto.c.o)
_pki_publickey_to_blob in libssh.a(pki_crypto.c.o)
"_DSA_get0_pqg", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_compare in libssh.a(pki_crypto.c.o)
_pki_publickey_to_blob in libssh.a(pki_crypto.c.o)
"_DSA_new", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_generate_dss in libssh.a(pki_crypto.c.o)
_pki_privkey_build_dss in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_dss in libssh.a(pki_crypto.c.o)
"_DSA_set0_key", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_privkey_build_dss in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_dss in libssh.a(pki_crypto.c.o)
"_DSA_set0_pqg", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_privkey_build_dss in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_dss in libssh.a(pki_crypto.c.o)
"_DSA_size", referenced from:
_pki_key_compare in libssh.a(pki_crypto.c.o)
"_ECDH_compute_key", referenced from:
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
"_ECDSA_SIG_free", referenced from:
_pki_signature_to_blob in libssh.a(pki_crypto.c.o)
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_ECDSA_SIG_get0", referenced from:
_pki_signature_to_blob in libssh.a(pki_crypto.c.o)
"_ECDSA_SIG_new", referenced from:
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_ECDSA_SIG_set0", referenced from:
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_EC_GROUP_cmp", referenced from:
_pki_key_compare in libssh.a(pki_crypto.c.o)
"_EC_GROUP_get_curve_name", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_EC_GROUP_get_degree", referenced from:
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
"_EC_KEY_dup", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
"_EC_KEY_free", referenced from:
_ssh_key_clean in libssh.a(pki.c.o)
_crypto_free in libssh.a(wrapper.c.o)
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_key_generate_ecdsa in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
...
"_EC_KEY_generate_key", referenced from:
_pki_key_generate_ecdsa in libssh.a(pki_crypto.c.o)
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ssh_packet_server_ecdh_init in libssh.a(ecdh_crypto.c.o)
"_EC_KEY_get0_group", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_key_compare in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_publickey_to_blob in libssh.a(pki_crypto.c.o)
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
...
"_EC_KEY_get0_private_key", referenced from:
_pki_key_compare in libssh.a(pki_crypto.c.o)
"_EC_KEY_get0_public_key", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_compare in libssh.a(pki_crypto.c.o)
_pki_publickey_to_blob in libssh.a(pki_crypto.c.o)
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ssh_packet_server_ecdh_init in libssh.a(ecdh_crypto.c.o)
"_EC_KEY_new_by_curve_name", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_generate_ecdsa in libssh.a(pki_crypto.c.o)
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ssh_packet_server_ecdh_init in libssh.a(ecdh_crypto.c.o)
"_EC_KEY_set_asn1_flag", referenced from:
_pki_key_generate_ecdsa in libssh.a(pki_crypto.c.o)
"_EC_KEY_set_private_key", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
"_EC_KEY_set_public_key", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_key_dup in libssh.a(pki_crypto.c.o)
"_EC_POINT_clear_free", referenced from:
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
"_EC_POINT_cmp", referenced from:
_pki_key_compare in libssh.a(pki_crypto.c.o)
"_EC_POINT_free", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_ecdsa in libssh.a(pki_crypto.c.o)
"_EC_POINT_new", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
"_EC_POINT_oct2point", referenced from:
_pki_privkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_ecdsa in libssh.a(pki_crypto.c.o)
_ecdh_build_k in libssh.a(ecdh_crypto.c.o)
"_EC_POINT_point2oct", referenced from:
_pki_publickey_to_blob in libssh.a(pki_crypto.c.o)
_ssh_client_ecdh_init in libssh.a(ecdh_crypto.c.o)
_ssh_packet_server_ecdh_init in libssh.a(ecdh_crypto.c.o)
"_ERR_error_string", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
...
"_ERR_get_error", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
...
"_EVP_CIPHER_CTX_ctrl", referenced from:
_evp_cipher_set_encrypt_key in libssh.a(libcrypto.c.o)
_evp_cipher_set_decrypt_key in libssh.a(libcrypto.c.o)
_evp_cipher_aead_encrypt in libssh.a(libcrypto.c.o)
_evp_cipher_aead_decrypt in libssh.a(libcrypto.c.o)
"_EVP_CIPHER_CTX_free", referenced from:
_evp_cipher_cleanup in libssh.a(libcrypto.c.o)
"_EVP_CIPHER_CTX_new", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_CIPHER_CTX_reset", referenced from:
_evp_cipher_set_encrypt_key in libssh.a(libcrypto.c.o)
_evp_cipher_set_decrypt_key in libssh.a(libcrypto.c.o)
_evp_cipher_cleanup in libssh.a(libcrypto.c.o)
"_EVP_CIPHER_CTX_set_padding", referenced from:
_evp_cipher_set_encrypt_key in libssh.a(libcrypto.c.o)
_evp_cipher_set_decrypt_key in libssh.a(libcrypto.c.o)
"_EVP_DecryptFinal", referenced from:
_evp_cipher_aead_decrypt in libssh.a(libcrypto.c.o)
"_EVP_DecryptInit_ex", referenced from:
_evp_cipher_set_decrypt_key in libssh.a(libcrypto.c.o)
"_EVP_DecryptUpdate", referenced from:
_evp_cipher_decrypt in libssh.a(libcrypto.c.o)
_evp_cipher_aead_decrypt in libssh.a(libcrypto.c.o)
"_EVP_DigestFinal", referenced from:
_sha1_final in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_evp in libssh.a(libcrypto.c.o)
_evp_final in libssh.a(libcrypto.c.o)
_sha256_final in libssh.a(libcrypto.c.o)
_sha256 in libssh.a(libcrypto.c.o)
_sha384_final in libssh.a(libcrypto.c.o)
...
"_EVP_DigestInit", referenced from:
_evp in libssh.a(libcrypto.c.o)
_evp_init in libssh.a(libcrypto.c.o)
"_EVP_DigestInit_ex", referenced from:
_sha1_init in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_sha256_init in libssh.a(libcrypto.c.o)
_sha256 in libssh.a(libcrypto.c.o)
_sha384_init in libssh.a(libcrypto.c.o)
_sha384 in libssh.a(libcrypto.c.o)
_sha512_init in libssh.a(libcrypto.c.o)
...
"_EVP_DigestSign", referenced from:
_pki_sign_data in libssh.a(pki_crypto.c.o)
"_EVP_DigestSignInit", referenced from:
_pki_sign_data in libssh.a(pki_crypto.c.o)
"_EVP_DigestUpdate", referenced from:
_sha1_update in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_evp in libssh.a(libcrypto.c.o)
_evp_update in libssh.a(libcrypto.c.o)
_sha256_update in libssh.a(libcrypto.c.o)
_sha256 in libssh.a(libcrypto.c.o)
_sha384_update in libssh.a(libcrypto.c.o)
...
"_EVP_DigestVerify", referenced from:
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
"_EVP_DigestVerifyInit", referenced from:
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
"_EVP_EncryptFinal", referenced from:
_evp_cipher_aead_encrypt in libssh.a(libcrypto.c.o)
"_EVP_EncryptInit_ex", referenced from:
_evp_cipher_set_encrypt_key in libssh.a(libcrypto.c.o)
"_EVP_EncryptUpdate", referenced from:
_evp_cipher_encrypt in libssh.a(libcrypto.c.o)
_evp_cipher_aead_encrypt in libssh.a(libcrypto.c.o)
"_EVP_MD_CTX_free", referenced from:
_sha1_init in libssh.a(libcrypto.c.o)
_sha1_final in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_evp in libssh.a(libcrypto.c.o)
_evp_final in libssh.a(libcrypto.c.o)
_sha256_init in libssh.a(libcrypto.c.o)
_sha256_final in libssh.a(libcrypto.c.o)
...
"_EVP_MD_CTX_new", referenced from:
_sha1_init in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_evp in libssh.a(libcrypto.c.o)
_evp_init in libssh.a(libcrypto.c.o)
_sha256_init in libssh.a(libcrypto.c.o)
_sha256 in libssh.a(libcrypto.c.o)
_sha384_init in libssh.a(libcrypto.c.o)
...
"_EVP_MD_CTX_reset", referenced from:
_sha1_init in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_sha256_init in libssh.a(libcrypto.c.o)
_sha256 in libssh.a(libcrypto.c.o)
_sha384_init in libssh.a(libcrypto.c.o)
_sha384 in libssh.a(libcrypto.c.o)
_sha512_init in libssh.a(libcrypto.c.o)
...
"_EVP_PKEY_CTX_free", referenced from:
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_CTX_new", referenced from:
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_CTX_new_id", referenced from:
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
"_EVP_PKEY_base_id", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_derive", referenced from:
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_derive_init", referenced from:
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_derive_set_peer", referenced from:
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_free", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
...
"_EVP_PKEY_get1_DSA", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_get1_EC_KEY", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_get1_RSA", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_get_raw_private_key", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
"_EVP_PKEY_get_raw_public_key", referenced from:
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
"_EVP_PKEY_keygen", referenced from:
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
"_EVP_PKEY_keygen_init", referenced from:
_pki_key_generate_ed25519 in libssh.a(pki_crypto.c.o)
_ssh_curve25519_init in libssh.a(curve25519.c.o)
"_EVP_PKEY_new", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_new_raw_private_key", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_new_raw_public_key", referenced from:
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
_ssh_curve25519_build_k in libssh.a(curve25519.c.o)
"_EVP_PKEY_set1_DSA", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_set1_EC_KEY", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_set1_RSA", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
_pki_key_to_pkey in libssh.a(pki_crypto.c.o)
"_EVP_PKEY_size", referenced from:
_pki_sign_data in libssh.a(pki_crypto.c.o)
"_EVP_aes_128_cbc", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
"_EVP_aes_128_ctr", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_aes_128_gcm", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_aes_192_cbc", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_aes_192_ctr", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_aes_256_cbc", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_aes_256_ctr", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_aes_256_gcm", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_des_ede3_cbc", referenced from:
_evp_cipher_init in libssh.a(libcrypto.c.o)
"_EVP_md5", referenced from:
_md5_init in libssh.a(libcrypto.c.o)
_hmac_init in libssh.a(libcrypto.c.o)
"_EVP_sha1", referenced from:
_sha1_init in libssh.a(libcrypto.c.o)
_sha1 in libssh.a(libcrypto.c.o)
_hmac_init in libssh.a(libcrypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
"_EVP_sha256", referenced from:
_evp in libssh.a(libcrypto.c.o)
_evp_init in libssh.a(libcrypto.c.o)
_sha256_init in libssh.a(libcrypto.c.o)
_sha256 in libssh.a(libcrypto.c.o)
_hmac_init in libssh.a(libcrypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
...
"_EVP_sha384", referenced from:
_evp in libssh.a(libcrypto.c.o)
_evp_init in libssh.a(libcrypto.c.o)
_sha384_init in libssh.a(libcrypto.c.o)
_sha384 in libssh.a(libcrypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
"_EVP_sha512", referenced from:
_evp in libssh.a(libcrypto.c.o)
_evp_init in libssh.a(libcrypto.c.o)
_sha512_init in libssh.a(libcrypto.c.o)
_sha512 in libssh.a(libcrypto.c.o)
_hmac_init in libssh.a(libcrypto.c.o)
_pki_sign_data in libssh.a(pki_crypto.c.o)
_pki_verify_data_signature in libssh.a(pki_crypto.c.o)
...
"_FIPS_mode", referenced from:
_ssh_get_pubkey_hash in libssh.a(session.c.o)
_ssh_get_publickey_hash in libssh.a(session.c.o)
_ssh_key_algorithm_allowed in libssh.a(pki.c.o)
_pki_key_check_hash_compatible in libssh.a(pki.c.o)
_ssh_options_set_algo in libssh.a(options.c.o)
_ssh_options_set in libssh.a(options.c.o)
_ssh_bind_options_set in libssh.a(options.c.o)
...
"_HMAC_CTX_free", referenced from:
_hmac_init in libssh.a(libcrypto.c.o)
_hmac_final in libssh.a(libcrypto.c.o)
"_HMAC_CTX_new", referenced from:
_hmac_init in libssh.a(libcrypto.c.o)
"_HMAC_Final", referenced from:
_hmac_final in libssh.a(libcrypto.c.o)
"_HMAC_Init_ex", referenced from:
_hmac_init in libssh.a(libcrypto.c.o)
"_HMAC_Update", referenced from:
_hmac_update in libssh.a(libcrypto.c.o)
"_OpenSSL_version", referenced from:
_ssh_crypto_init in libssh.a(libcrypto.c.o)
"_OpenSSL_version_num", referenced from:
_ssh_crypto_init in libssh.a(libcrypto.c.o)
"_PEM_read_bio_PrivateKey", referenced from:
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
"_PEM_write_bio_PrivateKey", referenced from:
_pki_private_key_to_pem in libssh.a(pki_crypto.c.o)
"_RAND_add", referenced from:
_ssh_reseed in libssh.a(libcrypto.c.o)
"_RAND_bytes", referenced from:
_ssh_get_random in libssh.a(libcrypto.c.o)
"_RSA_free", referenced from:
_ssh_key_clean in libssh.a(pki.c.o)
_ssh_userauth_privatekey_file in libssh.a(legacy.c.o)
_privatekey_free in libssh.a(legacy.c.o)
_publickey_free in libssh.a(legacy.c.o)
_pki_private_key_from_base64 in libssh.a(pki_crypto.c.o)
_pki_privkey_build_rsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_rsa in libssh.a(pki_crypto.c.o)
...
"_RSA_generate_key_ex", referenced from:
_pki_key_generate_rsa in libssh.a(pki_crypto.c.o)
"_RSA_get0_crt_params", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
"_RSA_get0_factors", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_compare in libssh.a(pki_crypto.c.o)
"_RSA_get0_key", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_compare in libssh.a(pki_crypto.c.o)
_pki_publickey_to_blob in libssh.a(pki_crypto.c.o)
"_RSA_new", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_key_generate_rsa in libssh.a(pki_crypto.c.o)
_pki_privkey_build_rsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_rsa in libssh.a(pki_crypto.c.o)
"_RSA_set0_crt_params", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
"_RSA_set0_factors", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_privkey_build_rsa in libssh.a(pki_crypto.c.o)
"_RSA_set0_key", referenced from:
_pki_key_dup in libssh.a(pki_crypto.c.o)
_pki_privkey_build_rsa in libssh.a(pki_crypto.c.o)
_pki_pubkey_build_rsa in libssh.a(pki_crypto.c.o)
"_RSA_size", referenced from:
_pki_key_compare in libssh.a(pki_crypto.c.o)
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_d2i_DSA_SIG", referenced from:
_pki_signature_to_blob in libssh.a(pki_crypto.c.o)
"_d2i_ECDSA_SIG", referenced from:
_pki_signature_to_blob in libssh.a(pki_crypto.c.o)
"_i2d_DSA_SIG", referenced from:
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
"_i2d_ECDSA_SIG", referenced from:
_pki_signature_from_blob in libssh.a(pki_crypto.c.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Ovito.app/Contents/PlugIns/Core.so] Error 1
make[1]: *** [src/ovito/core/CMakeFiles/Core.dir/all] Error 2
make: *** [all] Error 2

Hi Mohammad,

My feeling is that for some reason the OpenSSL library, which is a dependency of libssh, must also be linked into the executable. The missing symbols mentioned in the error message seem to be part of OpenSSL. I'm not sure though why the error occurs on your system only, not on mine.

But anyway, there is no point in compiling the current sources of OVITO if you want to get the Python module working in your interpreter. We have changed the strategy just last week and we are now providing separate PyPI wheels that can be installed in  any CPython interpreter. Please see here:

http://ovito.org/docs/current/python/introduction/running.php#installing-the-ovito-module-in-your-python-interpreter

https://pypi.org/project/ovito/

Note that the source code for the Python module has been removed from the main GitLab repository of OVITO. Thus, even if you would succeed in compiling the desktop application, it would not give you what you wanted. Let me know though if you still would like to do it and get some more help. Also let me know in case you run into any trouble with the PyPI package.

-Alex

Thanks Alex, I could successfully pip ovito to my python interpreter. It's so convenient and that's what I was looking for thanks for that. I was very curious to build it from the source but it seems like there are some dependencies that cannot be linked and I was not sure how to do it accordingly but as you said, module worked just fine.