-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix build configuration for MSVC #13
Conversation
Thanks for your great PR! As I posted in r9y9/open_jtalk#3. we'd need some more efforts to get this PR merged. Also, it would be great if we can enable CI for this windows build (not sure If it's possible though; Maybe https://github.com/marketplace/actions/setup-msbuild helps?). |
Thank you for your reply. I see. 👀 |
I have made CI configurations. The merge procedure is as follows:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
遅くなってすみません。コメントしました。
レビューありがとうございます! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます。問題ないです!CI が通り次第、マージします。
レビュー&マージ、大変ありがとうございました! |
I built failed with Visual Studio 2022 "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_CONFIG_H -DDIC_VERSION=102 -DMECAB_DEFAULT_RC="dummy" -DPACKAGE="open_jtalk" -DVERSION="1.10" -DCHARSET_UTF_8 -IC:\Users\ADMINI~1\AppData\Local\Temp\pip-build-env-1ft3rqpo\overlay\Lib\site-packages\numpy\core\include -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\jpcommon -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\mecab/src -IH:\secrectFG\pyopenjtalk_msvc\lib\open_jtalk\src\mecab2njd -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\njd -IH:\secrectFG\pyopenjtalk_msvc\lib\open_jtalk\src\njd2jpcommon -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\njd_set_accent_phrase -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\njd_set_accent_type -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\njd_set_digit -IH:\secrectFG\pyopenjtalk_msvc\lib\open_jtalk\src\njd_set_long_vowel -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\njd_set_pronunciation -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\njd_set_unvoiced_vowel -IH:\pyopenjtalk_msvc\lib\open_jtalk\src\text2mecab -IC:\Users\Administrator.conda\envs\py37tf2\include -IC:\Users\Administrator.conda\envs\py37tf2\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tplib\open_jtalk\src\mecab/src\utils.cpp /Fobuild\temp.win-amd64-cpython-37\Release\lib\open_jtalk\src\mecab/src\utils.obj /source-charset:utf-8 /execution-charset:utf-8 note: This error originates from a subprocess, and is likely not a problem with pip. My environment: Windows 10 (x64) |
In Visual Studio 2022 Developer Command Prompt v17.3.1 (Windows 10 x64)
CMake will generate
|
Thank you very, very much for solving my problem |
* Workaround the installation issue r9y9#27 Not sure about the exact root cause, but the error messages suggested that there's issues with setuptools/pip. I can confirm we can fix the issue by changing the build-time setuptools requirement to <v60.0. At least v59.8.0 should work. https://github.com/pypa/setuptools/releases/tag/v59.8.0 * parepare for v0.1.6 * Start a new dev cycle * Update hts_engine_API * Update open_jtalk https://github.com/r9y9/open_jtalk/releases/tag/v1.11.2 * Update version to v0.2.0 * [ci skip] update changelog * Update pyproject.toml Co-authored-by: Ryuichi Yamamoto <[email protected]>
This PR will enable to build on Windows MSVC.
My environment:
See also related PR