You are not logged in.

1

Sunday, October 29th 2017, 5:13pm

mysql plugin not compiling from source

i have qt 5.2.1 in centos6.6 (32 bit) linux, in VM in Windows. 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
3
# /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
3
/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 status
make: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1

Similar threads

Used tags

linux, qt