https://bugs.kde.org/show_bug.cgi?id=426264
--- Comment #1 from Hannah von Reth <vonr...@kde.org> --- (In reply to mrbus from comment #0) > Created attachment 131457 [details] > 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`. Please try to set https://invent.kde.org/packaging/craft/-/blob/master/CraftSettings.ini.template#L116 to C:\_ > 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). Please don't do that, craft provides opencv, if it fails to find that, check why it fails, but pls never try mixing with external 3rdparty builds. > 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.