Skip to content

Problems following example usageΒ #2

@karlb

Description

@karlb

The given compilation command did not create a dynamic library for me. Using the following command created one at the expected place (removed -- and added release, since the example used a release build):

cargo rustc --features extension --release --crate-type=cdylib

The suggested .load command will only work on MacOS, since other systems use a different suffix for dynamic libraries. A simple way to avoid that problem is to omit the suffix, since sqlite will look up files with the correct suffix for the used OS:

.load ./target/release/libsignal_tokenizer

When changing these two things, sqlite3 find the library, but still fails to load it correctly due to

Error: ./target/release/libsignal_tokenizer.so: undefined symbol: sqlite3_signaltokenizer_init

I haven't looked into that problem yet. Any obvious explanation? Did I break something by changing the rustc call?

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