MySQL 5.6 plugin ( sqldriver ) build problem in Qt 5.3.2 - centos 7



  • 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 functionmysql_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 functionmysql_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 todlsym'
    /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 todlclose'
    collect2: error: ld returned 1 exit status
    make: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1
    @
    how to overcome..... Thanx in advance.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.