Build Qt with the specific openssl version - qt

I need to built Qt with the openssl lib version 1.0.2k. But in the OS I use (Debian 7 x64) there is the 1.0.1 version is installed by default. I've already built the needed version from source code, so I have it. But Qt still is being built with the 1.0.1 version.
I've already tried to substitute openssl in the "/usr/bin/" directory and set the directory with the new libs ("usr/local/ssl/lib/", cuz "usr/local/ssl" is the directory with openssl-1.0.2k) to LD_LIBRARY_PATH, but it isn't work, Qt is still being built with openssl-1.0.1.
Maybe somedoby know how to define the new version of openssl for the building of Qt?
When I'm building Qt, I use the following configuration and version 5.6.3 of Qt:
./configure -prefix $PWD/qtbase -release -opensource -confirm-license -static -accessibility -openssl-linked

The best way would be to modify the debian source package and rebuild the Debian package instead of building from source.
But this requires some knowledge about how Debian packages are built.
Otherwise chances are high that Qt somehow relieas on pkgconfig to find the right openssl library. So try changing libcrypto.pc and libssl.pc. Or Override your PKG_CONFIG_PATH

Related

How to update Qt version that qmake uses?

I am trying to use qmake with QT 5.7.0 or later. I have installed QT 5.7.0. I have never installed another version of QT before or after this. When I run
qmake --version
it tells me it is using Qt 5.5.1. I don't know how it gets to this version, this version was never installed by me. I would like to update the version that qmake uses. How can I do that?

I need a minimal QT 5.0 Compiler install for Ubuntu 14.04 64bit

I need a minimal QT 5.0 Compiler install for Ubuntu 14.04 64bit
I just need to run qmake and have the QT includes, macros and libraries work under g++. I do not need The QT GUI development environment.
I tried the following...
wget http://download.qt.io/official_releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0.run
... Follow instructions... At the end I get "Warning: QSqlDatabase: QMYSQL driver not loaded" which I need.
So I had to build from source, which takes overnight! (but does work)...
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.5
... Follow instructions... It does work.
I only want the compiler, not everything! How do I get that?
Alan.
Just install a package called build-essential + the Qt5 development packages you need (or qt5-default package). Ubuntu 14.04 has Qt 5.2.1 in the package repositories.
build-essential installs g++ tool chain and qt5-default installs the Qt5 development libraries.
Qt is not a compiler. It is a toolkit framework library coded for C++.
You need at least a C++11 compiler, like GCC (g++, at least 4.9) or Clang/LLVM (clang++)
You probably want to say that you don't need the QtCreator editor and IDE.

QT 4.8.5 compile error in CentOS 5.X

I have download the Qt-everywhere-4.8.5.tar.gz from Qt official website. And In the CentOS 5.X, it's GCC version is 4.1.2. So I have compiled the gcc-4.7.2 from source code and installed it in $HOME/software/, then in the install directory, there are bin and lib and lib64, and I have add the path into LD_LIBRARY_PATH.
Then, I uncompressed the qt source code, configure it with
./configure -prefix $HOME/softwares/ -nomake demos -nomake examples
Then, make it. there is an error:
/home/user/Downloads/qt-everywhere-opensource-src-4.8.5/bin/lrelease:assistant_cs.ts -qm assistant_cs.qm
/home/user/Downloads/qt-everywhere-opensource-src-4.8.5/bin/lrelease: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/user/Downloads/qt-everywhere-opensource-src-4.8.5/bin/lrelease)
/home/user/Downloads/qt-everywhere-opensource-src-4.8.5/bin/lrelease: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /home/user/Downloads/qt-everywhere-opensource-src-4.8.5/bin/lrelease)
gmake[1]: *** [assistant_cs.qm] Error 1
And, I have found the libstdc++.so.6 in $HOME/softwares/lib64, and I have add the path into LD_LIBRARY_PATH, why the make command just use the system's library, not use the provided one? I have no root privileges, so I can't link the system's library with my home gcc's library. Could you give me some advice, please? Thanks.

How can I install qt5 to Debian using commandline?

I need to install Qt5 to my Debian using commandline. How can I do that?
My system:
debian 2.6.30-vortex86mx-yh
I am trying to install using qt online installer from qt-project.org.
But after ./qt.run I get this error:
libstdc++.so.6 version glibcxx_3.4.11 not found
I try to install libstdc++6. but Debian said it is already newest version.
cat /etc/issue result is:
Debian 5.0
Also my debian has no gui. I have to do it using commandline.
Try this command for installing from default debian 5 repository:
#apt install g++
#apt install qtcreator
#apt install qtdeclarative5-dev
You should be able to run the qt-installer in a decent debian version. Get Version by:
cat /etc/issue
On older versions or "unsupported" versions you can still download the sources and build the libraries yourself, which is probably your way to go, since the vortex86-builds are pretty limited in compiler flags. Compiling is rather easy, depending on your needs. The configure script itself gives you a lot of hints regarding possible flags.
Another alternative is to find a user-managed repository that has QT5 for your debian version and add this repository to your sources.lst, so you could perform a apt-get install libqt5.

How can i Built Qt-Creator against Qt5, in Ubuntu 12.04?

I had an existing Qt4 installation on my ubuntu built using the "Software center". After that, I installed Qt5 from git using the default settings. Now, realizing that the Qt Creator version I had, was configured for Qt 4.8.1, I uninstalled it (using software center) and now i am looking for some guidance to re-build it and link against Qt5. From their blog, I have noticed that the latest version should be a part of Qt5 installation but I am unable to start it from the HUD in ubuntu, nor do i know of any command-line options to fire it up from the terminal. Thank you for your time.
Hate to just throw up a link, but this guy explains it well.. for multiple operating systems.
http://qt-project.org/wiki/Building_Qt_5_from_Git
You may refer to the Qt wiki.
An example procedure of build:
./configure -developer-build -opensource -nomake examples -nomake tests
./make
./make install
Your build target may be ARM or other platform,then you can use ./configure --help to see more configure help.

Resources