Re: Building digikam on Windows
Gilles Caulier <[email protected]> Tue, 26 Dec 2023 22:29:32 +0100
| Newsgroups | gmane.comp.kde.digikam.devel |
|---|---|
| Message-ID | <CAHFG6sG1XJYNqD=On__rqFkCz1fDHEXO8xCGiDoaDHHwUsv2uw@mail.gmail.com> |
Hi. No, Do not install VCPKG included in MSVC. Install VCPK separately as explained in the README file : https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/vcpkg/README.md?ref_type=heads With the stand alone VCPKG from github, you have a fine control to update packages using git CLI. Best Gilles Caulier Le mar. 26 déc. 2023 à 22:00, Nino <[email protected]> a écrit : > > Hi folks, > > Where can I find documentation on how to build Digikam for Windows? > > What are the prerequisites? > I already installed Qt6 and Visual Studio Community Edition, but bootstrap.vcpkg fails with: > > CMake Error: CMake was unable to find a build program corresponding to "NMake Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. > CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage > CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage > > I think the problem is b/c the VCPKG_DIR is wrong > VCPKG_DIR="/c/vcpkg" > I changed it to > VCPKG_DIR="/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Community/VC/vcpkg" > but now CMake complains: > CMake Warning: > Ignoring extra path from command line: > "Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake" > > So it seems it cannot handle the folder names containing spaces. > > Any idea how to workaround this? > > I also tried creating a Windows batch file (bootstrap.vcpkg.bat) to avoid Windows vs. Unix filename mess, but it did not work either (CMake failed to compile a simple program). > > Any help would be highly appreciated.