This topic has been deleted. Only users with topic management privileges can see it.
Hi everyone,
error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory.How to install the library..Please help me.
Have you got this ptoblem on install your application in another machine?
Hi,
Did you install Qt 4 on your target computer ?
hi sir,
No i d’t install qt in target computer, why because i need to check the exe file in target pc without Qt i need to run my exe file .In One pc i have qt and written the sample application that exec file need to be run in target machine without qt . Please help me sir..
You need to ship run time with your binary.
On terminal, execute ldd yourexefilepathonlinux. It will show you the dependencies needs to ship on target machine.
sorry sir..am unable to get u…
If you want to run your executable on a another computer without Qt installed (I don’t mean the complete SDK just the libraries) you have to provide the needed libraries yourself.
It’s explained «here»:http://qt-project.org/doc/qt-4.8/deployment-x11.html#creating-the-application-package
However, depending on your target computer, you should simply install the distribution provided Qt
Thank you sir,
what commands are needed to install libQtgui.so.4.Please help me
That all depends on the distribution you are using
i d’t get u sir..please tel me clearly
You are using linux, so you are using a distribution like e.g. Ubuntu, Debian, Gentoo etc. Which one is it ?
Hi sir..,
linux opensuse.
YaST is your friend then
Hi sir,
Please help on ,How to install only qt libraries in target system.
Run YaST on your target and search for the Qt libraries
Thank u sir,, but if i copy all libraries to target it is showing same error that libqtGui.so.4 is not found.Please help me.
Wait, what is your target ?
Gdmrd sir,
My target and host is linux opensuse,i instaled qt in host machine in that i written a sample programe ,that exe must run in my target machine without insatling qt.when i run exe it is asking libQtGui.so.4 is not found.Please help to quit from this error.
Can you explain why you can’t install the libs on your target ?
hi sir,
i just added the liraries in the target exe folder.but also geting get
Problem: When I run a program, I get the following: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory. So I figured out I need to install qt-x11. But installing qt-x11 via yum runs into problems (see below for screen shots). Yum suggests adding “—skip-broken” or trying rpm, both don’t install it. My guess is yum sees newer versions of libmng.so.1 and doesn’t know how to handle that.
Background:: I am running RH 7.9 on an isolated machine. No internet connection or local network connection. The RPM repository is local and from the RH 7.9 install ISO disk. The ISO was created on 9/2/21.
What I see on my screen:
[root@localhost ~]# yum install qt-x11
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
Resolving Dependencies
—> Running transaction check
—> Package qt-x11.x86_64 1:4.8.7-8.el7 will be installed
—> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.8.7-8.el7.x86_64
—> Finished Dependency Resolution
Error: Package: 1:qt-x11-4.8.7-8.el7.x86_64 (local)
Requires: libmng.so.1()(64bit)
Available: libmng-1.0.10-14.el7.x86_64 (local)
libmng.so.1()(64bit)
Installed: libmng-2.0.3-7.el8.x86_64 (@/libmng-2.0.3-7.el8.x86_64)
~libmng.so.2()(64bit)
You could try using —skip-broken to work around the problem
You could try running: rpm -Va —nofiles –nodigest
Then I tired using –skip-broken
[root@localhost ~]# yum install qt-x11 —skip-broken
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
Resolving Dependencies
—> Running transaction check
—> Package qt-x11.x86_64 1:4.8.7-8.el7 will be installed
—> Processing Dependency: libmng.so.1()(64bit) for package: 1:qt-x11-4.8.7-8.el7.x86_64
Packages skipped because of dependency problems:
1:qt-x11-4.8.7-8.el7.x86_64 from local
[root@localhost ~]#
Any ideas? Thank you in advance!
- Печать
Страницы: [1] Вниз
Тема: Запуск приложения qt в Ubuntu 18.04 (Прочитано 3279 раз)
0 Пользователей и 1 Гость просматривают эту тему.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
incomer17
Всем привет!
Международная учебная организация предложила скачать приложение кошелька под виндовс или линукс. У меня на компе 2 системы: 10 виндовс и Ubuntu 18.04. Работаю в основном в Ubuntu. Но приложение под линукс реализовано в qt, естественно. в Ubuntu его не запустить. Пробовал погуглить — советуют установить qt-creator, но конкретно на мой вопрос ссылок на понятную для себя инструкцию не нашёл. Уж очень не хочется перезагружаться на виндовс.
Даже если вас сожрали, у вас есть 2 выхода…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ALiEN175
qt-приложения прекрасно запускаются и работают в линукс. Запустите файл в терминале и посмотрите, что пишет.
ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
incomer17
ALiEN175,
shem@lenovoip:~/Загрузки/pranacoin-qt-linux$ sudo pranacoin-qt
[sudo] пароль для shem:
sudo: pranacoin-qt: команда не найдена
shem@lenovoip:~/Загрузки/pranacoin-qt-linux$
« Последнее редактирование: 27 Сентября 2018, 00:42:51 от incomer17 »
Даже если вас сожрали, у вас есть 2 выхода…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ALiEN175
ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
victor00000
зачем sudo?
sudo ./setup это установка так.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
incomer17
victor00000, судо потому, что запуск от админа, но масло каши не испортит, так или иначе, программа, находящаяся в каталоге Загрузки, не запускается:
shem@lenovoip:~/Загрузки$ sudo ./pranacoin-qt
./pranacoin-qt: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
« Последнее редактирование: 27 Сентября 2018, 11:52:31 от incomer17 »
Даже если вас сожрали, у вас есть 2 выхода…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
maks05
incomer17, от админа нужно запускать только в крайнем случае. И gt здесь вообще не причём. Ищите, как установить программу. А установить, в общем случае, можно несколькими способами — ищите их на нашем сайте, в разделе Документация.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ARTGALGANO
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Aleksandru
incomer17,
sudo apt-get install libqtgui4
Затем в папке с бинарником в терминале: ./pranacoin-qt (без sudo).
Не майнингом ли вы, решили заняться?
Intel Core i3-3240 3.40GHz, GeForce GT 1030, MSI H61M-P20, 8GB RAM, KINGSTON SV300S37A240G, Kubuntu 20.04
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
incomer17
Aleksandru, отнюдь, давно уже этим не балуюсь, речь об учебном заведении (открытый йога университет), вопрос чисто практический — перечисление средств за учёбу. Не сочтите за рекламу, но кто желает, могу дать инфо и ссылки. Каждый решает сам.
« Последнее редактирование: 27 Сентября 2018, 13:06:07 от incomer17 »
Даже если вас сожрали, у вас есть 2 выхода…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Aleksandru
incomer17,
Команды выполняли, какие на сайте у них написаны?:
sudo apt-get install -y build-essential libssl-dev libdb-dev libdb++-dev libboost-all-dev git libssl1.0.0-dbg
И:
sudo apt-get install -y libdb-dev libdb++-dev libboost-all-dev libminiupnpc-dev libminiupnpc-dev libevent-dev libcrypto++-dev libgmp3-dev libqtgui4
Intel Core i3-3240 3.40GHz, GeForce GT 1030, MSI H61M-P20, 8GB RAM, KINGSTON SV300S37A240G, Kubuntu 20.04
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
incomer17
Всем форумчанам, приславшим ответы, моя огромная признательность, но особенно ARTGALGANO и !Aleksandru! Спасибо за конкретику! Вы сэкономили мне много времени. Проблема решена.
Пользователь добавил сообщение 27 Сентября 2018, 13:15:51:
Aleksandru, я выполнил Вашу предпоследнюю рекомендацию и приложение запустилось, уже и синхронизировалось. Есть ли смысл выполнять последнюю рекомендацию (насколько я понимаю, это установка дополнительных библиотек)?
« Последнее редактирование: 27 Сентября 2018, 13:19:06 от incomer17 »
Даже если вас сожрали, у вас есть 2 выхода…
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Aleksandru
Есть ли смысл выполнять последнюю рекомендацию (насколько я понимаю, это установка дополнительных библиотек)?
Смысла нет. Запустилось же.
Intel Core i3-3240 3.40GHz, GeForce GT 1030, MSI H61M-P20, 8GB RAM, KINGSTON SV300S37A240G, Kubuntu 20.04
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
incomer17
Aleksandru, ещё раз спасибо, если смогу быть чем-то полезен, буду рад.
Даже если вас сожрали, у вас есть 2 выхода…
- Печать
Страницы: [1] Вверх
I got the import error when trying to import cv2 with python3 (python2 worked fine),
ImportError: libQtGui.so.4: cannot open shared object file: No such file or directory
Luckily I solved it with:
sudo apt install libqtgui4
No idea why though
tsologub, jarulsamy, Voice-First-AI, mgei, csaftoiu, brmazdin, drygdryg, Mohamedemad4, and gemfarmer reacted with heart emoji
I have not seen this on any of my builds but opencv is a work in progress and it is possible that the build was a little different or there was a glitch in downloading. Were you using Stretch. If so sometimes there are base library issues that opencv expects by default and for some reason it was not there or changed. I will add the dependency to the script just in case.’
Let me know the Raspbian version and weather it was lite or full version. I have often run across problems with lite since it reduces the default apps and libraries so some dependencies are missing in the default lite image
See new release 2.5 that includes the
sudo apt-get install -y libqtgui4
Your feedback is Appreciated
Thanks.
Claude …
I was not using strech. I have Raspbian full.
I should’ve just cleaned install Raspbian anyway before starting with opencv, but other than this, your script worked fantastic, thanks!
I have added the library you mentioned, since it does not hurt if it is
already installed. Also updated default conf to latest opencv 3.4.2
Variables are now stored in a conf file so
easier to edit. Logic for install has been improved with better prompts.
Just asks and takes you automatically to the next step if OK and does not
go back
to the main menu. I still need to add some checks for Fat memory stick or
hard drive since fat does not support symlinks that opencv uses.
There is now a check for RPI3 for neon support. RPI2 cannot use neon
directive and make/compile will fail..
I upgraded one of my machines last night to 3.4.2 and it went very smooth.
Woke up in the morning and it was ready for a make install.
Your comments are appreciated.
Claude …
…
@pageauc thank you for your comment, i had an unrelated issue but installing libqt helped me
I solved this problem after executing two installation command lines:
sudo apt install libqtgui4
sudo apt install libqt4-test
Thanks.
I ran into this running python3 on Raspberry Pi 4 with full Raspbian.
Was not able to fix my issue with out running both of these commands, as @JumperC2P indicated above.
sudo apt install libqtgui4
sudo apt install libqt4-test
I ran into this running python3 on Raspberry Pi 4 with full Raspbian.
Was not able to fix my issue with out running both of these commands, as @JumperC2P indicated above.
sudo apt install libqtgui4 sudo apt install libqt4-test
I tried the above two commonds, and can solve the problem of importing cv2 in python3. My devices is raspberry compute module 3+.