msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.27k stars 1.22k forks source link

Krita doesn't actually work with some resource files missing in the package #17612

Open wszqkzqk opened 1 year ago

wszqkzqk commented 1 year ago

Description / Steps to reproduce the issue

Run krita, and it will show:

You don't have any resource bundles enabled.
There are no brush presets available. Please enable a bundle that has presets before continuing.

To ignore these warnings to simply draw a picture will cause the crash of the program.

Expected behavior

No missing resource files and works normally.

Actual behavior

Continously shows errors.

Verification

Windows Version

MINGW64_NT-10.0-22621

MINGW environments affected

Are you willing to submit a PR?

I'm not familiar with KDE and Qt toolchain

wszqkzqk commented 1 year ago

image

raedrizqie commented 1 year ago

Arch adds this when configuring cmake: -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON

wszqkzqk commented 1 year ago

Arch adds this when configuring cmake: -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON

OK, I'll have a test.

wszqkzqk commented 1 year ago

Arch adds this when configuring cmake: -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON

It doesn't work.

jgbabyn commented 1 year ago

I tried this on CLANGARM64 and ran into the same issue. But once I imported the krita 4 bundle from the source files it seems happy? Didn't test too extensively though. I think maybe the package as written doesn't import the bundles into the %APPDATA%\krita\ location it expects?

Biswa96 commented 1 year ago

But once I imported the krita 4 bundle from the source files it seems happy?

Thank you for looking into the issue. Could you provide the full path of those files?

jgbabyn commented 1 year ago

After I clicked OK on the error message shown in the screenshot Krita asked me to import a bundle. I loaded ".\mingw-w64-krita\src\krita-5.1.5\krita\data\bundles\Krita_4_Default_Resources.bundle" where ."\mingw-w64-krita" is the folder I built the package in. I think the standard Krita installer might load all the bundles in the bundles folder however.

Biswa96 commented 1 year ago

Can anyone check if running krita with this command fixes the issue krita --resource-location $MINGW_PREFIX/bin/data ?

jgbabyn commented 1 year ago

Yes that works, I tested it after removing the %APPDATA%\krita folder which recreates the original error. Specifying the resource location as $MINGW_PREFIX/bin/data works.

Biswa96 commented 1 year ago

It seems that changing the resource location with --resource-location option also writes some user generated files in $MINGW_PREFIX/bin/data. A different approach would be needed.

Kreijstal commented 1 month ago

Krita can't be used since it expects brush bundles otherwise it doesn't work. So it seems I got the same error