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

Build fails in MSVC toolchain #374

Open
tasogare3710 opened this issue Sep 4, 2020 · 5 comments
Open

Build fails in MSVC toolchain #374

tasogare3710 opened this issue Sep 4, 2020 · 5 comments

Comments

@tasogare3710
Copy link

The cause of this issue is that when set the *.lib files required for linking gstreamer as an arguments to link.exe, that passing the file name instead of the full path.

There is a easy way to avoid this issue. That is to set the environment variable LINK to "/libpath:c:\gstreamer\1.0\x86_64\lib\pkgconfig" (for x86_64).

set PKG_CONFIG=your\path\to\pkg-config.exe
set PKG_CONFIG_PATH=your\path\to\gstreamer\lib\pkgconfig
set LINK="/libpath:your\path\to\gstreamer\lib"

However, this way not a real solution.

@nirbheek
Copy link

nirbheek commented Sep 7, 2020

Can you paste the linker commandline and linker error when this happens?

@tasogare3710
Copy link
Author

yes, I can.

The following is the result of cargo run -vv in the x64 Native Tools Command Prompt for VS 2017.

cargo run -vv --bin play --release --offline -j 2
       ... Long long Fresh ...

   Compiling examples v0.1.0 (C:\Users\tasogare\git\GraphAL\media\examples)
     Running `set CARGO=\\?\C:\Users\tasogare\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_BIN_NAME=play&& set CARGO_CRATE_NAME=play&& set CARGO_MANIFEST_DIR=C:\Users\tasogare\git\GraphAL\media\examples&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=MPL-2.0&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=examples&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_VERSION_PRE=""&& set PATH="C:\Users\tasogare\git\GraphAL\media\target\release\deps;C:\Users\tasogare\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin;C:\Users\tasogare\.cargo\bin;C:\Users\tasogare\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\AdoptOpenJDK\jdk-13.0.1.9-hotspot\bin;C:\dev\tools\bin;C:\dev\tools\gradle-6.0;apache-maven-3.6.0;C:\dev\tools\apache-ant-1.10.7\bin;;C:\dev\lib\nasm-2.10.09\;C:\Program Files (x86)\WiX Toolset v3.11\bin;C:\Program Files\doxygen\bin;C:\Users\tasogare\AppData\Local\bin\NASM;C:\dev\env\ninja-win;C:\dev\env\swig-msvc\bin;C:\WINDOWS\System32\OpenSSH\;C:\dev\tools\apache-maven-3.6.0\bin;C:\dev\tools\gradle-6.0\bin;C:\dev\env\zen\zen-windows-x86_64-0.8.20200615LTS;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\dev\pkg-config-lite-0.28-1\bin;C:\Users\tasogare\.cargo\bin\;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Graphviz2.38\bin;C:\Users\tasogare\AppData\Local\Microsoft\WindowsApps;C:\dev\tools\webassembly\wabt;C:\dev\tools\webassembly\wavm;C:\Users\tasogare\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.4\bin;;;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja"&& rustc --crate-name play examples\play.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg "feature=\"default\"" -C metadata=ebc2f37ba21eeda9 --out-dir C:\Users\tasogare\git\GraphAL\media\target\release\deps -L dependency=C:\Users\tasogare\git\GraphAL\media\target\release\deps --extern servo_media=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media-24c4feb3c07bd32d.rlib --extern servo_media_auto=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media_auto-350b062903a5aa91.rlib --extern servo_media_dummy=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media_dummy-a5bfda9997f4e07f.rlib --extern servo_media_gstreamer=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media_gstreamer-40123b257ff84702.rlib`
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.0.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.1.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.10.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.11.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.12.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.13.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.14.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.15.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.2.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.3.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.4.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.5.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.6.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.7.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.8.rcgu.o" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.play.t2ahmo9u-cgu.9.rcgu.o" "/OUT:C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.exe" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\play.51oxrtj68tzz2xgx.rcgu.o" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps" "/LIBPATH:C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_auto-350b062903a5aa91.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_gstreamer-40123b257ff84702.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\liburl-22816fa98e9970fc.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libpercent_encoding-15aef7d7e059b1ce.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libidna-18188defe8c83143.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libunicode_normalization-b3ec9f5f9566c32d.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libunicode_bidi-434c23ad9040e095.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libmatches-59cb034e11861b77.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_gstreamer_render-28d8fc84e7622178.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_webrtc-16247910d23b61bc.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_webrtc_sys-09c56522875cd74b.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_sdp-abd790ee21bbcab9.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_sdp_sys-19bfa52c81ad9a9d.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_player-08ab6acc29f6c11d.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_video-6939a0ecb17fcd6b.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_player_sys-01843e7d80d69219.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_video_sys-5239dfad8b6f9588.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_audio-914dfee527d2fea9.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_audio_sys-1b5d4f833fb6ef22.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libarray_init-c3ba267489776723.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_app-c59e0d3e322b4499.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_base-691c4d4bf3e09c28.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_app_sys-1499fe0616b151fd.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_base_sys-c5ad989c1d102cdb.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer-fa37fbac7b20b1b5.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libmuldiv-82c5ee04e26b9ea1.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libnum_rational-8717022267e71166.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libnum_integer-a31bb0914888a9de.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libpaste-275cdb651caf2f78.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libglib-e5fde2afec6153d4.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libfutures_executor-0deef965e2386a26.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libfutures_util-5f34f6c0c7b474bc.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libproc_macro_nested-b318afc6d093aeb8.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libslab-a38f3b33307f21f1.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libpin_utils-28f3a434e215a6c6.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libfutures_task-8d7dd4037aa1b93a.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libfutures_channel-088c6bc75521b982.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libfutures_core-a392d80068c63d54.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libbitflags-aa9e5703c8e2f582.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgstreamer_sys-466a8582970fa277.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgobject_sys-b5021c4b1e0593d0.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libglib_sys-a5fe3c19cb1b76ef.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libmime-9139c40e58acce19.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libunicase-a4e3e49a043bed2e.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media-24c4feb3c07bd32d.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_webrtc-7389f7421480ea22.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_audio-6118a4317aa06cf2.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libspeexdsp_resampler-081312451602e049.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libsmallvec-ecdef8af84a6ae8c.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libunreachable-4482804d7b92ccb2.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libvoid-3ddb8f4f1b2a1782.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libpetgraph-3560c927edcc84ec.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libordermap-007c4b9c05f20ede.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libfixedbitset-28a3f3afe36bce28.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libnum_complex-278642c1176d1c70.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\liblog-d156a6acfff1c4ea.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libeuclid-34f39bd433b63136.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libnum_traits-6118ee4c83bafc8d.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libbyte_slice_cast-7d19423abf4c3ce6.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libboxfnonce-db57c34cb5fdd9bf.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_player-0e0b6ba2b58fc965.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_traits-e933e0982bc3702c.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libservo_media_streams-0ce4a996fed09cd9.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libipc_channel-379932947b915d6f.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libuuid-3abfb28053c10970.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libtempfile-34b0b95003f9780d.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libremove_dir_all-a0617ffbbab4bb30.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\librand-a1a26dada504f695.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libwinapi-90ff29e7b2c04cb0.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\librand_core-6126d97f3e32d049.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\librand_core-a52d1624fa2026ea.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\librand-8e749b01af26bf58.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\librand_chacha-00f8a48f01b8ffdc.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libc2_chacha-4d5a821f34010e32.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libppv_lite86-c0635dc31075d634.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\librand_core-a46e7c204718519f.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libgetrandom-153435f196a87a91.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\liblibc-1310de6963f8180f.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libcrossbeam_channel-1870812919650adb.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libcrossbeam_utils-764609cf2c8debf3.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\liblazy_static-9a9c4df7d6357652.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libcfg_if-29dd20f3975d7d5b.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libbincode-0c2af008e77fdd34.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libserde-a8edd64dbfaf20a8.rlib" "C:\\Users\\tasogare\\git\\GraphAL\\media\\target\\release\\deps\\libbyteorder-515f2ea2c444ed50.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-03343ad782def132.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-2af690f2dad1b9aa.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-b525c65aac6dc224.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-a7a850fac32c6efa.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-d1f456dbe2414d29.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-79dfe6d564d05449.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-303abf30a12df9b4.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-0d21bcb873f4e3cb.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-9a15006a1272f623.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f7a208faae2fe85f.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-d505519916259fd7.rlib" "C:\\Users\\tasogare\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-f24cb6d5e4a99216.rlib" "gstwebrtc-1.0.lib" "gstsdp-1.0.lib" "gstplayer-1.0.lib" "gstvideo-1.0.lib" "gstaudio-1.0.lib" "gstapp-1.0.lib" "gstbase-1.0.lib" "gstreamer-1.0.lib" "gobject-2.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "advapi32.lib" "credui.lib" "fwpuclnt.lib" "kernel32.lib" "ntdll.lib" "secur32.lib" "setupapi.lib" "user32.lib" "ws2_32.lib" "advapi32.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"
  = note: Non-UTF-8 output: LINK : fatal error LNK1181: \x93\xfc\x97\xcd\x83t\x83@\x83C\x83\x8b \'gstwebrtc-1.0.lib\' \x82\xf0\x8aJ\x82\xaf\x82\xdc\x82\xb9\x82\xf1\x81B\r\n

error: aborting due to previous error

error: could not compile `examples`.

Caused by:
  process didn't exit successfully: `set CARGO=\\?\C:\Users\tasogare\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_BIN_NAME=play&& set CARGO_CRATE_NAME=play&& set CARGO_MANIFEST_DIR=C:\Users\tasogare\git\GraphAL\media\examples&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=MPL-2.0&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=examples&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_VERSION_PRE=""&& set PATH="C:\Users\tasogare\git\GraphAL\media\target\release\deps;C:\Users\tasogare\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin;C:\Users\tasogare\.cargo\bin;C:\Users\tasogare\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\;C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\AdoptOpenJDK\jdk-13.0.1.9-hotspot\bin;C:\dev\tools\bin;C:\dev\tools\gradle-6.0;apache-maven-3.6.0;C:\dev\tools\apache-ant-1.10.7\bin;;C:\dev\lib\nasm-2.10.09\;C:\Program Files (x86)\WiX Toolset v3.11\bin;C:\Program Files\doxygen\bin;C:\Users\tasogare\AppData\Local\bin\NASM;C:\dev\env\ninja-win;C:\dev\env\swig-msvc\bin;C:\WINDOWS\System32\OpenSSH\;C:\dev\tools\apache-maven-3.6.0\bin;C:\dev\tools\gradle-6.0\bin;C:\dev\env\zen\zen-windows-x86_64-0.8.20200615LTS;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\dev\pkg-config-lite-0.28-1\bin;C:\Users\tasogare\.cargo\bin\;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Graphviz2.38\bin;C:\Users\tasogare\AppData\Local\Microsoft\WindowsApps;C:\dev\tools\webassembly\wabt;C:\dev\tools\webassembly\wavm;C:\Users\tasogare\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.4\bin;;;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja"&& rustc --crate-name play examples\play.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -Cembed-bitcode=no --cfg "feature=\"default\"" -C metadata=ebc2f37ba21eeda9 --out-dir C:\Users\tasogare\git\GraphAL\media\target\release\deps -L dependency=C:\Users\tasogare\git\GraphAL\media\target\release\deps --extern servo_media=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media-24c4feb3c07bd32d.rlib --extern servo_media_auto=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media_auto-350b062903a5aa91.rlib --extern servo_media_dummy=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media_dummy-a5bfda9997f4e07f.rlib --extern servo_media_gstreamer=C:\Users\tasogare\git\GraphAL\media\target\release\deps\libservo_media_gstreamer-40123b257ff84702.rlib` (exit code: 1)

The following is the result of pkg-config.

echo %PKG_CONFIG_PATH%
C:\gstreamer\1.0\msvc_x86_64\lib\pkgconfig

pkg-config --msvc-syntax --libs --cflags gstreamer-webrtc-1.0
-IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include -IC:/gstreamer/1.0/msvc_x86_64/include/glib-2.0 -IC:/gstreamer/1.0/msvc_x86_64/lib/glib-2.0/include /libpath:C:/gstreamer/1.0/msvc_x86_64/lib.lib gstwebrtc-1.0.lib gstbase-1.0.lib gstreamer-1.0.lib gobject-2.0.lib glib-2.0.lib intl.lib

@nirbheek
Copy link

nirbheek commented Sep 7, 2020

pkg-config --msvc-syntax --libs --cflags gstreamer-webrtc-1.0

Unrelatedly, don't use --msvc-syntax, the implementation of that in pkg-config is broken.

pkg-config-rs automatically converts -L to rustc-link-search=native=. It doesn't look like that's happening here for some reason. There is also no LIBPATH entry pointing to the gstreamer prefix.

@nirbheek
Copy link

nirbheek commented Sep 7, 2020

= note: Non-UTF-8 output: LINK : fatal error LNK1181: \x93\xfc\x97\xcd\x83t\x83@\x83C\x83\x8b 'gstwebrtc-1.0.lib' \x82\xf0\x8aJ\x82\xaf\x82\xdc\x82\xb9\x82\xf1\x81B\r\n

This is also very strange.

@tasogare3710
Copy link
Author

Unrelatedly, don't use --msvc-syntax, the implementation of that in pkg-config is broken.

pkg-config-rs automatically converts -L to rustc-link-search=native=. It doesn't look like that's happening here for some reason. There is also no LIBPATH entry pointing to the gstreamer prefix.

I get it.

Without --msvc-syntax

pkg-config --libs --cflags gstreamer-webrtc-1.0
-IC:/gstreamer/1.0/msvc_x86_64/include/gstreamer-1.0 -IC:/gstreamer/1.0/msvc_x86_64/include -IC:/gstreamer/1.0/msvc_x86_64/include/glib-2.0 -IC:/gstreamer/1.0/msvc_x86_64/lib/glib-2.0/include -LC:/gstreamer/1.0/msvc_x86_64/lib -lgstwebrtc-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lintl

This is also very strange.

Definitely. It's a escape of non-ascii characters by cargo. But strange bytes added(I use is japanese language, but It mixed non-japanese characters).

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

2 participants