You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, October 30th 2017, 2:52pm

mysql plugin building problem

i have qt 5.2.1 in centos6.6 (32 bit) linux, in vmware machine. mysql in another VM. mysql is connection from client

to server is successful. But when i want to build plugin for mysql database connectivity by command :

Source code

1
2
# /opt/Qt5.2.1/5.2.1/gcc/bin/qmake "INCLUDEPATH+=/usr/include" "LIBS+=-L/usr/lib/mysql -lmysqlclient_r" mysql.pro
# make




this gives following error :

Source code

1
2
/export/home/pb2/build/sb_0-14135570-1421675634.15/rpm/BUILD/mysql-5.6.23/mysql-5.6.23/mysys/my_getsystime.c:44: undefined 
reference to `clock_gettime'collect2: error: ld returned 1 exit statusmake: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1


how to solve this