System.Data.SQLite

Login
This project makes use of Eagle, provided by Mistachkin Systems.
Eagle: Secure Software Automation
Ticket Hash: 1d71eb4e58f94c9e1b37b4e358eba188d2f858e0
Title: Compiling SQLite.Interop.dll for Linux
Status: Closed Type: Question
Severity: Important Priority: Medium
Subsystem: Build_AndOr_Projects Resolution: Not_A_Bug
Last Modified: 2020-01-23 00:18:47
Version Found In: 6b6fb5374d
User Comments:
anonymous added on 2020-01-21 22:09:36:
Trying to compile 6b6fb5374d for .NET Standard 2.1 for Linux x64. Which works successfully out of the box.

However, I wish to make changes to the SQLite.Interop.dll, but this only seems to affect the win-x64 and win-x86 runtimes. How do I recompile the linux-x64 version? That appears to be missing from the build instructions.

Looking through the build bat files, it seems like the SQLite.Interop.dll for linux-x64 runtime binary is downloaded from [https://system.data.sqlite.org/index.html/uv/linux-x64/SQLite.Interop.dll]. Where does this come from? How do I build it myself?

mistachkin added on 2020-01-22 03:27:41:
The following shell scripts are used to compile the interop assemblies for
Linux and/or macOS:

Debug build:

[/artifact?ci=trunk&filename=Setup/compile-interop-assembly-debug.sh]

Release build:

[/artifact?ci=trunk&filename=Setup/compile-interop-assembly-release.sh]

Additionally, there are several other shell scripts in the same directory
(i.e. "Setup") that can be used to build the managed components and run the
test suite.

mistachkin added on 2020-01-22 03:29:04:

It should be noted that these shell scripts are designed to work on the target platform (i.e. they are not suitable for cross-compiling).


anonymous added on 2020-01-22 16:04:41:
Thank you! Guess I should have looked harder.

Actually appears to cross compile just fine by just aliasing 'gcc' to the cross variants. Was able to successfully compile ARMHF, ARM64, and x86_64 from Linux Subsystem for Windows.

You may want to consider compiling those into the NuGet package. Would cover features [d17f503188496bc0d05e36b8ab0bd189961b3888], [bca2ac9de9a37fd1d91d812122b10dea08f4dba6].

mistachkin added on 2020-01-23 00:18:47:

Thanks, that's a good idea; I'll look into it.