Results 1 to 3 of 3

Thread: Can someone help with building Mysql driver for Android?

  1. #1
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Can someone help with building Mysql driver for Android?

    I am using this tutorial to build mysql driver for android under linux using mariadb since I couldn't find one for MySql.

    I've compiled openssl,libiconv, done what it said at "Compiling mariadbclient (Option 1)" but when I do "make install" I get the following error:
    Scanning dependencies of target mariadb_config
    [ 4%] Building C object mariadb_config/CMakeFiles/mariadb_config.dir/mariadb_config.c.o
    In file included from /home/adi/mariadb-native-client/build/mariadb_config/mariadb_config.c:1:0:
    /home/adi/mariadb-native-client/include/my_global.h:370:1: error: unknown type name 'socklen_t'
    typedef SOCKET_SIZE_TYPE size_socket;
    ^
    make[2]: *** [mariadb_config/CMakeFiles/mariadb_config.dir/mariadb_config.c.o] Error 1
    make[1]: *** [mariadb_config/CMakeFiles/mariadb_config.dir/all] Error 2
    make: *** [all] Error 2

  2. #2
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Can someone help with building Mysql driver for Android?

    Any other ways of connecting to mysql databases using Qt on android?

  3. #3
    Join Date
    Oct 2013
    Posts
    142
    Thanks
    36
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Can someone help with building Mysql driver for Android?

    So I eventually managed to build the plugin, but how do I deploy mysqlclient to android device?

Similar Threads

  1. Replies: 4
    Last Post: 10th July 2014, 16:22
  2. Building MySql driver
    By mentalmushroom in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2014, 12:45
  3. error building qt mysql driver
    By Capton in forum Newbie
    Replies: 1
    Last Post: 16th July 2013, 13:06
  4. Building a static mysql driver
    By ThE_-_BliZZarD in forum Installation and Deployment
    Replies: 3
    Last Post: 15th October 2010, 12:56
  5. nmake problems while building mysql driver
    By MarkoSan in forum Installation and Deployment
    Replies: 27
    Last Post: 25th May 2007, 13:57

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.