Open clinthidinger opened 1 week ago
Maybe @tdcosta100 knows how to resolve this
I need to check the vcpkg
repository. I updated it some days ago, but it was reversed by someone by mistake. Could you go to vcpkg
directory:
cd platform\windows\vendor\vcpkg
And then do the commands:
git fetch --all
git checkout 2024.09.30
Then try to build again. If it works, the problem is the vcpkg
version.
MINGW64 ~/Documents/code/maplibre_test/maplibre-native/platform/windows/vendor/vcpkg (main) $ git checkout 2024.09.30 error: pathspec '2024.09.30' did not match any file(s) known to git
I did the fetch. Am I missing a step?
No, my instruction was wrong, sorry. Please try again with this:
git checkout tags/2024.09.30
Should be fixed in main now: https://github.com/maplibre/maplibre-native/pull/2966
Thanks!
@tdcosta100 , I was able to checkout tags/2024.09.30 under platform/windows/vendor/vcpkg. When I ran the build, I got the same error.
Okay, so the problem is elsewhere. Are you using MinGW to build the project?
Describe the bug Windows CMake build with Visual Studio fails with unresolved external symbol errors for UnicodeString:
To Reproduce Steps to reproduce the behavior:
Expected behavior A successful build.
Explanation UnicodeString::length() is defined here: https://github.com/maplibre/maplibre-native/blob/main/vendor/icu/include/unicode/unistr.h#L3906
unistr.h is being included in univchar.h here: https://github.com/maplibre/maplibre-native/blob/main/vendor/icu/src/uinvchar.h#L27
I have not looked into a proper fix.
I hacked the problem by commenting out uprv_isInvariantUnicodeString() in maplibre-native/vendor/icu/src/uinvchar.h since it is not used. It successfully built after I did that.
Platform information (please complete the following information):
MBGL_USE_BUILTIN_ICU was not explicitly set.