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

Could not load liboqs shared library #28

Closed
prchander opened this issue Jun 2, 2020 · 3 comments
Closed

Could not load liboqs shared library #28

prchander opened this issue Jun 2, 2020 · 3 comments

Comments

@prchander
Copy link

I followed the instructions in liboqs python wrapper to install as a shared library (make -GNinja -DBUILD_SHARED_LIBS=ON ..). Then I cloned liboqs-python and setup a venv called test inside. I then installed setup.py. I then tried to run the kem example with python3 examples/kem.py but the code breaks because it could not load the liboqs library. I have tried multiple variants of liboqs shared library command but I have not gotten any of them to work. Am I doing something wrong or missing a step?

@dstebila dstebila transferred this issue from open-quantum-safe/liboqs Jun 3, 2020
@kartik-27
Copy link

make sure you export LD_LIBRARY_PATH and verify using env command

@vsoftco
Copy link
Member

vsoftco commented Jun 10, 2020

Did you follow all instructions from https://github.com/open-quantum-safe/liboqs-python#installation? Including export LD_LIBRARY_PATH if using Linux or on Windows ensure that the liboqs shared library oqs.dll is visible system-wide. Use the "Edit the system environment variables" Control Panel tool or type in a Command Prompt

set PATH="%PATH%;C:\some\dir\liboqs\build\bin"

@ArkS0001
Copy link

Still Shared Library Not Found

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

4 participants