Error compiling RT in Win11 with UCRT64

Compiling RT (dev) with Win11/Mingw64 works fine. But Mingw64 seems to be depricated. During compiling with ucrt64 I get the error message
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:290 (message):
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:654 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindJPEG.cmake:139 (find_package_handle_standard_args)
cmake/Dependencies.cmake:17 (find_package)
CMakeLists.txt:442 (rt_setup_dependencies)

I am not a IT-specalist and don’t know how to circumvent this problem. Any hint is very much appreciated.

Heinrich

The /usr prefix means you’re not actually compiling in the UCRT64 environment, and something might be wrong w/ your setup.

If I’m in the ucrt-shell I’m not in ucrt?
And how can I change my setup?

As you can see my knowledge is rather low. So help is very much appreciated.

Heinrich

What I found is the guide is NOT 100% accurate.
The guide says we need to install the supportive packages using this command

pacman -S gcc gdb make pkg-config cmake ninja 

This actually installs the non-ucrt version of them. What you want to install is the ucrt version using this command

pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gdb mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-cmake

You don’t need to explicitly install pkg-config and ninja, since they’re installed automatically with cmake.

1 Like

I believe we also need to install the ucrt version of git and autotools