cross-compiling for win32: error: ‘GetUserDefaultLocaleName’ was not declared in this scope
Posted: 01 Apr 2023 12:27
Hi,
I am trying to build VLC 4.0 for a Windows 64 bit system by cross compiling it from Ubuntu 22.04. I am following this doc https://wiki.videolan.org/Win32Compile
I am compiling the contribs manually as the prebuilt libraries are outdated (works for VLC 2.2.x only).
I am facing the following error:
Steps followed to build contribs manually before getting the error:
Any help would be appreciated
I am trying to build VLC 4.0 for a Windows 64 bit system by cross compiling it from Ubuntu 22.04. I am following this doc https://wiki.videolan.org/Win32Compile
I am compiling the contribs manually as the prebuilt libraries are outdated (works for VLC 2.2.x only).
I am facing the following error:
Code: Select all
/home/its-ayush-07/Desktop/vlc/contrib/win32/libaribcaption/src/renderer/font_provider_directwrite.cpp: In function ‘uint32_t aribcaption::GetDWriteLocaleIndex(IDWriteLocalizedStrings*)’:
/home/its-ayush-07/Desktop/vlc/contrib/win32/libaribcaption/src/renderer/font_provider_directwrite.cpp:91:19: error: ‘GetUserDefaultLocaleName’ was not declared in this scope; did you mean ‘GetUserDefaultUILanguage’?
91 | int success = GetUserDefaultLocaleName(locale_name, LOCALE_NAME_MAX_LENGTH);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| GetUserDefaultUILanguage
ninja: build stopped: subcommand failed.
Code: Select all
$ sudo apt-get install subversion yasm cvs cmake ragel autopoint
$ mkdir -p contrib/win32
$ cd contrib/win32
$ ../bootstrap --host=x86_64-w64-mingw32
$ make fetch
$ make