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
markofr@work002:/opt/QtOpenSource55/5.5/Src/qtbase/src/plugins/sqldrivers/mysql$ /opt/QtOpenSource55/5.5/gcc_64/bin/qmake && make && make install
To copy to clipboard, switch view to plain text mode
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
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
To copy to clipboard, switch view to plain text mode
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-dev
sudo apt-get install libssl-dev libgcrypt11 libgcrypt11-dev
To copy to clipboard, switch view to plain text mode
and plugin build process completed without problems.
Bookmarks