Results 1 to 2 of 2

Thread: Cannot compile Qt 5.5 Opensource mysql plugin

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Cannot compile Qt 5.5 Opensource mysql plugin

    I am trying to compile mysql plugin using:
    Qt Code:
    1. 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:
    Qt Code:
    1. rm -f libqsqlmysql.so
    2. 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
    3. /usr/bin/ld: cannot find -lssl
    4. /usr/bin/ld: cannot find -lcrypto
    5. collect2: error: ld returned 1 exit status
    6. Makefile:134: recipe for target '../../../../plugins/sqldrivers/libqsqlmysql.so' failed
    7. 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:
    Qt Code:
    1. 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.
    Last edited by MarkoSan; 17th August 2015 at 09:43.
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot compile Qt 5.5 Opensource mysql plugin

    
    Qt Code:
    1. #> apt-cache search libssl
    2. ...
    3. libssl-dev - Secure Sockets Layer toolkit - development files
    4. ...
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

Similar Threads

  1. How to compile a mysql plugin in the QT 4.7 version?
    By wter27 in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2011, 05:26
  2. Qt Opensource 4.5.2 wont compile
    By MarkoSan in forum Installation and Deployment
    Replies: 8
    Last Post: 26th November 2009, 07:56
  3. Compile problem: Qt4.5.1 opensource, VisualStudio 2008 Standard
    By wally in forum Installation and Deployment
    Replies: 2
    Last Post: 28th May 2009, 16:42
  4. Replies: 1
    Last Post: 7th August 2008, 14:46
  5. Qt4 win opensource + mysql plugin
    By vr in forum Installation and Deployment
    Replies: 3
    Last Post: 25th May 2007, 10:01

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.