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

Linker error on example run #960

Open
tower120 opened this issue Oct 6, 2024 · 7 comments
Open

Linker error on example run #960

tower120 opened this issue Oct 6, 2024 · 7 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@tower120
Copy link

tower120 commented Oct 6, 2024

I cloned your project and trying to run example:

PS C:\tmp\freya> cargo run --example text
   Compiling examples v0.0.0 (C:\tmp\freya)
error: linking with `link.exe` failed: exit code: 1120

...

  = note: skunicode_icu.lib(icu.SkLoadICU.obj) : error LNK2019: unresolved external symbol __std_init_once_link_alternate_names_and_abort referenced in function "bool __cdecl SkLoadICU(void)" (?SkLoadICU@@YA_NXZ)
          skunicode_icu.lib(icu.umutex.obj) : error LNK2001: unresolved external symbol __std_init_once_link_alternate_names_and_abort
          skia.lib(skia.SkSLRasterPipelineBuilder.obj) : error LNK2019: unresolved external symbol __std_max_element_2 referenced in function "public: void __cdecl SkSL::RP::Program::Dumper::dump(class SkWStream *,bool)" (?dump@Dumper@Program@RP@SkSL@@QEAAXPEAVSkWStream@@_N@Z)
          skia.lib(skia.SkSLRasterPipelineBuilder.obj) : error LNK2019: unresolved external symbol __std_max_element_1 referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl SkSL::RP::Program::Dumper::swizzlePtr<unsigned char>(void const *,class SkSpan<unsigned char>)const " (??$swizzlePtr@E@Dumper@Program@RP@SkSL@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBXV?$SkSpan@E@@@Z)
          skia.lib(skia.SkSLFindAndDeclareBuiltinFunctions.obj) : error LNK2019: unresolved external symbol __std_find_trivial_8 referenced in function "void __cdecl SkSL::Transform::FindAndDeclareBuiltinFunctions(struct SkSL::Program &)" (?FindAndDeclareBuiltinFunctions@Transform@SkSL@@YAXAEAUProgram@2@@Z)
          skia.lib(skia.SkSLFindAndDeclareBuiltinVariables.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
          skia.lib(skia.SkNWayCanvas.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
          skia.lib(gpu.GrGLCaps.obj) : error LNK2019: unresolved external symbol __std_find_trivial_4 referenced in function "public: bool __cdecl GrGLCaps::programBinaryFormatIsValid(unsigned int)const " (?programBinaryFormatIsValid@GrGLCaps@@QEBA_NI@Z)
          C:\tmp\freya\target\debug\examples\text.exe : fatal error LNK1120: 5 unresolved externals


error: could not compile `examples` (example "text") due to 1 previous error

I'm on Windows.
I have 2017, 2019, 2022 MSVC build tools installed.

@tower120
Copy link
Author

tower120 commented Oct 6, 2024

Same error with "Getting started" project:

cargo run
   Compiling freya_app v0.1.0 (C:\tmp\freya_app)
error: linking with `link.exe` failed: exit code: 1120                                                                                                          
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\Andy\\AppData\\Local\\Temp\\rustcLJe1dy\\symbols.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.11aylmkt5nzlkoyc44ef519j7.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.1uzs01j6mqypqsmo7kgitkryi.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.3ntvwur3p667fnatqp66b8dj2.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.4dx19e2crqelvol0rz8xk5n17.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.5cge46wq1echw3komyuobfii0.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.6wcms7z46f7oavq4swjfllsk7.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.9eapk7gnvocbievdqzlj5d0xk.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.9wsgiqj7dd53bx8gr9dftgvw5.rcgu.o" "C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.470mwhsmt8u4cj9epjkd04m41.rcgu.o" "/LIBPATH:C:\\tmp\\freya_app\\target\\debug\\deps" "/LIBPATH:C:\\Users\\Andy\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.52.6\\lib" "/LIBPATH:C:\\Users\\Andy\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.42.2\\lib" "/LIBPATH:C:\\Users\\Andy\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.48.5\\lib" "/LIBPATH:C:\\tmp\\freya_app\\target\\debug\\build\\skia-bindings-9ea347d6b0fcd55e\\out\\skia" "/LIBPATH:C:\\tmp\\freya_app\\target\\debug\\build\\ring-5ecdf31f8506fd5d\\out" "/LIBPATH:C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya-dc95793481cf8ae0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_testing-56f50c688c96de82.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_components-90bbd1afea47a8d5.rlib" "C:\\tm
p\\freya_app\\target\\debug\\deps\\libopen-31d169b49f24e8dc.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libreqwest-1076d6813c7c028b.rlib" "C:\\tmp\\freya_app
\\target\\debug\\deps\\librustls_pemfile-2722b20e15a72185.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhyper_tls-6a5104ddd191b228.rlib" "C:\\tmp\\freya_app
\\target\\debug\\deps\\libserde_urlencoded-90222afd93f7eca0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libbase64-e72c3998b7d1e199.rlib" "C:\\tmp\\freya_app\
\target\\debug\\deps\\libwinreg-7f85536c2e1950af.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libipnet-6ab74975230e7c8f.rlib" "C:\\tmp\\freya_app\\target\\deb
ug\\deps\\libtokio_native_tls-e529fa7d42e5edb0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libmime-e1da4c48edcebe00.rlib" "C:\\tmp\\freya_app\\target\\debug\
\deps\\libencoding_rs-da8f1c62098d07f3.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libnative_tls-e0380dd68d6669e9.rlib" "C:\\tmp\\freya_app\\target\\debug\\d
eps\\libschannel-91f7101576d9e858.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhyper-66a6347128584ca3.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwa
nt-cc4928031ca85356.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtry_lock-94ef145f26de70de.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhttparse-ace1
9efc71ae0798.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libh2-c3ef3b85ad2a580d.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtokio_util-766b7127c11c8dc
8.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfutures_sink-a1548e43029ab7f5.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtower_service-fabdf8802267e
6b2.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsync_wrapper-a603c2bccf0e14b9.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhttp_body-a2cf786f9552807
0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhttp-6645736b1e9de88d.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfnv-e06b0a07e0a807f5.rlib" "C:\\tmp
\\freya_app\\target\\debug\\deps\\libdioxus_router-6a9f108609cec376.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liburlencoding-c5cc05ad25dee0f2.rlib" "C:\\tm
p\\freya_app\\target\\debug\\deps\\libdioxus_lib-2e81fa626373a381.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_renderer-412a24ed42a55a5d.rlib" "C:\\t
mp\\freya_app\\target\\debug\\deps\\libglutin_winit-5a68f9db1ee44466.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libglutin-5569fe9ed80dfca7.rlib" "C:\\tmp\\f
reya_app\\target\\debug\\deps\\libglutin_wgl_sys-f1f3d7b5f0e9173d.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liblibloading-3f2b34bf5b64dfa8.rlib" "C:\\tmp\\
freya_app\\target\\debug\\deps\\libglutin_egl_sys-0ef7e5d5bf319b07.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libgl-b5a06f21c392b309.rlib" "C:\\tmp\\freya_a
pp\\target\\debug\\deps\\libimage-76d07ea5b41ca379.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libqoi-f99aeba22e503664.rlib" "C:\\tmp\\freya_app\\target\\deb
ug\\deps\\libbytemuck-62e4d72b54b10cb3.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libpng-d99d7e0599a5d53e.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\li
bbitflags-ddda309dafe2551f.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfdeflate-8c87c20a9513cbc7.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libexr-46
69467a3b3b138a.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libflume-a4aeb8df28c1861f.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libminiz_oxide-f8e3e49d5
e99eae6.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libadler-27eaf93d139c44ae.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libzune_inflate-ef2ac0882c48aa8
e.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libbit_field-a63eab16efd1b137.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liblebe-57f601b10317007b.rlib" "C
:\\tmp\\freya_app\\target\\debug\\deps\\libhalf-602f24e3106b402e.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libgif-87f22584f2589f20.rlib" "C:\\tmp\\freya_ap
p\\target\\debug\\deps\\libcolor_quant-6535e8f6d5a9b5a3.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libbyteorder-c2bda524660cda17.rlib" "C:\\tmp\\freya_app\\
target\\debug\\deps\\libtiff-1ffb3225c19a42d1.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libweezl-3803bc9b1cb2980d.rlib" "C:\\tmp\\freya_app\\target\\debug\
\deps\\libjpeg_decoder-5ffb699302f04058.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_hooks-17385e98ba1ab76f.rlib" "C:\\tmp\\freya_app\\target\\debug\
\deps\\libeaser-78b8af68a9ad3820.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdioxus_sdk-3ac0e4d74f8c3e8f.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\l
ibcopypasta-fa039c05ad2fc907.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libclipboard_win-2bc27d1b346d5d9a.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\li
blazy_bytes_cast-e7279faae679b2c4.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libropey-9109d8ceef557591.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libst
r_indices-dbbbbf4c436dccf4.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_core-80f69b2d7714801b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libiter
tools-65ba0841872932e4.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_elements-c539b7676152a1ee.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfrey
a_node_state-ea8397e8dfc0270b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtokio-b2eb50a81739c4ff.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsocket
2-38389b8f9945838f.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libmio-bed876f376bb95b9.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwindows_sys-261f925
a1c3a2f45.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libbytes-979786378cb6b0d3.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_common-fc6c5118a9ce3
d00.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtorin-d1949258fdbb5a95.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_engine-ffabc9c197d0f3dc.rl
ib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libskia_safe-28b29e6ca30a11a8.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libureq-d147fce2373e446f.rlib" "C:\\t
mp\\freya_app\\target\\debug\\deps\\libwebpki_roots-5eecf60d475337e9.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\librustls-22372b44c6be02a3.rlib" "C:\\tmp\\f
reya_app\\target\\debug\\deps\\libsubtle-3a992e2f681e1053.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwebpki-5dfb4fa2c71d2193.rlib" "C:\\tmp\\freya_app\\t
arget\\debug\\deps\\libring-95ee52678644e2a9.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libspin-e262a82f780e4ddd.rlib" "C:\\tmp\\freya_app\\target\\debug\\d
eps\\libuntrusted-16c379c7745627f7.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libzeroize-fa2037721dbd55ff.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\li
brustls_pki_types-eee44e36eaedfdbe.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libflate2-50711a5c6aa5e988.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\lib
miniz_oxide-9a559382cc6e3d85.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsimd_adler32-9af2548305d30342.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\lib
crc32fast-6cf15a98f6988e12.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liburl-a8f5efc47f2e1dde.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libidna-b5fb1d
dde6b26689.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libunicode_normalization-0795c5ee083024fd.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtinyvec-c
1c2b36f318e4a2d.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtinyvec_macros-fbcb8a0ca70a1648.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libunicode_bid
i-a2720914147f03f4.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libform_urlencoded-13791f38520c5b67.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libpercent
_encoding-a0f679c76d512c9b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libbase64-10a36a65e55e0fe0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libskia_bin
dings-7d8ad5deed906b91.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liblazy_static-8503bd3b3e6af38a.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfreya_n
ative_core-9df37f9b6c7d0f81.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libanymap-6f3feceb49dca507.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdashmap
-8c6d70a9f28c7245.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libshipyard-4b71f888c83a17cc.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\librayon-de59ec8d1
07dbd8c.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\librayon_core-3008735ef7b51288.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libeither-93e6a0c90bc5f4d6
.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhashbrown-4ba9dadeae87bab1.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libahash-a59af46d6a4c2a94.rlib" "C
:\\tmp\\freya_app\\target\\debug\\deps\\libuuid-e049123fd362051f.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libgetrandom-9e6025d92decff09.rlib" "C:\\tmp\\fr
eya_app\\target\\debug\\deps\\libaccesskit_winit-8f511a7fc77f7c95.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libaccesskit_windows-ce8f0dd201ab7adc.rlib" "C:
\\tmp\\freya_app\\target\\debug\\deps\\libstatic_assertions-b788cf1b026b8db6.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwindows-4ee7a2ab8c2262f4.rlib" "C
:\\tmp\\freya_app\\target\\debug\\deps\\libwindows_core-54dd9a33003b5414.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwindows_result-78a046d977a1f88c.rlib"
 "C:\\tmp\\freya_app\\target\\debug\\deps\\libaccesskit_consumer-aa9d0acd66466344.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwinit-a03aced20df3e46e.rlib"
 "C:\\tmp\\freya_app\\target\\debug\\deps\\libraw_window_handle-0ba9ce8ffd782a93.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libcursor_icon-81e4e17a048e55ca.
rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwindows_sys-54067f07f77a070a.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwindows_targets-404bd71c6bc8ca
81.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsmol_str-df7a426ba20a237f.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libraw_window_handle-5d9739d005ed
5f97.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libaccesskit-39a5c877507f9293.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdioxus-b8c68087f3de4b86.rli
b" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdioxus_hot_reload-cf150841f61dcb8b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libchrono-5828d698f27655cd.rli
b" "C:\\tmp\\freya_app\\target\\debug\\deps\\libignore-577b8d13814f23cf.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libcrossbeam_deque-043cb8da534a1162.rlib"
 "C:\\tmp\\freya_app\\target\\debug\\deps\\libcrossbeam_epoch-272bffb19866c369.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libglobset-540cb5cbae5590f1.rlib" 
"C:\\tmp\\freya_app\\target\\debug\\deps\\liblog-3929edbf3ebf5dd7.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libregex_automata-4b6e60af488337dc.rlib" "C:\\t
mp\\freya_app\\target\\debug\\deps\\libregex_syntax-4a7ba859edc19140.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libbstr-ba057d6c34b63a54.rlib" "C:\\tmp\\fre
ya_app\\target\\debug\\deps\\libaho_corasick-9687c839b2e2dcb3.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libexecute-f61bc098db3ad217.rlib" "C:\\tmp\\freya_a
pp\\target\\debug\\deps\\libexecute_command_tokens-368adadd3afb24b2.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libexecute_command_macro-c1a20e8f56d3cce8.rli
b" "C:\\tmp\\freya_app\\target\\debug\\deps\\libgeneric_array-b1d05751db42d6f8.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtypenum-b794b4c3c2123b42.rlib" 
"C:\\tmp\\freya_app\\target\\debug\\deps\\libnotify-0f9791e7dc8c78e4.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libcrossbeam_channel-2c77f31b3b8ab280.rlib" 
"C:\\tmp\\freya_app\\target\\debug\\deps\\libwalkdir-6ab57145bb2f68d6.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsame_file-139df67a6dd590ba.rlib" "C:\\tm
p\\freya_app\\target\\debug\\deps\\libwinapi_util-f0b1aa456d21a40e.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfiletime-a5c00ae3f237ca0f.rlib" "C:\\tmp\\f
reya_app\\target\\debug\\deps\\libwindows_sys-31fcbd08b3d41856.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwindows_sys-4452638fbbe95dc0.rlib" "C:\\tmp\\fr
eya_app\\target\\debug\\deps\\libinterprocess_docfix-a3ffd868da6e7e6e.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liblibc-786d9fda44373c24.rlib" "C:\\tmp\\fr
eya_app\\target\\debug\\deps\\libblocking-73aaf9949878d924.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libpiper-16d1b52306f7dbf6.rlib" "C:\\tmp\\freya_app\\t
arget\\debug\\deps\\libfastrand-748ff94fe6124d30.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libatomic_waker-03339f6818fbf2a5.rlib" "C:\\tmp\\freya_app\\targ
et\\debug\\deps\\libfutures_lite-6dc480da62312fe0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfutures_io-cdec78f49902a51c.rlib" "C:\\tmp\\freya_app\\targe
t\\debug\\deps\\libasync_task-3833b832540561db.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libasync_channel-aa6bc89ca59d3f9f.rlib" "C:\\tmp\\freya_app\\targe
t\\debug\\deps\\libevent_listener_strategy-3e664622fe75f41c.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libevent_listener-b2ba4000cccc2e5d.rlib" "C:\\tmp\\fr
eya_app\\target\\debug\\deps\\libparking-bf966179a4ce368c.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libconcurrent_queue-4b0d21ac9c407b8c.rlib" "C:\\tmp\\fr
eya_app\\target\\debug\\deps\\libcrossbeam_utils-82aa1b0184e1b859.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libspinning-f1b0c489c33951f2.rlib" "C:\\tmp\\fr
eya_app\\target\\debug\\deps\\libintmap-ad4d62c1e48c04f6.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libwinapi-38fe368ac3c74997.rlib" "C:\\tmp\\freya_app\\ta
rget\\debug\\deps\\libto_method-5a92dc5ba2a38dc9.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdioxus_html-3e7c65837203869d.rlib" "C:\\tmp\\freya_app\\targe
t\\debug\\deps\\libserde_value-231343b9efc833fb.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libordered_float-05b3a6b0249d5b4f.rlib" "C:\\tmp\\freya_app\\targ
et\\debug\\deps\\libenumset-afa714872e6a6661.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libeuclid-ce08e281d1c90837.rlib" "C:\\tmp\\freya_app\\target\\debug\
\deps\\libnum_traits-c7daf85f955a1fcf.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libkeyboard_types-ac03bf336c8c680a.rlib" "C:\\tmp\\freya_app\\target\\debug
\\deps\\libbitflags-8d9ad749a0b7f8e6.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libunicode_segmentation-532a81e24b3c43ff.rlib" "C:\\tmp\\freya_app\\target\\
debug\\deps\\libdioxus_rsx-b98b463dbccc67c6.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libinternment-376e7b8f8c13652b.rlib" "C:\\tmp\\freya_app\\target\\deb
ug\\deps\\libhashbrown-9ce5af9e4c865adf.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libahash-0e31f31fb6193c65.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\
\libzerocopy-36ab41f55e5fbd61.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liballocator_api2-ca02734c1cbca1df.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\
libkrates-5c8d031e2776ae02.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libpetgraph-a0edc003999b1378.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libindexm
ap-31da924570800cb7.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libequivalent-2d2c3725419d79d0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libhashbrown-d
d37d9c542b5f399.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfixedbitset-522d05c130df0a82.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libcfg_expr-d5236
0e865344c7b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libcargo_metadata-1395b38a31d41ebc.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libserde_json-ba5d
630cf90822ef.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libmemchr-ae4285f749528e9d.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libitoa-d123fee896be53be.
rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libryu-1ee4352a388a0bfa.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libthiserror-66732af3fa78295a.rlib" "C:\\
tmp\\freya_app\\target\\debug\\deps\\libcargo_platform-4ca49dd4f09b5b4e.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsemver-752773a70be1a747.rlib" "C:\\tmp
\\freya_app\\target\\debug\\deps\\libcamino-4f9aa1fd832c568b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libsyn-5822f11381f5b973.rlib" "C:\\tmp\\freya_app\\t
arget\\debug\\deps\\libquote-5ba262c866c71de9.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libproc_macro2-ee35304bbf49a1f9.rlib" "C:\\tmp\\freya_app\\target\\
debug\\deps\\libunicode_ident-fc2a92c6b0aa7e2b.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\
lib\\libproc_macro-d4c80a6b68e0570b.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdioxus_hooks-d55d7d3f7b7a3c21.rlib" "C:\\tmp\\freya_app\\target\\debug\\de
ps\\libdioxus_signals-a3f92e250d7639a0.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libdioxus_core-225e598a482bc046.rlib" "C:\\tmp\\freya_app\\target\\debug\\
deps\\libfutures_channel-1ef072d80c0db068.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liblongest_increasing_subsequence-5c2ea3a0a6e7e65f.rlib" "C:\\tmp\\frey
a_app\\target\\debug\\deps\\libtracing-7ddd7e5f8c8e27af.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libtracing_core-e8c576d5eaf9e94c.rlib" "C:\\tmp\\freya_ap
p\\target\\debug\\deps\\libonce_cell-85fbd6a27a5309dc.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libslotmap-a20e3eba856f8dad.rlib" "C:\\tmp\\freya_app\\targ
et\\debug\\deps\\libserde-954022ad0b95e6f4.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libfutures_util-5263b15aec6b4867.rlib" "C:\\tmp\\freya_app\\target\\de
bug\\deps\\libslab-89edb2114cf27178.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libpin_project_lite-7f1a31717efdd12f.rlib" "C:\\tmp\\freya_app\\target\\debug
\\deps\\libfutures_task-eabc2203656004ea.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libpin_utils-c5d26f1d6548b4fd.rlib" "C:\\tmp\\freya_app\\target\\debug\\
deps\\libfutures_core-23fb3442360cf539.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libgenerational_box-114fb5e85f3197fd.rlib" "C:\\tmp\\freya_app\\target\\de
bug\\deps\\libparking_lot-0f67eacc6460e796.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libparking_lot_core-7c1e9e046686b666.rlib" "C:\\tmp\\freya_app\\target
\\debug\\deps\\libwindows_targets-760b8da46f061ed2.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\libcfg_if-2ef90687aa00e8c1.rlib" "C:\\tmp\\freya_app\\target\\
debug\\deps\\libsmallvec-a3eb266dcbdaea31.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\liblock_api-9323462a856f84ff.rlib" "C:\\tmp\\freya_app\\target\\debug\\
deps\\libscopeguard-e141cf6090d826ab.rlib" "C:\\tmp\\freya_app\\target\\debug\\deps\\librustc_hash-b88df0ce1a5fc31d.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\
stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-759718a9bb18a123.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-w
indows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-7da375a7ca1e9a5e.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-ms
vc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-13c5a35fb3626718.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib
\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-67d9d7b318bd750d.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\
x86_64-pc-windows-msvc\\lib\\libhashbrown-1128f34f910afc3a.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-wi
ndows-msvc\\lib\\librustc_std_workspace_alloc-ec2cabfc22cdef7d.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-p
c-windows-msvc\\lib\\libunwind-93dda7487230aeda.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\
\lib\\libcfg_if-814df84e64e9c749.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-
bcbe36736b9f0af2.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_co
re-d08e4e7d05aff086.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-89ef43c30f9b92
8e.rlib" "C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-1426abde5263ac46.r
lib" "opengl32.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "skparagraph.lib" "skshaper.lib" "skunicode.lib" "svg.lib" "skresources.lib" "skia.lib" "skia-bindi
ngs.lib" "usp10.lib" "ole32.lib" "user32.lib" "gdi32.lib" "fontsub.lib" "opengl32.lib" "bcrypt.lib" "advapi32.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "win
dows.0.52.0.lib" "windows.0.48.5.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "windows.lib" "legacy_stdio_definitions.lib" "advapi32.lib" "cfgmgr32.lib" "gdi32
.lib" "kernel32.lib" "msimg32.lib" "opengl32.lib" "shell32.lib" "shlwapi.lib" "user32.lib" "winspool.lib" "windows.0.52.0.lib" "kernel32.lib" "advapi32.lib" "ntd
ll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "kernel32.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-p
c-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\tmp\\freya_app\\target\\debug\\deps\\freya_app.exe" "/OPT:REF,NOICF" "/DEBUG" "/PDBALTPATH:%
_PDB%" "/NATVIS:C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Andy\\.rustup\\tool
chains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Andy\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: skunicode.lib(icu.SkLoadICU.obj) : error LNK2019: unresolved external symbol __std_init_once_link_alternate_names_and_abort referenced in function "bool __cdecl SkLoadICU(void)" (?SkLoadICU@@YA_NXZ)
          skunicode.lib(icu.umutex.obj) : error LNK2001: unresolved external symbol __std_init_once_link_alternate_names_and_abort
          skia.lib(skia.SkSLRasterPipelineBuilder.obj) : error LNK2019: unresolved external symbol __std_max_element_2 referenced in function "public: void __cdecl SkSL::RP::Program::Dumper::dump(class SkWStream *,bool)" (?dump@Dumper@Program@RP@SkSL@@QEAAXPEAVSkWStream@@_N@Z)
          skia.lib(skia.SkSLRasterPipelineBuilder.obj) : error LNK2019: unresolved external symbol __std_max_element_1 referenced in function "public: class std:
:basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl SkSL::RP::Program::Dumper::swizzlePtr<unsigned char>(void const *,class SkSpan<unsigned char>)const " (??$swizzlePtr@E@Dumper@Program@RP@SkSL@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBXV?$SkSpan@E@@@Z)     
          skia.lib(skia.SkSLFindAndDeclareBuiltinFunctions.obj) : error LNK2019: unresolved external symbol __std_find_trivial_8 referenced in function "void __cdecl SkSL::Transform::FindAndDeclareBuiltinFunctions(struct SkSL::Program &)" (?FindAndDeclareBuiltinFunctions@Transform@SkSL@@YAXAEAUProgram@2@@Z)
          skia.lib(skia.SkSLFindAndDeclareBuiltinVariables.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
          skia.lib(skia.SkNWayCanvas.obj) : error LNK2001: unresolved external symbol __std_find_trivial_8
          skia.lib(gpu.GrGLCaps.obj) : error LNK2019: unresolved external symbol __std_find_trivial_4 referenced in function "public: bool __cdecl GrGLCaps::programBinaryFormatIsValid(unsigned int)const " (?programBinaryFormatIsValid@GrGLCaps@@QEBA_NI@Z)
          C:\tmp\freya_app\target\debug\deps\freya_app.exe : fatal error LNK1120: 5 unresolved externals


error: could not compile `freya_app` (bin "freya_app") due to 1 previous error   

@tower120
Copy link
Author

tower120 commented Oct 6, 2024

I solved that problem.

Installing MSVC 2022 build tools is not enough.
"Classic C++" workload MUST be installed as well in Visual Studio Installer.
This is required by skia-safe/rust-skia.

Please do update manual.

@marc2332
Copy link
Owner

marc2332 commented Oct 6, 2024

Classic C++

Hey! I don't see this workflow on my VS Installer, can you send a screenshot of how it looks like ( The workload )

@marc2332 marc2332 added the help wanted Extra attention is needed label Oct 6, 2024
@marc2332 marc2332 self-assigned this Oct 6, 2024
@tower120
Copy link
Author

tower120 commented Oct 6, 2024

Hmm, its called "Desktop development with C++".

sample

@marc2332
Copy link
Owner

marc2332 commented Oct 6, 2024

Hmm, its called "Desktop development with C++".

sample

Isn't that what the book already says in https://book.freyaui.dev/setup.html#windows ? Maybe it needs rephrasing?

[Windows](https://book.freyaui.dev/setup.html#windows)

You will need C++ build tools which you can get through Visual Studio 2022, learn more [here](https://learn.microsoft.com/en-us/windows/dev-environment/rust/setup#install-visual-studio-recommended-or-the-microsoft-c-build-tools).

@tower120
Copy link
Author

tower120 commented Oct 7, 2024

Build tools does not install any workload currently. They only install C++'s toolchains.
"Build tools installer" and "visual studio installer" appears to be not the same thing now.

I don't know what exactly skia needs from that workload, but it does not work without it. (Probably some specific Windows SDK).
Here: https://github.com/rust-skia/rust-skia?tab=readme-ov-file#on-windows . As far as I remember skia build process for Windows target, also requires some workloads (for font rendering?).

@marc2332
Copy link
Owner

marc2332 commented Oct 9, 2024

Build tools does not install any workload currently. They only install C++'s toolchains. "Build tools installer" and "visual studio installer" appears to be not the same thing now.

I don't know what exactly skia needs from that workload, but it does not work without it. (Probably some specific Windows SDK). Here: rust-skia/rust-skia#on-windows . As far as I remember skia build process for Windows target, also requires some workloads (for font rendering?).

I'll try to clarify the docs then! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants