Unsolved Simplest way to install Qt in Ubuntu (19.10) with MySQL driver?
-
@JonB Did you use Qt provided by the distribution?
-
@SGaist Thanks, I uninstalled everything using the maintenance tool and then reinstalled again using, as usual, the offline installer.
I run./configure -sql-mysql
as first command and finally there was "yes" near "MySql" and the process ended well.In the previous attempt I had already run
./configure
before./configure -sql-mysql
without cleaning, was that the problem in your opinion? -
@jsulm said in Simplest way to install Qt in Ubuntu (19.10) with MySQL driver?:
@JonB Did you use Qt provided by the distribution?
Yes, absolutely, the Qt 5.12.2 which came with Ubuntu 19.04 was adequate for me. I didn't see anything in OP's question which said he had built Qt for himself. Given that, I have never had to build/configure Qt, any the libraries to hook Qt to MySQL also come from
apt-get
. Hence why I was asking whether that will have changed at 19.10? Because if so I shall not be moving off 19.04 till I have to, hence my question.... -
@enne9 said in Simplest way to install Qt in Ubuntu (19.10) with MySQL driver?:
In the previous attempt I had already run ./configure before ./configure -sql-mysql without cleaning, was that the problem in your opinion?
Yes, as suggested in the summary message, if you changed something like adding a new dependency library and re-run configure, you have to clean before calling configure again.
But as I already wrote, out of source builds are way simpler to handle that kind use case. You keep the sources clean and can nuke easily the faulty build/configure to start anew.
-
@JonB said in Simplest way to install Qt in Ubuntu (19.10) with MySQL driver?:
he had built Qt for himself
It applies to Qt installed via installer as well
-
It applies to Qt installed via installer as well
Hmm, I've never done that. Only ever
apt-get
. I hope I'm not hijacking (tell me if I am), but let's put it this way: if I move to a newer Ubuntu, and I want the Qt and thelibqtmysql
stuff as supplied with distro viaapt-get
, can I still do that (absolutely no compiling/building/configuring of either), or at 19.10+ has something been removed which means it won't work any longer? -
@JonB said in Simplest way to install Qt in Ubuntu (19.10) with MySQL driver?:
can I still do that
Yes, the prebuild Qt provided by Ubuntu should have everything you need (but I did not yet use any of 19.x Ubuntu).
-
@jsulm
That's great. Then at least the OP knows that if he is happy with the Qt version in the 19.10 distro has has the option of doing it all with no compiling etc. Having said that, his latest may imply he is now progressing OK with what he has, which is equally fine. -
The
make
compilation completed successfully butmake install
terminates with the errorg++: error: /home/enrico/Qt5.14.1/5.14.1/Src/qtvirtualkeyboard/lib/libqtopenwnn.a: No such file or directory
Any idea?
-
I have just noticed that I have used
make
instead ofqmake
. Is that the problem?Should I repeat the whole process using
qmake
and, if this is the case, should I clean run amake clean
before?
ThanksAn update: now the error is
Error copying ../../../lib/libQt5Bootstrap.a to /usr/local/Qt-5.14.1/lib/libQt5Bootstrap.a: Destination file exists
-
@enne9 Did you run qmake before make?
The sequence is:- qmake
- make
- make install
-
I used
./configure -sql-mysql make make install
How can I proceed now? Do I need to clean (using which commands?) and do the operations in the order you listed?
-
-
Isn't
qmake
included in./configure -sql-mysql
? I just run it and the output is the same. -
It's the first thing that gets built however, you are currently making things more complicated than necessary. You should just build the plugin using your already installed Qt rather than the full thing.