Hi to all,
I’ve CentOS 7 on my computer. I’ve installed Qt5.3.2(from binary) and mysql5.6 ( from RPMs) successfully.
Now I am building mysql plugin for Qt. I given this command :-
# /opt/Qt5.3.2/5.3/gcc_64/bin/qmake "INCLUDEPATH+=/usr/include/mysql" "LIBS+=-L/usr/lib64/mysql -lmysqlclient_r" mysql.pro
then given this command:
# make
this hangup with this error :-
/export/home/pb2/build/sb_0-12734909-1405701092.71/rpm/BUILD/mysql-5.6.20/mysql-5.6.20/sql-common/client_plugin.c:179: undefined reference to `dlclose'
/usr/lib64/mysql/libmysqlclient_r.a(client_plugin.c.o): In function `mysql_client_plugin_deinit':
/export/home/pb2/build/sb_0-12734909-1405701092.71/rpm/BUILD/mysql-5.6.20/mysql-5.6.20/sql-common/client_plugin.c:306: undefined reference to `dlclose'
/usr/lib64/mysql/libmysqlclient_r.a(client_plugin.c.o): In function `mysql_load_plugin_v':
/export/home/pb2/build/sb_0-12734909-1405701092.71/rpm/BUILD/mysql-5.6.20/mysql-5.6.20/sql-common/client_plugin.c:393: undefined reference to `dlopen'
/export/home/pb2/build/sb_0-12734909-1405701092.71/rpm/BUILD/mysql-5.6.20/mysql-5.6.20/sql-common/client_plugin.c:422: undefined reference to `dlsym'
/export/home/pb2/build/sb_0-12734909-1405701092.71/rpm/BUILD/mysql-5.6.20/mysql-5.6.20/sql-common/client_plugin.c:413: undefined reference to `dlerror'
/export/home/pb2/build/sb_0-12734909-1405701092.71/rpm/BUILD/mysql-5.6.20/mysql-5.6.20/sql-common/client_plugin.c:425: undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
make: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1
how to overcome….. Thanx in advance.
↧