I’m currently getting to know the Krita source code, by writing a “broad edge calligraphy pen” style brush engine, and wanted to use QtCreator to edit the layout of the brush settings menu. But can’t get it running on my own.
To get started, I followed the guide for Building Krita with Docker on Linux, but I used the Fedora distribution instead of Ubuntu, because had no experience with Linux and a friend offered me help with setting that one up. Otherwise I followed the instructions as given and Krita compiles without problems.
To get QtCreator running, I looked at the section Extra developer tools, which says that running “bootstrap-deps.sh” should have fetched the prebuilt QtCreator, but as far as I could tell it didn’t. I thought I ran that script as I followed the instructions, but in case I didn’t, I downloaded the tarball, copied it into the krita-auto-1 container and extracted it there into ~/qtcreator/. Now when I launch ./bin/qtcreator, I get the error message error while loading shared libraries: libicuuc.so.66: cannot open shared object file: No such file or directory.
Is that something easily remedied? Or should I start over from scratch with the building guide? I worry, that the guide just doesn’t work for Fedora and I need to set up Ubuntu on my laptop instead.
There’s no need of installing a different linux distro, the error you’re getting is inside the container which will be identical on any distro. I think you’re missing a package, you should try installing libicu-dev and probably libicu in the container. You can do that by running ./bin/sudoenter in the krita-auto-1 directory, which should give you a root shell where you can run any apt commands you need.
It’s a big relieve that that the distro isn’t the issue!
I have now run apt through ./bin/sudoenter. The command apt search libicu shows me that libicu-dev and libicu70 is already installed, but I don’t see one that’s just libicu. Running apt install libicu-dev similarly tells me that it’s already the newest version, while apt install libicu says it’s unable to locate a package by that name. Could the problem be that the QtCreator tarbal of the build guide is an older version, which also wants an older version of libicu?
I tried to follow those instructions to append something to the apt sources file, but just couldn’t figure out how to do that. However, I found another way to make QtCreator make eventually!
I followed the other link from the Extra developer tools section to download the latest official release. That alone then gave me a lot more unresolved dependencies than before, but running apt install qtcreator then easiliy resolved all those dependencies. And now I have the IDE successfully running on the Krita project!
Either way, thank you very much! I couldn’t have figured this out without you pointing me to ./bin/sudoenter to run apt to resolve the dependencies. You where a great help to me!