PDA

View Full Version : Cannot compile Qt 5.5 Opensource mysql plugin



MarkoSan
17th August 2015, 08:43
I am trying to compile mysql plugin using:

markofr@work002:/opt/QtOpenSource55/5.5/Src/qtbase/src/plugins/sqldrivers/mysql$ /opt/QtOpenSource55/5.5/gcc_64/bin/qmake && make && make install
and I am getting following error:

rm -f libqsqlmysql.so
g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/opt/QtOpenSource55/5.5/gcc_64 -Wl,-rpath,/opt/QtOpenSource55/5.5/gcc_64 -Wl,-rpath,/opt/QtOpenSource55/5.5/gcc_64/lib -shared -o libqsqlmysql.so .obj/main.o .obj/qsql_mysql.o .obj/moc_qsql_mysql_p.o -rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -lcrypt -lnsl -lm -lssl -lcrypto -L/opt/QtOpenSource55/5.5/Src/qtbase/lib -lQt5Sql -L/opt/QtOpenSource55/5.5/gcc_64/lib -lQt5Core -lpthread
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:134: recipe for target '../../../../plugins/sqldrivers/libqsqlmysql.so' failed
make: *** [../../../../plugins/sqldrivers/libqsqlmysql.so] Error 1
Where do I install ssl and crypto libs? Working in KUbuntu 15.04

Added after 35 minutes:

Solved. I had to install ssl dev and crypto dev libs:

sudo apt-get install libssl-dev libgcrypt11 libgcrypt11-devand plugin build process completed without problems.

anda_skoa
17th August 2015, 08:43


#> apt-cache search libssl
...
libssl-dev - Secure Sockets Layer toolkit - development files
...


Cheers,
_