Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. adding QODBC to static compile
Forum Updated to NodeBB v4.3 + New Features

adding QODBC to static compile

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • md2012M Offline
    md2012M Offline
    md2012
    wrote on last edited by
    #1

    Hello dear programmers .
    well i want to make a static version of my Qt to make a static compile for my new program .
    i have a Qt5.7.1 static MINGW compiler but the only driver that is included for sql there is SQLITE.
    so here is my problem :
    at the very first step which is cofigure step,i face this error at the end of the process:

    ERROR: Invalid value given for boolean command line option 'sql-sqlite'.
    ERROR: Invalid value given for boolean command line option 'sql-odbc'.
    Qmake failed, return code 3
    

    here is the command line i use :

    configure -static -platform win32-g++ -prefix "D:\Qt\Qt5.8.0 static" -debug-and-release -opensource -confirm-license -nomake examples -nomake tests -nomake tools -opengl desktop -no-angle -qt-sql-sqlite -qt-sql-odbc -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype
    

    i also faced this error :

    ERROR: Invalid value given for boolean command line option 'sql-sqlite'.
    ERROR: Unknown command line option '-qt-sql-qodbc'.
    Qmake failed, return code 3
    

    using "-qt-sql-qodbc" instead of "-qt-sql-odbc"

    anything changed in 5.8.0 version that i should know ? what is wrong ?
    i followed the guide : Build a static Qt5 for Windows by compiling from sources

    1 Reply Last reply
    0
    • md2012M Offline
      md2012M Offline
      md2012
      wrote on last edited by
      #2

      @SGaist sir i saw your answer here
      any idea?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        The option changed in Qt 5. Now it is -sql-<driver name>.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved