可以使用官方文档的方式,只是需要注意rustup需要设置为stable-gnu 使用vcpkg安装(MSVC环境) 准备工作 系统环境:Windows 7 或更新的版本。我用的win10 21H2 网络:可以顺利访问github或其它上网手段。 下载package-confg工具pkg-config-lite(zip压缩包,我们只需要bin目录下的单文件),并将该可执行文件的目录设置环境变量...
Using GTK with Rust Seethe fantasticgtk-rsbook. You can skip the "Install GTK 4" step, as the above steps ^ covered that. Use PyGObject First, add GTK to your environment variables: $env:LIB="C:\gtk-build\gtk\x64\release\lib;"+$env:LIB$env:INCLUDE="C:\gtk-build\gtk\x64\release...
E> { Ok(T), Err(E), } Result Option和resutl 可以组合 通过ok_or和ok转换 及早返回?
问致命错误LNK1181:无法打开输入文件'gtk-3.lib‘EN在使用Microsoft Visual Studio进行C++项目编译时,有...
WEBVIEW_USE_STATIC_MSVC_RUNTIMEUse static runtime library (MSVC) Note Checks areenabledby default, but aren'tenforcedby default for local development (controlled by theWEBVIEW_IS_CIoption). Non-boolean options: OptionDescription WEBVIEW_CLANG_FORMAT_EXEPath of theclang-formatexecutable. ...
WEBVIEW_USE_STATIC_MSVC_RUNTIMEUse static runtime library (MSVC) [!NOTE] Checks areenabledby default, but aren'tenforcedby default for local development (controlled by theWEBVIEW_IS_CIoption). Non-boolean options: OptionDescription WEBVIEW_CLANG_FORMAT_EXEPath of theclang-formatexecutable. ...
version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" [[package]] name = "android_system_properties" version = "0.1.5" source = "registry+https://github.com/r...
[ "windows_aarch64_msvc 0.36.1", "windows_i686_gnu 0.36.1", "windows_i686_msvc 0.36.1", "windows_x86_64_gnu 0.36.1", "windows_x86_64_msvc 0.36.1", ] [[package]] name = "windows-sys" version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io...
Install Rust by visiting https://rustup.rs. After running the exe press 2 (right after you see the terminal of rustup-init.exe) to customize the settings and enter x86_64-pc-windows-gnu as default triplet (notice the gnu instead of msvc)...
I downloaded Rust 1.46.0 on Windows 10, did a "git clone" of the gtk-rs/sys, changed to directory "glib-sys" and did a "cargo build". This failed with Failed to run "pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.42": Det går ...