How did you "install or uninstall Qt 5.2.1 or Qt 5.4"? Does your package manager allow both installations to coexist?
How did you "install or uninstall Qt 5.2.1 or Qt 5.4"? Does your package manager allow both installations to coexist?
So you surely don't have it installed in /usr/lib. It seems your packager takes your system's Qt instead of the one you installed yourself.
Yes, I have installed it in opt directory and second time Iinstalled the same into my machine's Home directory.
As per you "It seems your packager takes your system's Qt instead of the one you installed yourself" , Yes I also think so but why I am able to make deb with Qt5.2.1 but not with the Qt5.4 into same Ubutnu 14.04 machine.
Thanks for you post.
I think you need to ask at some site related to building debs. Your problem is unrelated to Qt itself, it is very unlikely you will find proper help here.
I have posted on the Ubuntu debian forum and on other sites also.
FYI now I am able to make deb file with QT 5.4 by adding PrintSupport, OpenGL Qt5 module in cmake list file and added the needed .so files form the path Qt5.4.0/Tools/QtCreator/lib/qtcreator/ to /usr/lib directory and installed the deb into my machine.
But app executable unable to start and not giving any error ( I think it crashes) but when I replace the same executable with exexubale which I made from Qt creator then it is working.
What I think is that Qt creator build taking reference of the QT5.4 installation and deb build taking the reference from the my machine's installed .so files. that Is why I am getting this issue.
I think you should put a dependency on Qt5.4 packages into your deb package. Otherwise after the package is installed, proper Qt version would not be found.
Ok, I will try and let you know if found anything useful.
I know nothing about building deb packages, so I can't really help you. I can only assume you should make your package depend on libqt5*-5.4
Bookmarks