|
HikoGUI
A low latency retained GUI
|
HikoGUI will use the dependencies installed on the system, but it can use vcpkg to install the dependencies if available.
Run the following commands from the "Developer Command Prompt" to install vcpkg:
You should get the following message:
If you do not install vcpkg in C:\tools\vcpkg then you will need to edit CMakePresets.json.
Clone the HikoGUI repository on your machine:
You can then open the hikogui directory as a directory-based project inside visual studio.
To build:
x64-vcpkg-MSVC-Debug from the project Configuration pull down menu.Project / Generate Cache menu optionBuild / Build All menu optionhikogui_demo.exe from the Select Startup Item... pull-down menu.Build Only in the Error List window to ignore IntelliSense false positives.Debug / Start DebuggingNote: A "Window Security Alert" may show up, this is due to the RenderDoc API creating a network server so that the RenderDoc application can remotely communicate to the hikogui_demo application.
Other configurations that are possible to build:
x64-vcpkg-MSVC-Debug Make a debug buildx64-vcpkg-MSVC-ReleaseWithDebugInfo Make an fully optimized buildx64-vcpkg-MSVC-Release Make a fully optimized build and build all examples and demos.x64-vcpkg-MSVC-Analysis Build with static-analysis.Common build problems:
Project / Delete Cache and Reconfigure menu option.hikogui\.vs\v17\TestStore\0\*.testlog.When a HikoGUI application hits a break-point while not running with a debugger the Windows 10 CRT will try to start the just-in-time debugger as a fallback.
A common problem in Windows 10 are the missing registry entries for the JIT-debugger to work.
The fix is to add a DWORD Value of Auto, with Value data of 1, to the following registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug - DWORD "Auto" : Value (1)HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug - DWORD "Auto" : Value (1)Note due to bugs in IntelliSense you will get JIT-debugger prompts for Visual Studio itself. This does allow you to create crash-dumps for Visual Studio and its components to report bugs with Microsoft.