Build SQLite.Interop for MAC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Build SQLite.Interop for MAC

UMDevs
Hello,

I'm trying to build the SQLite.Interop on MAC from the source code located
on System.Data.SQLite.org.

 

After building the library my application seems to detect it but I get this
error on the Password field :

System.EntryPointNotFoundException: Unable to find an entry point named
"sqlite3_rekey" in DLL "sqlite3"

 

So I decided to add -DSQLITE_HAS_CODEC=1 to the building script. And now it
doesn't build anymore I get these errors :

Undefined symbols for architecture x86_64: "_sqlite3CodecAttach", referenced
from: _attachFun in interop-523232.o "_sqlite3CodecGetKey", referenced from:
_sqlite3RunVqcuum in interop-523232.o _attachFunc in interop-523232.o

 

Have I missed anything or is it just not possible to build it for MAC ?

 

Thank you,

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Build SQLite.Interop for MAC

Jens Alfke-2


> On Jul 20, 2018, at 10:06 AM, Victor Da Costa <[hidden email]> wrote:
>
> After building the library my application seems to detect it but I get this
> error on the Password field :
>
> System.EntryPointNotFoundException: Unable to find an entry point named
> "sqlite3_rekey" in DLL "sqlite3"

sqlite3_rekey is only available in builds of SQLite with encryption support. (That would be SQLite's own SQLite Encryption Extension, or SQLCipher.)

> So I decided to add -DSQLITE_HAS_CODEC=1 to the building script. And now it
> doesn't build anymore I get these errors :

You've enabled the encryption API, but that doesn't actually add the code that does the encryption, which is where the link errors come from. You need to look at either SQLite Encryption Extension or SQLCipher, if you need to use encryption. Otherwise, you should disable the code that's calling sqlite3_rekey.

—Jens
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users