Mailinglist Archive: opensuse-factory (673 mails)

< Previous Next >
Re: [opensuse-factory] New Tumbleweed snapshot 20160625 released!
Bjoern Voigt wrote:
Dominique Leuenberger wrote:
Please note that this mail was generated by a script.
The described changes are computed based on the x86_64 DVD.
The full online repo contains too many changes to be listed here.

Please check the known defects of this snapshot before upgrading:
https://openqa.opensuse.org/tests/overview?distri=opensuse&groupid=1&version=Tumbleweed&build=20160625

Packages changed:
[...]
libqt4
After updating to latest Tumbleweed snapshot 20160625 my MythTV 0.27.6
installation does not work anymore.

MythTV 0.27.6 is compiled against libqt4.

I found this messages in logs:

# mythtv-setup -v database
[...]
2016-06-28 12:28:29.681915 I Starting process manager
2016-06-28 12:28:29.683507 I Starting IO manager (read)
2016-06-28 12:28:29.683545 I Starting IO manager (write)
2016-06-28 12:28:29.683599 I Starting process signal handler
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
2016-06-28 12:28:29.784012 I Clearing Settings Cache.
2016-06-28 12:28:29.790650 I Database connection created: DBManager0
[...]
2016-06-28 12:28:29.982854 E MSqlDatabase::OpenDatabase(), db
object is not valid!

Why QMYSQL does not load?

I checked libqt4, libqt4-sql, libqt4-sql-mysql and libmysqlclient18.
They are updated and have no dependency problems:

# rpm -q libqt4 libqt4-sql libqt4-sql-mysql libmysqlclient18
libqt4-4.8.7-4.1.x86_64
libqt4-sql-4.8.7-4.1.x86_64
libqt4-sql-mysql-4.8.7-4.1.x86_64
libmysqlclient18-10.0.22-3.2.x86_64
# rpm -V libqt4 libqt4-sql libqt4-sql-mysql libmysqlclient18

Recompiling mythtv 0.27.6 also did not help.
I verified the problem with MythTV 0.27 from Packman. Same problem.

Also I found a small testing program:

qtmain.cpp:

#include <QtGui/QApplication>
#include <QTextCodec>
#include <QObject>
#include <QtSql/QSqlDatabase>
#include <QStringList>
#include <QtSql/QSqlQuery>
#include <QtSql/QSqlRecord>
#include <QVariant>
#include <iostream>

int main(int argc, char *argv[])
{
QSqlDatabase DB;
std::cout <<std::endl<< "try connect MYSQL "<< std::endl;
try
{
DB = QSqlDatabase::addDatabase( "QMYSQL");
}
catch(...)
{
std::cout << "fatal error"<< std::endl;
}
std::cout << "add database"<< std::endl;
DB.setDatabaseName( "wdtdemo" );
DB.setUserName( "root" );

DB.setPassword( "password_for_root" );
std::cout << "1"<< std::endl;

DB.setHostName( "" );

std::cout << "try to connect"<< std::endl;
if (DB.open())
{
std::cout << "QMYSQL correctly connected "<< std::endl;
}
else
{
std::cout << "QMYSQL not connected "<< std::endl;
}


QApplication a(argc, argv);
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));

return a.exec();
}

qtmain.pro:

######################################################################
# Automatically generated by qmake (2.01a) Di Jun 28 13:04:18 2016
######################################################################

QT = core gui sql
TEMPLATE = app
TARGET =
DEPENDPATH +=
INCLUDEPATH +=

# Input
SOURCES += qtmain cpp

It only finds QSQLITE, but not QMYSQL and not PostgreSQL.

# qmake
# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG
-DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore
-I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include -I. -I. -o
qtmain.o qtmain.cpp
g++ -Wl,-O1 -o qtmain qtmain.o -L/usr/lib64 -lQtSql -L/usr/lib64
-lQtGui -L/usr/X11R6/lib -lQtCore -lpthread
# ./qtmain

try connect MYSQL
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE
QSqlDatabase: an instance of QCoreApplication is required for
loading driver plugins
add database
1
try to connect
QMYSQL not connected

Greetings,
Björn
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >