Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt - Database Module in Windows 7 and Linux

Qt - Database Module in Windows 7 and Linux

Scheduled Pinned Locked Moved Installation and Deployment
16 Posts 4 Posters 8.4k 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.
  • M Offline
    M Offline
    mohsen
    wrote on last edited by
    #6

    download the MSVS2008 compiled binaries of Qt and Qt Addin. It seems it's not allowed to compile for MSVS2008 manually in OpenSource version.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      josemaria
      wrote on last edited by
      #7

      But, the compiled binary havent support for database by default. Only sqLite but I need for mysql, that is why i wanted to compile sources.

      It there any way to support mysql database module using the binaries?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mohsen
        wrote on last edited by
        #8

        you might use QODBC. Then you should download mysql odbc connector from http://dev.mysql.com/downloads/connector/odbc/5.1.html

        1 Reply Last reply
        0
        • J Offline
          J Offline
          josemaria
          wrote on last edited by
          #9

          That could be a good work around but I am interested in using the mysql native driver. It usually give me a better performance. I dont know because everything is so unnecessary complex in Windows. In linux everything seems to be better structured.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            giesbert
            wrote on last edited by
            #10

            when you donwloaded Qt sources, unzip them to a folder: <QTDIR>.
            Open a MSVS command prompt, go to <QTDIR>, call configure --help
            then call configure with the parameters you need, there you casn specify, which DB-drives should be compiled. For some of them, you need some extra libraries (Orcale etc.).
            when confige is through, you can call nmake and it builds Qt. But in between, you get go and have some coffee (or some more, it takes time). If you want to build Qt in a way, it can be statically linked, look at this wiki page (in the example, gcc is used, but static build with MSVS is nearly the same...): "BuildStaticQtForWindowsWithGccGerman":http://developer.qt.nokia.com/wiki/BuildStaticQtForWindowsWithGccGerman I'm pretty shure, gcc can also build 64 bit binaries.

            If you search thge wiki, you could also find this article: "#

            Building Qt Desktop for Windows with MSVC":http://developer.qt.nokia.com/wiki/Building_Qt_Desktop_for_Windows_with_MSVC

            Nokia Certified Qt Specialist.
            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mohsen
              wrote on last edited by
              #11

              i preffer using mysql service too! but unfortunately it doesn't supported by MSVS2008 binaries

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on last edited by
                #12

                If it's not supported by the binary packages, build it on your machine...

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  josemaria
                  wrote on last edited by
                  #13

                  good. Thanks very much to all of you that have help me. It is a pleasure staying here.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #14

                    [quote author="mohsen" date="1295784462"]download the MSVS2008 compiled binaries of Qt and Qt Addin. It seems it's not allowed to compile for MSVS2008 manually in OpenSource version. [/quote]

                    This is wrong. The (L)GPL version does not have any constraints about the compilers. Qt/Nokia does not provide prebuilt binaries, though. Nothing prevents you from compiling yourself.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mohsen
                      wrote on last edited by
                      #15

                      @Volker:
                      I just remembered when i was trying to compile for VS with older versions but VS was not at the list of platforms.

                      It seems Qt currently provides configuration for VS on opensource version too.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        giesbert
                        wrote on last edited by
                        #16

                        In earlier versions, the MSVS integration was not in Open source editiopns, and perhaps the MSVS configs. But is was never said, that compiler might not be used. Before 4.x (3?), k there was no open source version for windows....

                        with Qt 4.3, there was a "minGW version for open source for windows":http://labs.qt.nokia.com/2007/09/18/qtwindows-open-source-edition-to-support-vs-express/

                        As stated in that article, since 4.4 it is also open source for windows with MSVS compiler.

                        Nokia Certified Qt Specialist.
                        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                        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