Skip to content

Cannot find liboqs.dll in OQS_INSTALL_PATH #108

@mendezUC

Description

@mendezUC

I'm pretty sure you only look for oqs.dll in OQS_INSTALL_PATH, as opposed to looking for both oqs.dll and liboqs.dll.

liboqs-python/oqs/oqs.py

Lines 80 to 83 in 1a29e93

elif platform.system() == "Windows":
paths.append(path.absolute() / Path(name).with_suffix(".dll"))
# Does not work
# os.environ["PATH"] += os.path.abspath(path)

When looking for the library in PATH, however, you do look for both.

liboqs-python/oqs/oqs.py

Lines 89 to 94 in 1a29e93

# Search typical locations
if found_lib := ctu.find_library(name):
paths.insert(0, Path(found_lib))
if found_lib := ctu.find_library("lib" + name):
paths.insert(0, Path(found_lib))

Is there a reason for this behavior? liboqs's default library name in Windows is liboqs.dll (at least in my experience). The obvious fix from my end is to manually rename liboqs.dll to oqs.dll in the directory pointed to by OQS_INSTALL_PATH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions