-
Notifications
You must be signed in to change notification settings - Fork 33
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
Building on Windows machine fails for sqlite3-parser #43
Comments
I can also confirm that I have this issue |
I just looked at the GitHub repo of sqlite3-parser and found the author fixed building issues on Windows since release 0.9.0 (the latest version is 0.10.0). I can see since 0.9.0 the GitHub action added the Windows built and test and succeeds. |
I pursued this issue myself. I did found that the cargo.toml file of this library has to depend on at least version 0.9.0 of the sqlite3-parser rust library. I noticed @samishoux did fork this library and had made that particular change. So I added the following line to the cargo.toml file of my project: After that my project could build, but could not link, with the following error: To solve this latest issue, I installed the sqlite3 package through vcpkg, with the following command inside my vcpkg environment: I saw that this library has an outstanding PR, which also updates the dependency of sqlite3-parser to a version that will build on Windows. Could someone please update this, so I can use this repo again? For me this issue can be closed when the toml file is updated. |
I've had the same errors as @gokkep has experienced, but for me In case anyone has the same error as mine, what I did was copy the
directly to microsoft visual studio's path e.g.: |
I've also experienced this issue, but the solution(s) proposed by @gokkep and @mnpqraven have my project building & linking now 🙌🎉, thanks guys! |
To learn using Rust with a focus on web and SQLite, we have created a working solution based on actix-web and turso using this library.
The project was created on a macOS machine and is running fine there.
Me, building it on a Windows machine fails and really have no clue how to solve the issue.
I get the following error:
error: failed to run custom build command for
sqlite3-parser v0.8.0
Caused by:
process didn't exit successfully:
C:\Users\gokkep\projects\rust\tursotest\target\debug\build\sqlite3-parser-9f9fcbb7d7225a5f\build-script-build
(exit code: 101)--- stdout
OPT_LEVEL = Some("1")
HOST = Some("x86_64-pc-windows-msvc")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("true")
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
I attached the used toml file and lock file
Cargo.zip
The text was updated successfully, but these errors were encountered: