-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[libflac] Build error on x64-windows #43176
Comments
Duplicate of issue #42804, please try the solution #42804 (comment):
|
Thank you. But I found the comment you show. Before I made my issue, I removed all files in $VCPKG_ROOT folder, and re-ran from "git clone" (of course ./bootstrap-vcpkg.bat too)... |
Package: libflac[core,stack-protector]:x64-windows@1.4.3#2 Host Environment
To Reproduce
Failure logs
D:\vcpkg\buildtrees\libflac\extract-err.log
Additional context vcpkg.json
|
Hello! I'm having a same issue as yours while installing ktx library. The source of problem is that Your error message says:
You can modify the command string to produce some verbose log messages:
Then the output is following:
It seems right after extracting Yes! In CMake source static int
archive_wstring_append_from_mbs_in_codepage(struct archive_wstring *dest,
const char *s, size_t length, struct archive_string_conv *sc)
{
...
// In some systems `sc` is NULL
if (sc != NULL)
from_cp = sc->from_cp;
else
// My system locale is Korean so this becomes 949, meaning CP949 text encoding
from_cp = get_current_codepage();
if (from_cp == CP_C_LOCALE) {
...
} else if (sc != NULL &&
...
} else if (sc != NULL && (sc->flag & SCONV_FROM_UTF16)) {
...
} else {
...
// This fails because `from_cp` is CP949.
count = MultiByteToWideChar(from_cp,
mbflag, s, (int)length, dest->s + dest->length,
(int)(dest->buffer_length >> 1) -1);
if (count == 0 &&
GetLastError() == ERROR_INSUFFICIENT_BUFFER) {
/* Expand the WCS buffer. */
buffsize = dest->buffer_length << 1;
continue;
}
if (count == 0 && length != 0)
ret = -1;
break;
} while (1);
}
dest->length += count;
dest->s[dest->length] = L'\0';
return (ret);
} This function determines source text encoding and stores it in variable
I forced to use UTF-8 by setting
I tested it one my home computer, that system locale's been set to US, and UI language's been English. Then I changed the computers system locale and UI language to Korean ones. I need to investigate further and find out the exact condition in which Or you may clone CMake source code, modify the specific function, build, and use the exe... |
I tried to revert CMake from ver.3.31.4 to 3.30.5, and I temporally solved this issue. |
Package: libflac[core,stack-protector]:x64-windows@1.4.3#2
Host Environment
vcpkg-scripts version: a3a2cda 2025-01-08 (8 hours ago)
To Reproduce
vcpkg install
Failure logs
D:\vcpkg\buildtrees\libflac\extract-err.log
Additional context
vcpkg.json
The text was updated successfully, but these errors were encountered: