KeyCastOW icon indicating copy to clipboard operation
KeyCastOW copied to clipboard

How to Build

Open keithn opened this issue 2 years ago • 3 comments

This isn't really a question, but simply how to do it since a few people have problems.

This is what I did, download the latest Visual Studio (I actually had this preinstalled) and ensure you get the C++ tools.

when opening the project in this repo, let visual studio upgrade to the latest SDK.

Build!

All you need is the output executable, when it saves its settings it will put a ini file next to the executable. If you always want to run it, Then add it to your startup

Main reason I needed to do this is I needed to filter out some keys as it doesn't deal with remapped keys very well, in my case I have remapped CapsLock to Esc using autohotkey. This tool shows that both keys are pressed so I filtered out capslock from being shown.

keithn avatar Jul 02 '23 00:07 keithn

I had trouble building but finally succeeded. I'm gonna share what I did.

  1. Install Visual Studio 2022.
  2. Launch Visual Studio Installer, push modify -> install MSBuild, (latest) Windows 10 SDK, (latest) MSVC v143 - VS2022 C++ x64/x86 build tools.
  3. Open keycastow.vcxproj with text editor and replace v120 with v143.
  4. Add C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin to PATH.

ryoheifujii-os avatar Feb 28 '25 02:02 ryoheifujii-os

'msbuild' is not recognized as an internal or external command, operable program or batch file.

Install Visual Studio 2022 ! wow Hard disk space: Minimum of 850 MB up to 210 GB of available space, depending on features installed; typical installations require 20-50 GB of free space. We recommend installing Windows and Visual Studio on a solid-state drive (SSD) to increase performance.

Is there a trimmed down version of doing this?

Is there a Win64 download for the built version of KeyCastOW?

christoferd avatar Apr 24 '25 14:04 christoferd

'msbuild' is not recognized as an internal or external command,“msbuild”未被识别为内部或外部命令, operable program or batch file.可作的程序或批处理文件。

Install Visual Studio 2022 ! wow安装 Visual Studio 2022 !哇 Hard disk space: Minimum of 850 MB up to 210 GB of available space, depending on features installed; typical installations require 20-50 GB of free space. We recommend installing Windows and Visual Studio on a solid-state drive (SSD) to increase performance.硬盘空间:至少 850 MB 到 210 GB 的可用空间,具体取决于安装的功能;典型安装需要 20-50 GB 的可用空间。我们建议在固态硬盘 (SSD) 上安装 Windows 和 Visual Studio 以提高性能。

Is there a trimmed down version of doing this?有没有一个精简版的做法?

Is there a Win64 download for the built version of KeyCastOW?KeyCastOW 的构建版本是否有 Win64 下载?

You can download the VS2022 build tools. This way you don't have to download Visual Studio 2022, but you still need to check the C++ desktop workload, which requires more than 6G

You will then need to change v120 to v143 on lines 38 and 44 of the keycastow.vcxproj file (MSVC v143 is selected by default for C++ workloads).

Then, press Win + S to search VS the dedicated command prompt or powershell

Image

Then enter the project directory you downloaded

Finally, execute the build command in the README file in this repository, and the build is complete!

Of course, if you want the finished build, you can see my build

Crazy-A2 avatar May 18 '25 00:05 Crazy-A2