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

windows 10 build fatal error LNK1181: cannot open input file 'gtk-3.lib' #29

Closed
omac777 opened this issue Jan 2, 2020 · 12 comments
Closed

Comments

@omac777
Copy link

omac777 commented Jan 2, 2020

Ok so I have resolved this linker error manually, but I don't know where to put it into the Cargo.toml.

BUILD ERROR:

   Compiling inc v0.1.0 (C:\dev\msys64\home\davidm\vgtk\examples\inc)
   Compiling todomvc v0.1.0 (C:\dev\msys64\home\davidm\vgtk\examples\todomvc)
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.0.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.1.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.10.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.11.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.12.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.13.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.14.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.15.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.2.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.3.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.4.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.5.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.6.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.7.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.8.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.inc.6x00cfwh-cgu.9.rcgu.o" "/OUT:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.exe" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\inc.2py07zv6f1eaunk9.rcgu.o" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps" "/LIBPATH:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpretty_env_logger-198fd4c8ab214db3.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libchrono-89411d23a4ca9f60.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libnum_integer-bf462e6bd43796ee.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libnum_traits-01e4687c0a80d559.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libtime-19827e2be2ad0534.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libenv_logger-b44a7498895182ca.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libregex-2a1ebbc44e89e390.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libthread_local-c2a55f69c5478dd5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libregex_syntax-e916621ba949fd4c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libaho_corasick-b6a2502186a43157.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libhumantime-a9efe106719752ce.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libquick_error-20ee0351e0dd7000.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libtermcolor-431212620d53c69e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libwincolor-bd1622911a138622.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libwinapi_util-c91053467f1c4ef8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libvgtk-ebec60e203e4ecc7.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\liblog-941bc422355741a5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcfg_if-a3c8012f2405f889.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcolored-5a116c901162e3c7.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libatty-8a5be26c1e84d08c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libwinapi-6b2687b93e14647f.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgtk-96001bb74887450e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk-c789555bf562ebf8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpango-7f7b14108e5965cc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk_pixbuf-e8a6520afcda5251.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgio-3c312f787efd6c94.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcairo-022ab0b2078d3c7c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libatk-a35e0532b5adb609.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgtk_sys-8956d2652c0e2a54.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libatk_sys-b1b3a79d153ca0b8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk_sys-f78c13ddedb5ccaf.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpango_sys-49e07ce72a9ccdeb.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk_pixbuf_sys-9880a449ec64215c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgio_sys-a6368b2e72dd2189.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcairo_sys-a10584f17e898cf8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libglib-db39f0d0146cf54e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgobject_sys-e38e8823b7b2f11e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libglib_sys-3f3a0631a2a92346.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\liblibc-9d040a69ef3e0b54.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\liblazy_static-f4d2e3f33dc8e197.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libbitflags-7d046a3ed73d611b.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures-acbdd73acc5c48e5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_executor-bdc73b37cc7679a5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_util-d8271124ece4eddc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libmemchr-0e25d59db9bef1ec.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libproc_macro_nested-1663280c81862224.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_io-000f5b8e36517693.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libslab-aef6e9dffd311862.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_channel-90ba97215fda50b1.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_sink-f4185096aaad6544.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_task-606cf8ad9567bcb8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpin_utils-fd73f989b82d82dc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_core-2fd4acddcdd77ac1.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-539c0daffb03e0d7.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-c425f52c2960c9c0.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-136ada68d249664a.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-fd6b7857c20cd2a2.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-7a44a47383f7c47c.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-76e7222e13d77513.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-b723296a1ce1d7b5.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-80bb8f09ce7533db.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-35ddb554ed1ef0c7.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-ae088f08c015b433.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f256746e283311d5.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-1c74e9c554982673.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-c86932987f7f705f.rlib" "advapi32.lib" "cfgmgr32.lib" "credui.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "ole32.lib" "opengl32.lib" "secur32.lib" "shell32.lib" "user32.lib" "winspool.lib" "gtk-3.lib" "gdk-3.lib" "atk-1.0.lib" "gdk-3.lib" "pango-1.0.lib" "gdk_pixbuf-2.0.lib" "gio-2.0.lib" "cairo.lib" "cairo-gobject.lib" "gobject-2.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"  = note: LINK : fatal error LNK1181: cannot open input file 'gtk-3.lib'

error: aborting due to previous error

So to resolve this from start to finish:

  1. open up a dos command prompt
cmd.exe

2)cd to vcpkg directory

cd C:\dev\msys64\home\davidm\vcpkg

3)initialize msvc environment for 64-bit windows

"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"

4)invoke a powershell

powershell

5)set the vcpkg_root to where it exists

[Environment]::SetEnvironmentVariable("VCPKG_ROOT", "c:\dev\msys64\home\davidm\vcpkg", "Process")

6)set the vcpkgrs_dynamic

[Environment]::SetEnvironmentVariable("VCPKGRS_DYNAMIC", "1", "Process")

7)set the path to contain the vcpkg installed packages for x64.
Please note there is one directory containing the binaries for gtk dlls (/bin/) and another directory containing the libraries to link with at the rust/msvc link stage.(/lib/)

[Environment]::SetEnvironmentVariable("PATH", "C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\bin;C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib;C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\tools\openssl;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\;C:\ProgramData\Boxstarter;C:\VulkanSDK\1.1.106.0\Bin;C:\Program Files\ImageMagick-6.9.3-Q16;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\ProgramData\chocolatey\bin;C:\Go\bin;C:\Users\davidm\.cargo\bin;C:\Users\davidm\AppData\Local\Microsoft\WindowsApps;C:\Users\davidm\go\bin;C:\Git;C:\Git\bin;C:\pipeline_virtenv\Scripts;L:\3D\Maya\Maya2015\scriptLib\bin;C:\ffmpeg;C:\radare2;C:\MSVsCode\bin;C:\Users\davidm\go\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja", "Process")

8)install the gtk package for 64-bit windows

PS C:\dev\msys64\home\davidm\vcpkg> .\vcpkg.exe search gtk
PS C:\dev\msys64\home\davidm\vcpkg> .\vcpkg.exe install gtk:x64-windows
Total elapsed time: 25.73 min

9)cd vgtk

cd C:\dev\msys64\home\davidm\vgtk\

10)clean the cargo building

cargo clean

11)now rebuild vgtk with verbose using the rust nightly compiler and ensure you are using the msvc c/c++ developer tools and now the msys c++ tools:

cargo +nightly build --release --target=x86_64-pc-windows-msvc --verbose --verbose

12)everything compiled correctly, but the linker failed.
That was because cargo didn't point to the correct library path for the linking.
It needs:

"/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vcpkg\\installed\\x64-windows\\lib"

Also within cargo there is a spec to link with gtk-3.lib when it should be gtk-3.0.lib.

Relink with this which corrects the issue and points to the correct gtk-3.0.lib:

& "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vcpkg\\installed\\x64-windows\\lib" "/LIBPATH:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.0.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.1.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.10.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.11.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.12.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.13.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.14.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.15.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.2.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.3.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.4.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.5.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.6.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.7.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.8.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.9.rcgu.o" "/OUT:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.exe" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\todomvc.3y1djbgpoq5rkmmc.rcgu.o" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps" "/LIBPATH:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpretty_env_logger-198fd4c8ab214db3.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libchrono-89411d23a4ca9f60.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libnum_integer-bf462e6bd43796ee.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libnum_traits-01e4687c0a80d559.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libtime-19827e2be2ad0534.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libenv_logger-b44a7498895182ca.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libregex-2a1ebbc44e89e390.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libthread_local-c2a55f69c5478dd5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libregex_syntax-e916621ba949fd4c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libaho_corasick-b6a2502186a43157.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libhumantime-a9efe106719752ce.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libquick_error-20ee0351e0dd7000.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libtermcolor-431212620d53c69e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libwincolor-bd1622911a138622.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libwinapi_util-c91053467f1c4ef8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libserde_json-14445d2204854cab.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libryu-2b6e823a665897a5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libitoa-f0f673f6deb1cfb8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libserde-9ca202d62b906645.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libstrum-b8a4ef8a479c1eae.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libvgtk-ebec60e203e4ecc7.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\liblog-941bc422355741a5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcfg_if-a3c8012f2405f889.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcolored-5a116c901162e3c7.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libatty-8a5be26c1e84d08c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libwinapi-6b2687b93e14647f.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgtk-96001bb74887450e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk-c789555bf562ebf8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpango-7f7b14108e5965cc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk_pixbuf-e8a6520afcda5251.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgio-3c312f787efd6c94.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcairo-022ab0b2078d3c7c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libatk-a35e0532b5adb609.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgtk_sys-8956d2652c0e2a54.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libatk_sys-b1b3a79d153ca0b8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk_sys-f78c13ddedb5ccaf.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpango_sys-49e07ce72a9ccdeb.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgdk_pixbuf_sys-9880a449ec64215c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgio_sys-a6368b2e72dd2189.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libcairo_sys-a10584f17e898cf8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libglib-db39f0d0146cf54e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libgobject_sys-e38e8823b7b2f11e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libglib_sys-3f3a0631a2a92346.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\liblibc-9d040a69ef3e0b54.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\liblazy_static-f4d2e3f33dc8e197.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libbitflags-7d046a3ed73d611b.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures-acbdd73acc5c48e5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_executor-bdc73b37cc7679a5.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_util-d8271124ece4eddc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libmemchr-0e25d59db9bef1ec.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libproc_macro_nested-1663280c81862224.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_io-000f5b8e36517693.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libslab-aef6e9dffd311862.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_channel-90ba97215fda50b1.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_sink-f4185096aaad6544.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_task-606cf8ad9567bcb8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libpin_utils-fd73f989b82d82dc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\x86_64-pc-windows-msvc\\release\\deps\\libfutures_core-2fd4acddcdd77ac1.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-539c0daffb03e0d7.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-c425f52c2960c9c0.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-136ada68d249664a.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-fd6b7857c20cd2a2.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-7a44a47383f7c47c.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-76e7222e13d77513.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-b723296a1ce1d7b5.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-80bb8f09ce7533db.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-35ddb554ed1ef0c7.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-ae088f08c015b433.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f256746e283311d5.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-1c74e9c554982673.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-c86932987f7f705f.rlib" "advapi32.lib" "cfgmgr32.lib" "credui.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "ole32.lib" "opengl32.lib" "secur32.lib" "shell32.lib" "user32.lib" "winspool.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib" "gtk-3.0.lib" "gdk-3.0.lib" "atk-1.0.lib" "pango-1.0.lib" "gdk_pixbuf-2.0.lib" "gio-2.0.lib" "cairo.lib" "cairo-gobject.lib" "gobject-2.0.lib" "glib-2.0.lib"
@omac777
Copy link
Author

omac777 commented Jan 2, 2020

The missing resources are corrected by copying the icons from msys's resources into vcpkg:

cp -Rf /c/dev/msys64/mingw64/share/icons/  /home/davidm/vcpkg/installed/x64-windows/share/icons/

Can't save the todo list yet because I get the following error about another missing resource:

Could not load a pixbuf from /org/gtk/libgtk/theme/Adwaita/assets/check-symbolic.svg

@omac777
Copy link
Author

omac777 commented Jan 2, 2020

I found that missing svg file here:

C:\dev\msys64\home\davidm\vcpkg>dir /s/b check-symbolic.svg
C:\dev\msys64\home\davidm\vcpkg\buildtrees\gtk\src\gtk+-3.22.19\gtk\theme\Adwaita\assets\check-symbolic.svg
C:\dev\msys64\home\davidm\vcpkg\buildtrees\gtk\src\gtk+-3.22.19\gtk\theme\HighContrast\assets\check-symbolic.svg

From some other documentation I found. You can do this:

davidm@IO-04 2020-01-02_14:54:54_EST : ~/vcpkg/installed/x64-windows/share
$ cp -Rf /c/dev/msys64/mingw64/share/glib-2.0/schemas/ ./glib-2.0/schemas/

After that, the open file todo dialog and the save as file todo dialog behave correctly.

@omac777
Copy link
Author

omac777 commented Jan 16, 2020

On windows 10, after reinstalling msvc2019/rust nightly/vcpkg/openssl/gtk,

I tried rebuilding....the compile seems ok, but the linker is always giving me troubles.
What do you suggest?

errVgtkMsvc2019Win10BuildOutput.txt

Thank you.

@omac777
Copy link
Author

omac777 commented Jan 16, 2020

I just noticed there is continuous integration testing for vgtk.
https://github.com/bodil/vgtk/pull/25/checks?check_run_id=349979060
How can I determine which version of windows they test the code base with?

Thank you.

@omac777
Copy link
Author

omac777 commented Jan 17, 2020

Ok so I discovered bodil/vgtk uses github's new products for continuous integration called "Github Actions". From within there, we can find some virtual environments to build from as documented here:
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners

Crazy powerful!!! What a way to discover "Github Actions".
I still have much to learn. Congrats on the awesome build infrastructure for vgtk by the way.
I'm still surprised that windows-latest targets windows server 2019 rather than windows 10.
That still doesn't explain why the default git clone of this project followed by a cargo build from a win 10 box would output linker errors.

Please could you change the continous integration to run "cargo build --release --verbose --verbose" in order to see more information about the linker library paths and import libs?
Also could you discuss what cargo/rust project files you did specify the library paths and import libs?
This would help those trying to wind up to use vgtk more successfully.

Thank you.

@bodil
Copy link
Owner

bodil commented Jan 17, 2020

Github Actions is so nice.

The story for building gtk-rs on Windows isn't great, but they've written up a procedure for it here: https://gtk-rs.org/docs-src/requirements#windows - at least it's not something end users would have to do if you package it up correctly, but exactly how to do that is a story as yet unwritten, too.

I'll tweak the CI as you suggested, that's probably a good idea for any build.

@omac777
Copy link
Author

omac777 commented Jan 17, 2020

with msvc2019 configured here is what I needed to do to build todomvc.exe

cmd.exe
"C:\msvc2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"

cd C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib\
copy C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib\gtk-3.0.lib C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib\gtk-3.lib
copy C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib\gdk-3.0.lib C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib\gdk-3.lib

powershell
[Environment]::SetEnvironmentVariable("VCPKG_ROOT", "c:\dev\msys64\home\davidm\vcpkg", "Process")
[Environment]::SetEnvironmentVariable("VCPKGRS_DYNAMIC", "1", "Process")
[Environment]::SetEnvironmentVariable("PATH", "C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\bin;C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib;C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\tools\openssl;C:\msvc2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64;C:\msvc2019\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\msvc2019\BuildTools\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\msvc2019\BuildTools\Common7\IDE\;C:\msvc2019\BuildTools\Common7\Tools\;C:\ProgramData\Boxstarter;C:\Program Files\ImageMagick-6.9.3-Q16;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\ProgramData\chocolatey\bin;C:\Go\bin;C:\Users\davidm\.cargo\bin;C:\Users\davidm\AppData\Local\Microsoft\WindowsApps;C:\Users\davidm\go\bin;C:\Git;C:\Git\bin;C:\pipeline_virtenv\Scripts;L:\3D\Maya\Maya2015\scriptLib\bin;C:\ffmpeg;C:\radare2;C:\Users\davidm\go\bin;C:\msvc2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\msvc2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja", "Process")

cd C:\dev\msys64\home\davidm\vgtk
cargo clean
cargo build --release --verbose --verbose
LINK ERROR, but the following link.exe command with the few added LIBPATH at the beginning resolve it.
& "C:\\msvc2019\\BuildTools\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vcpkg\\installed\\x64-windows\\lib" "/LIBPATH:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.0.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.1.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.10.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.11.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.12.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.13.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.14.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.15.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.2.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.3.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.4.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.5.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.6.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.7.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.8.rcgu.o" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.todomvc.4mjgduof-cgu.9.rcgu.o" "/OUT:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.exe" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\todomvc.3y1djbgpoq5rkmmc.rcgu.o" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps" "/LIBPATH:C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libpretty_env_logger-bfeac477fe715008.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libchrono-f8d9f4d6e0c1fb65.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libnum_integer-3ebcec4a5cd9479f.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libnum_traits-5e6b8e545e5dcd62.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libtime-2c885a692bbbaeeb.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libenv_logger-ba44daa955f545d2.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libregex-baba930b19825f60.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libthread_local-7675549810e561f0.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libregex_syntax-9029c7f54c64627a.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libaho_corasick-ff490e4f2098b316.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libhumantime-3fabc46863a1fdd8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libquick_error-147bb3d317e127cd.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libtermcolor-28cbf1a861039714.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libwinapi_util-e316d0b3c696bb93.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libserde_json-bcc412e0227abd38.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libryu-113c7ea6f0862c6f.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libitoa-74070684b507437f.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libserde-a55a26a376a8fa1a.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libstrum-7cb73146ec1d5b5e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libvgtk-28f07e8089ec7379.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\liblog-d429e44a816a21bd.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libcfg_if-4b3a095dc8355693.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libcolored-cdb31b3929b3bb3c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libatty-f33f7a01d864e227.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libwinapi-7fad96682bdf406c.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgtk-989df112b1d623d0.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgdk-c4f9dfcb9339d29f.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libpango-8d1c89ec6c8aeef9.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgdk_pixbuf-0518c3ad6d57775d.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgio-291659cc47d49afd.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libcairo-2387e46a78f7e0eb.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libatk-e0808efd857f6bc4.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgtk_sys-87f42703fd2f03f9.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libatk_sys-3776500c22f873f9.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgdk_sys-88cbb52d547e42f9.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libpango_sys-1ddb7b9527e4ca20.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgdk_pixbuf_sys-c2608baa22b190bc.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgio_sys-7bc5670fcf58487e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libcairo_sys-39822a21ed9a64ae.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libglib-722f06228a8c9e46.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libgobject_sys-99c0adfbd8a8addd.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libglib_sys-15d42859589eb402.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\liblibc-527632156883adf8.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\liblazy_static-055f2597869bfba2.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libbitflags-ed7666dbfda094c2.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures-0163fd4d48c2f276.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_executor-8f18b5f601a88335.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_util-303b69d72cf34ec9.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libmemchr-ad110082e1f240ef.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libproc_macro_nested-294b72a31a51724e.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_io-250903dab68a05f0.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libslab-27ab39a40434e567.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_channel-c3929a040c6f5c89.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_sink-dcf6236d0f37b4da.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_task-ff4fe374bc662fc1.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libpin_utils-c75072b7f3ae525b.rlib" "C:\\dev\\msys64\\home\\davidm\\vgtk\\target\\release\\deps\\libfutures_core-2f8a263accb7d133.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-75f5239f5f30faaf.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-74ac31eb6ff0d801.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-c44f76958c22d075.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-ef8c2dbff0c79ced.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-6e92b0af14f1f677.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-c3c4a0a8153f75d7.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-4d3bc3a9069a97ef.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-35d0187394b03e75.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-9d6c62af02e5780d.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-b016c5bca4619b2a.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-86ee1d64ef88ee16.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-43dc0b00e8e02758.rlib" "C:\\Users\\davidm\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-36f4a29d7f3ac688.rlib" "advapi32.lib" "cfgmgr32.lib" "credui.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "ole32.lib" "opengl32.lib" "secur32.lib" "shell32.lib" "user32.lib" "winspool.lib" "gtk-3.lib" "gdk-3.lib" "atk-1.0.lib" "gdk-3.lib" "pango-1.0.lib" "gdk_pixbuf-2.0.lib" "gio-2.0.lib" "cairo.lib" "cairo-gobject.lib" "gobject-2.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"

@omac777
Copy link
Author

omac777 commented Jan 21, 2020

Ok so I believe I found the culprit for the link error.

C:\Users\davidm\.cargo\registry\src\github.com-1ecc6299db9ec823\gtk-sys-0.9.2\build.rs

mentions

#[cfg(not(feature = "dox"))]
fn find() -> Result<(), Error> {
    let package_name = "gtk+-3.0";
    let shared_libs = ["gtk-3", "gdk-3"];
...

but it goes on....

    if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
        println!("cargo:include={}", inc_dir);
    }
    if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
        for lib_ in shared_libs.iter() {
            println!("cargo:rustc-link-lib=dylib={}", lib_);
        }
        println!("cargo:rustc-link-search=native={}", lib_dir);
...

SUMMARY

Ok so there were a lot of assumptions here. It assumed we had some environment variables set which were not documented anywhere. The only way to know about these is to read the sources for gtk-sys-0.9.2\build.rs.
GTK_INCLUDE_DIR
GTK_LIB_DIR
and link against gtk-3 and gdk-3 NOT gtk3.0 and gdk3.0.
So why is vgtk looking for gtk3.0 and gdk3.0 when gtk-sys makes no mention of these?
how can we harmonize these without setting these environment paths? Were we supposed to?
Shouldn't there be some auto-searching done based on our vcpkg environment variable and set them after in order to prevent having to set the above environment variables ourselves?

Last question: Did you actually set these variables yourself outside of vgtk project somewhere and make an assumption that others would have to do the same? Again this is in the lens that we want many others to build vgtk successfully and have them using it successfully in order to have many others contribute to the vgtk community.

Thank you again.

@omac777
Copy link
Author

omac777 commented Jan 23, 2020

The yml should mention these extra few environment variables. After that, it can be considered resolved I think. On MS Windows 10, this successfully compiles and links. I was missing a few more environment variables that needed to be set:

cmd.exe
C:\WINDOWS\system32>"C:\msvc2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
C:\Windows\System32>powershell
PS C:\Windows\System32> [Environment]::SetEnvironmentVariable("VCPKG_ROOT", "c:\dev\msys64\home\davidm\vcpkg", "Process")
PS C:\Windows\System32> [Environment]::SetEnvironmentVariable("VCPKGRS_DYNAMIC", "1", "Process")
PS C:\Windows\System32> [Environment]::SetEnvironmentVariable("PATH", "C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\bin;C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib;C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\tools\openssl;C:\msvc2019\BuildTools\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64;C:\msvc2019\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\msvc2019\BuildTools\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\msvc2019\BuildTools\Common7\IDE\;C:\msvc2019\BuildTools\Common7\Tools\;C:\ProgramData\Boxstarter;C:\Program Files\ImageMagick-6.9.3-Q16;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\ProgramData\chocolatey\bin;C:\Go\bin;C:\Users\davidm\.cargo\bin;C:\Users\davidm\AppData\Local\Microsoft\WindowsApps;C:\Users\davidm\go\bin;C:\Git;C:\Git\bin;C:\pipeline_virtenv\Scripts;L:\3D\Maya\Maya2015\scriptLib\bin;C:\ffmpeg;C:\radare2;C:\Users\davidm\go\bin;C:\msvc2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\msvc2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja", "Process")
[Environment]::SetEnvironmentVariable("GTK_INCLUDE_DIR", "C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\include", "Process")
[Environment]::SetEnvironmentVariable("GTK_LIB_DIR", "C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib", "Process")

cp -Rf /c/dev/msys64/mingw64/share/icons/  /home/davidm/vcpkg/installed/x64-windows/share/icons/
mkdir -p /home/davidm/vcpkg/installed/x64-windows/share/glib-2.0/
cp -Rf /c/dev/msys64/mingw64/share/glib-2.0/schemas/ /home/davidm/vcpkg/installed/x64-windows/share/glib-2.0/

PS C:\Windows\System32> cd C:\dev\msys64\home\davidm\vgtk
PS C:\dev\msys64\home\davidm\vgtk>cargo build --release
   Compiling todomvc v0.1.0 (C:\dev\msys64\home\davidm\vgtk\examples\todomvc)
   Compiling inc v0.1.0 (C:\dev\msys64\home\davidm\vgtk\examples\inc)
    Finished release [optimized] target(s) in 7m 06s
PS C:\dev\msys64\home\davidm\vgtk> .\target\release\todomvc.exe

DO SET THE LIB ENVIRONMENT VARIALBLE!
You will get link errors!
set[Environment]::SetEnvironmentVariable("LIB", "C:\dev\msys64\home\davidm\vcpkg\installed\x64-windows\lib", "Process")

@omac777
Copy link
Author

omac777 commented Jan 23, 2020

Here is what the above successfully built looks like:

cargo build --release --verbose --verbose > vgtkBuildOutput23Jan2020.txt 2> vgtkBuildErrOutput23Jan2020.txt

vgtkBuildOutput23Jan2020.txt
vgtkBuildErrOutput23Jan2020.txt

@silvioprog
Copy link

Same problem here.

@bodil
Copy link
Owner

bodil commented Jul 5, 2020

Closing this as it's a gtk-rs upstream issue.

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

3 participants