lbellonda / qxmledit

QXmlEdit XML editor. Downloads: https://sourceforge.net/projects/qxmledit/files
http://qxmledit.org
Other
164 stars 48 forks source link

Unable to find the library when launching #82

Closed tanguy-launay closed 3 years ago

tanguy-launay commented 3 years ago

I am on Ubuntu 20.04 and after installing qxmledit (I discarded the warnings which were considered as error), I cannot launch it. When I try so I get the following

(base) ➜  qxmledit-0.9.16 /opt/qxmledit/qxmledit                    
/opt/qxmledit/qxmledit: error while loading shared libraries: libQXmlEditWidget-0.9.16.so.0: cannot open shared object file: No such file or directory
(base) ➜  qxmledit-0.9.16 ll /opt/qxmledit/     
total 20M
drwxr-xr-x 2 root root 4,0K juin   1 21:57 include
lrwxrwxrwx 1 root root   36 juin   1 21:57 libQXmlEditSessions-0.9.16.so -> libQXmlEditSessions-0.9.16.so.0.9.16
lrwxrwxrwx 1 root root   36 juin   1 21:57 libQXmlEditSessions-0.9.16.so.0 -> libQXmlEditSessions-0.9.16.so.0.9.16
lrwxrwxrwx 1 root root   36 juin   1 21:57 libQXmlEditSessions-0.9.16.so.0.9 -> libQXmlEditSessions-0.9.16.so.0.9.16
-rwxr-xr-x 1 root root 484K juin   1 21:57 libQXmlEditSessions-0.9.16.so.0.9.16
lrwxrwxrwx 1 root root   34 juin   1 21:57 libQXmlEditWidget-0.9.16.so -> libQXmlEditWidget-0.9.16.so.0.9.16
lrwxrwxrwx 1 root root   34 juin   1 21:57 libQXmlEditWidget-0.9.16.so.0 -> libQXmlEditWidget-0.9.16.so.0.9.16
lrwxrwxrwx 1 root root   34 juin   1 21:57 libQXmlEditWidget-0.9.16.so.0.9 -> libQXmlEditWidget-0.9.16.so.0.9.16
-rwxr-xr-x 1 root root 6,4M juin   1 21:57 libQXmlEditWidget-0.9.16.so.0.9.16
-rwxr-xr-x 1 root root 2,6M juin   1 21:57 qxmledit
-rw-rw-r-- 1 root root 1,4K sept. 12  2020 QXmlEdit.appdata.xml
-rw-rw-r-- 1 root root  458 sept. 12  2020 QXmlEdit.desktop
-rw-rw-r-- 1 root root 9,9M sept. 12  2020 QXmlEdit_manual.pdf
-rw-rw-r-- 1 root root  753 sept. 12  2020 sample.style
drwxr-xr-x 2 root root 4,0K juin   1 21:57 snippets

I do not understand why the library is not found when it is clearly in the same folder. When I do it from the build folder (the one inside the qxmledit-0.9.16) I get the same issue.

Any ideas? 4

lbellonda commented 3 years ago

Hello, probably the issue is due to dynamic libraries path. For security reasons the path must be authorized. Refer to the wiki page Running-on-Linux in this repository. Be sure that the libraries are installed in a folder that cannot be modified by normal users.

Best regards