[Question] VS2019 Build : error LNK2019: unresolved external symbol "int __cdecl qInitResources_fonts(void)"
After following Build instructions for Visual Studio 2019 for 64 bit, project loaded into VS 2019 and Build project resulted the following error:
Build started...
1>------ Build started: Project: td_scheme_scheme, Configuration: Debug x64 ------
2>------ Build started: Project: Telegram_midl, Configuration: Debug x64 ------
3>------ Build started: Project: lib_ui_emoji, Configuration: Debug x64 ------
4>------ Build started: Project: td_lang_lang, Configuration: Debug x64 ------
5>------ Build started: Project: lib_ui_palette, Configuration: Debug x64 ------
6>------ Build started: Project: lib_ui_styles, Configuration: Debug x64 ------
7>------ Build started: Project: td_ui_styles, Configuration: Debug x64 ------
8>------ Build started: Project: td_ui_numbers, Configuration: Debug x64 ------
9>------ Build started: Project: lib_ui_autogen, Configuration: Debug x64 ------
9>Automatic MOC for target lib_ui
10>------ Build started: Project: Telegram_autogen, Configuration: Debug x64 ------
10>Automatic MOC for target Telegram
11>------ Build started: Project: Telegram, Configuration: Debug x64 ------
11> Creating library C:/TBuild/tdesktop/out/Telegram/Debug/Telegram.lib and object C:/TBuild/tdesktop/out/Telegram/Debug/Telegram.exp
11>lib_ui.lib(style_core_font.obj) : error LNK2019: unresolved external symbol "int __cdecl qInitResources_fonts(void)" (?qInitResources_fonts@@YAHXZ) referenced in function "void __cdecl style_InitFontsResource(void)" (?style_InitFontsResource@@YAXXZ)
11>C:\TBuild\tdesktop\out\Debug\Telegram.exe : fatal error LNK1120: 1 unresolved externals
11>Done building project "Telegram.vcxproj" -- FAILED.
========== Build: 10 succeeded, 1 failed, 32 up-to-date, 0 skipped ==========
I did also run into error with %BuildPath%\tdesktop\out\Telegram\lib_ui\lib_ui_autogen\HOLFJYQ6Y4\qrc_fonts.cpp. This autogen file creation stopped prematurely. I had to manually add "};" to the end of the file so it can be compiled.
TIA
@hpxiong I guess except }; there should’ve been a mentioned function inside.
@hpxiong I guess except }; there should’ve been a mentioned function inside.
you are right, no functions what so ever was generated. I'm not even sure the font's byte array is complete or not.
is there a way I can manually triggered this specific build again? I really hope I don't need to repeat the long build process the 3rd time...
@hpxiong Touch fonts.qrc
@hpxiong Touch fonts.qrc
I'm pretty new to this. Can you be a little bit more specific?
Hey there!
This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.
Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.
Thanks!