You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fragmented discussions regarding building and usage on Windows took place in #9 and #10. Since pkg-config is a required dependency, yet the official librime releases do not ship a rime.pc file for MSVC builds, additional setup steps are necessary.
I figured it out and added support in my scoop bucket. If you use scoop, you can add my bucket and install librime by
scoop bucket add siku https://github.com/amorphobia/siku
scoop install librime
Then you are ready to build and use pyrime with native MSVC toolchain
# in pyrime dir
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -v .
# or
uv build --wheel
Details
The scoop manifest will do everything described below, but if you prefer not to use scoop, you can setup for yourself.
Create a rime.pc
Put the file in path librime/lib/pkgconfig/rime.pc, where librime is the top directory of librime release.
Thank you. I forgot to mention that MSVC, cmake (+ninja will be better), python, and pkg-config (or pkg-config-lite) are prerequisites. Anyways, people will figure it out eventually.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Background
Fragmented discussions regarding building and usage on Windows took place in #9 and #10. Since pkg-config is a required dependency, yet the official librime releases do not ship a rime.pc file for MSVC builds, additional setup steps are necessary.
I figured it out and added support in my scoop bucket. If you use scoop, you can add my bucket and install librime by
Then you are ready to build and use
pyrimewith native MSVC toolchainDetails
The scoop manifest will do everything described below, but if you prefer not to use scoop, you can setup for yourself.
Create a
rime.pcPut the file in path
librime/lib/pkgconfig/rime.pc, wherelibrimeis the top directory of librime release.An example of file content:
You should change the paths to real ones in your system. Please note that only forward slashes are allowed.
Add paths to environment variables
librime/lib/pkgconfigto env varPKG_CONFIG_PATHlibrimeto env varCMAKE_PREFIX_PATHlibrime/libto env varPATHwhere
librimeis the top directory of librime release.All reactions