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

SQLite.Interop.dll is not available for Mono #2

Open
gjdv opened this issue Aug 3, 2018 · 0 comments
Open

SQLite.Interop.dll is not available for Mono #2

gjdv opened this issue Aug 3, 2018 · 0 comments

Comments

@gjdv
Copy link
Owner

gjdv commented Aug 3, 2018

SQLite.Interop.dll is not available for Mono; building it using Travis did not yet work out, hence the 18 unit tests depending on SQLite fail on Mono (but pass in Visual Studio)

Following the instructions from Wezeku blog translate to the following part in .travis.yml:

before_script:
- WGET="travis_retry wget --continue --tries=20 --waitretry=10 --retry-connrefused --no-dns-cache --timeout 300"
- $WGET https://system.data.sqlite.org/downloads/1.0.108.0/sqlite-netFx-full-source-1.0.108.0.zip
- CURDIR=`pwd`
- mkdir ./sqliteBuild
# jar xvf is more robust than unzip https://askubuntu.com/questions/54904/unzip-error-end-of-central-directory-signature-not-found
- cd ./sqliteBuild/
- jar xvf $CURDIR/sqlite-netFx-full-source-1.0.108.0.zip
- cd $CURDIR
- chmod +x ./sqliteBuild/Setup/compile-interop-assembly-release.sh
- ./sqliteBuild/Setup/compile-interop-assembly-release.sh
- cp ./sqliteBuild/bin/2013/Release/bin/libSQLite.Interop.so srcCsharp/packages/System.Data.SQLite.Core.1.0.108.0/build/net45

First of all, simply unzipping didn't work as it says that archive is invalid (but downloading it and unzipping it in windows works well), but apparently jar xvf should be more robust. It shoul have unpacked the archive and place the shell script (compile-interop-assembly-release.sh), however setting its permissions fails see Travis with:

$ chmod +x ./sqliteBuild/Setup/compile-interop-assembly-release.sh
chmod: cannot access ‘./sqliteBuild/Setup/compile-interop-assembly-release.sh’: No such file or directory

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

1 participant