Krita Appimage is missing a library?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

Krita Appimage is missing a library?

#1 Post by MrAccident »

(edit: the solution is: to open Terminal in the folder with .appimage file and:)

Code: Select all

env LD_LIBRARY_PATH=/tmp/  ./krita-4.2.9-x86_64.appimage
Bionic-Pup-64
https://docs.krita.org/en/user_manual/g ... #appimages
This is the message I get, when I try to launch it:

Code: Select all

root# chmod a+x krita-4.2.9-x86_64.appimage
root# ./krita-4.2.9-x86_64.appimage
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by ./krita-4.2.9-x86_64.appimage)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaui.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5Crash.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaimage.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritawidgetutils.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaglobal.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5I18n.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaimpex.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritacolor.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritalibbrush.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritawidgets.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5Completion.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaflake.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritapsd.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritapigment.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritacommand.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritametadata.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5ItemViews.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaodf.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritastore.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5ConfigGui.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5GuiAddons.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5WidgetsAddons.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaversion.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritaplugin.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5CoreAddons.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5ConfigCore.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5WindowSystem.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libkritacolord.so.18)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libKF5Archive.so.5)
./krita-4.2.9-x86_64.appimage: /usr/lib64/libQt5Core.so.5: version `Qt_5.12' not found (required by /initrd/mnt/tmpfs/tmp/.mount_krita-gvJOW5/usr/bin/../lib/libquazip5.so.1)
root# 
Last edited by MrAccident on Wed 03 Jun 2020, 20:06, edited 1 time in total.

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#2 Post by fabrice_035 »

no problem here
version 3.3.3 https://krita.org/en/item/krita-3-3-3/

after extract appimage "archive" i found libQT5Core.so.5

(the program starts but it crashes with some functions, to be tested)

Image
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#3 Post by MrAccident »

@fabrice_035 - now I see that it says in the installation page:
The latest version of Krita available in Debian is 3.1.1. To install Krita type the following line in terminal:
Maybe I shouldn't've download this version - krita-4.2.9-x86_64?

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#4 Post by fabrice_035 »

there is a solution :
1) download and extract version 3.3.3
(in my example, extract filename is krita-3.3.3-x86_64.appimage.gzip.extrait)
2) download last version

Start with

Code: Select all

cd /root/download

Code: Select all

env LD_LIBRARY_PATH=/root/download/krita-3.3.3-x86_64.appimage.gzip.extrait/ ./krita-4.2.9-x86_64.appimage 
Tested ok.
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#5 Post by Mike Walsh »

@ MrAccident:-

I'll add my two-penn'orth to this one, 'cos I use Krita occasionally myself.....and very much like the whole AppImage 'concept'.

I've been using the Krita 3.1.3 AppImage for a while now; in both Bionicpup64 and Xenialpup64, it just works, OOTB. I, too, have found that none of the 4-series versions will even fire-up in Puppy. For some reason, they always report that "xdg", although present, correct, and properly set-up, CANNOT be found. Even though xdg is staring it in the face, it just doesn't "see" it....

I can only suppose that this must be a function of the way it was compiled by the KDE folks, Krita being one of their projects.

Nonetheless, I also find that 3.3.3 fires-up fine in both 64-bit Pups (thanks for the info on that one, Fabrice!) You can get both of these from the following, direct links:-

3.1.3 - https://download.kde.org/Attic/krita/3. ... 4.appimage

3.3.3 - https://download.kde.org/Attic/krita/3. ... 4.appimage

Download 'em, stick 'em anywhere you like, Make 'em executable, click on 'em to launch. Easy-peasy. ("The Attic" is the KDE Project's name for the location where they keep all their old versions, for all platforms).

Hope that helps. Enjoy them, 'cos I do.


Mike. :wink:

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#6 Post by OscarTalks »

I don't know anything about Krita or if this is working as it should, but here it is started and running in BionicPup64

I saw something similar with the Linphone appimage. The Qt5 libs are present in the appimage but are not found because the Qt5 libs in /usr/lib are found first, BUT these are too old so the app complains that the required version is not found.

As a test, move the libs out of the way eg:-
mv /usr/lib/libQt5* /usr/lib/qt5
The Krita appimage then starts
But you have then lost the Qt5 libs for all the other programs that need them
To restore, move the libs back
mv /usr/lib/qt5/libQt5* /usr/lib
Maybe there is some sort of wrapper script solution that someone can think of?
Attachments
krita429bionic.jpg
Move system Qt5 libs out of LD_LIBRARY_PATH and it starts
(68.84 KiB) Downloaded 98 times
Oscar in England
Image

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#7 Post by Mike Walsh »

@ Oscar:-

Hi, mate. Staying 'safe'?

Yes, this business with the Qt5 libs seems to be endemic to many of the more modern AppImages. In theory, the things are supposed to create their own, 'working' directory in /tmp for the duration, and to only look there - and nowhere else - for their requirements.

In practice, of course, they seem to insist on first looking for system-installed versions. You may well be thinking along the right lines with the idea of a 'wrapper-script'; what's required is some means of making the system versions "invisible" to the AppImage, so it's forced to look for, and use its own supplied versions instead.

However, I'm not too sure how to do this. I think it would be easy enough to accomplish if you've loaded a Qt5 SFS package.....simply 'unload' it for the duration. If, however, you've done what I ended up doing, and installing every single required Qt5 module from the PPM (because the SFS versions simply weren't new enough), then you're kinda stuffed, because these are then permanently installed.....

Perhaps it might be as simple as re-naming the qt5 directory in /opt to something like "qt5.bak".....so the AppImage then wouldn't "see" it? What d'you reckon? Or does the ".bak" trick only work with individual files?


Mike. :wink:

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#8 Post by fabrice_035 »

After read thread, new way, working too, it's the only thing to do, look:

Code: Select all

root# env LD_LIBRARY_PATH=/tmp/  ./krita-4.2.9-x86_64.appimage 
:shock:
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#9 Post by MrAccident »

@fabrice_035 - from the basic Terminal?

Code: Select all

root# root# env LD_LIBRARY_PATH=/tmp/  ./krita-4.2.9-x86_64.appimage 
bash: root#: command not found
root#

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

His "root shebang" is YOUR terminal. You execute:

Code: Select all

env LD_LIBRARY_PATH=/tmp/  ./krita-4.2.9-x86_64.appimage
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#11 Post by MrAccident »

@Semme -

Code: Select all

root# env LD_LIBRARY_PATH=/tmp/  ./krita-4.2.9-x86_64.appimage
env: can't execute './krita-4.2.9-x86_64.appimage': No such file or directory
root#
Maybe the issue is - that the file is in - /initrd/mnt/dev_save/krita-4.2.9-x86_64.appimage ?

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#12 Post by fabrice_035 »

@MrAccident,
Are you sure you open the terminal in the folder where the program is found?
the mistake you're encountering seems to prove that it isn't.

Code: Select all

root# 
root# cd /root/Téléchargements/
root# pwd
/root/Téléchargements
root# ls *.appimage
krita-4.2.9-x86_64.appimage
root# env LD_LIBRARY_PATH=/tmp/ ./krita-4.2.9-x86_64.appimage 
good luck

edit : replace "Téléchargements" by your folder files download :wink:
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#13 Post by Semme »

For future reference Guy, and for executables not on the system path ($PATH in a terminal spells it out), you simply rt-clk in whichever directory has the file you wanna run and "Window" >> "Terminal Here," then run "./your_exec"
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#14 Post by MrAccident »

Yeah, I launched the basic Terminal, instead of in the folder.
The program started - with Semme's version. Here's the output:

Code: Select all

root# env LD_LIBRARY_PATH=/tmp/  ./krita-4.2.9-x86_64.appimage
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/initrd/mnt/tmpfs/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/initrd/mnt/tmpfs/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/initrd/mnt/tmpfs/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/initrd/mnt/tmpfs/tmp/runtime-root'
QObject::startTimer: Timers cannot have negative intervals
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/lib/krita-python-libs/krita added to PYTHONPATH
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_project_manager_docker.py:718: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if index.column() is 0:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_metadata_dialog.py:483: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if r is 0:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_metadata_dialog.py:617: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if config["readingDirection"] is "leftToRight":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:55: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 0:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:60: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 1:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:67: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 2:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_exporter.py:72: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 3:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_Comic_Rack_XML_Exporter.py:107: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if str(authorDict["role"]).lower() is "cover artist":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_Comic_Rack_XML_Exporter.py:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif str(authorDict["role"]).lower() is "assistant editor":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_Comic_Rack_XML_Exporter.py:141: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_CoMet_XML_Exporter.py:115: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if str(authorDict["role"]).lower() is "cover artist":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_CoMet_XML_Exporter.py:117: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif str(authorDict["role"]).lower() is "assistant editor":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_CoMet_XML_Exporter.py:143: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_ACBF_XML_Exporter.py:276: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py:526: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if configDictionary["readingDirection"] is "rightToLeft":
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:90: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 0:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:92: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 1:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:94: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 2:
/initrd/mnt/tmpfs/tmp/.mount_krita-i8p236/usr/share/krita/pykrita/comics_project_management_tools/comics_export_dialog.py:96: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if method is 3:
The program seems to question some things. Is this fine to use from now?

User avatar
fabrice_035
Posts: 765
Joined: Mon 28 Apr 2014, 17:54
Location: Bretagne / France

#15 Post by fabrice_035 »

the easiest way is to try it.
Bionicpup64-8.0 _ Kernel 5.4.27-64oz _ Asus Rog GL752

User avatar
MrAccident
Posts: 361
Joined: Mon 31 Mar 2014, 20:53

#16 Post by MrAccident »

So far seems to work. I'll add the solution the my first post.
Thank you all.

Post Reply