https://bugs.kde.org/show_bug.cgi?id=426264
Bug ID: 426264 Summary: Cannot build digikam using Craft on Windows 10: too long command lines Product: Craft Version: unspecified Platform: Microsoft Windows OS: Microsoft Windows Status: REPORTED Severity: normal Priority: NOR Component: Core Assignee: vonr...@kde.org Reporter: mr...@mail.ru CC: kde-windows@kde.org Target Milestone: --- Created attachment 131457 --> https://bugs.kde.org/attachment.cgi?id=131457&action=edit Craft output SUMMARY Cannot build `digikam` using Craft on Windows 10: too long command lines. I tried to build it with different settings of Craft (CraftRoot/etc/CraftSettings.ini). Set `UseNinja` to `False` or `True`, set `MakeProgram` to `jom` or `nmake`, in any case the Craft output is the same (see attachment). (This is not the whole output, but we can see that command line of moc.exe is longer than 32767 characters which is command line length limit of Windows). Then I tried to shorten command lines by installing Craft to shorter directory, `C:\C` instead of `C:\CraftRoot`. Command line becomes shorter by about 3800 characters but still exceeds the limit. With UseNinja = True, MakeProgram = jom, I get: `ninja: fatal: CreateProcess: The parameter is incorrect (is the command line too long?)` and with other settings I get the error mentioned in attachment. Is there a way to build digikam for Windows using Craft... or at least some other way? Can I shorten command line even more? STEPS TO REPRODUCE 1. Install Craft to C:\C 2. Start Craft and execute `craft digikam >output.txt` 3. You may receive an error related to opencv (another issue?) like "ninja: error: 'opencv_imgcodecs-NOTFOUND'". It can be worked around: 3a. Download opencv 3.3.0 from sourceforge. 3b. Add environment variable `OpenCV_DIR` and set it's value to path-to-opencv\build\x64\vc14\lib (path may differ; use the folder that contains OpenCVConfig.cmake file). 3c. Restart Craft. OBSERVED RESULT Shown in attachment EXPECTED RESULT `digikam` successfully built SOFTWARE/OS VERSIONS Windows: 10 ADDITIONAL INFORMATION I'm not sure should I report this issue to Craft or to digikam. -- You are receiving this mail because: You are on the CC list for the bug.