Solved Something wrong when I installed qt in CenterOS8
-
@newbeee
Are you sure that after you installed those files into/usr/lib
the error still reports "not found" rather than something else?To make sure what is going on run an
ldd
on each of those files in/usr/lib
to verify they look OK.I would not recommend this long-term, but you might temporarily copy those files from
/usr/lib
into/opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/
just to see whether that makes the "not found" go away? -
This post is deleted! -
@JonB
I am sure it still reported "not found".
I tried copy those four files into "/opt/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/",but still don't work.
But I find something might be clues.
There are files in the /usr/lib.libxcb-icccm.so.4.0.0 libxcb-image.so.0.0.0 libxcb-keysyms.so.1.0.0 libxcb-render-util.so.0.0.0
It seems they should be the same with those "cannot found "files.But the result might means qt cannot recognzie them .
Are they the same?Are they conflicted with files like libxcb-icccm.so.4.0?What should I do?
Looking forward your replay. -
Hi and welcome to devnet,
From the looks of it, you do not have the development packages corresponding to these libraries installed.
-
@SGaist
It seems so.But I dont know how to fix it. -
@newbeee said in Something wrong when I installed qt in CenterOS8:
But I dont know how to fix it
Install the dev packages: those have same name as normal packages with "-dev" at the end of the package name.
-
@jsulm
Thanks for your answer.
Could you explain it more specific ? I am a real beginner of centeros.
I try the command"yum -install libxcb-icccm-dev.so.4" and "yum -install libxcb-icccm.so.4-dev ", terminal tells me the commnd is wrong.Could you tell me what should I input into terminal? -
@jsulm
I triedyum -y install libxcb-devel
And terminal tells me the package "libxcb-devel-1.13.1-1.el8.x86_64" has already installed.
And I try to install Qt5,and download a offline installer,it works. -
I try the command"yum -install libxcb-icccm-dev.so.4" and "yum -install libxcb-icccm.so.4-dev ", terminal tells me the commnd is wrong.Could you tell me what should I input into terminal?
I have never used
yum
. You should check the usage by typingman yum
, or perhaps looking at https://access.redhat.com/articles/yum-cheat-sheet or other references. So far as I know, it needs to beyum install ...
, notyum -install ...
, it does not use the "hyphen" character before the subcommand likeinstall
? -
@JonB
Thanks a lot.I will keep learning and trying, although I have to use qt to complet some tasks before. -
@newbeee said in Something wrong when I installed qt in CenterOS8:
yum -y install libxcb-devel
That is the one for libxcb itself.
The other librairies you have issues with have their own development package that you need to install.