Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. How to use c++11 and boost in qt creator(boost library and qt library together in qt creator)?
Forum Updated to NodeBB v4.3 + New Features

How to use c++11 and boost in qt creator(boost library and qt library together in qt creator)?

Scheduled Pinned Locked Moved C++ Gurus
21 Posts 6 Posters 26.1k 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #9

    Sadly, getting a proper mingw and setting it up correctly is a very painful process. If you have access to MSVC, use it, will be easier and less frustrating. If you really need mingw, the easiest option is to install the Nokia Qt SDK, wich provides it's own mingw copy that is known to work.

    (Z(:^

    1 Reply Last reply
    0
    • F Offline
      F Offline
      friendchp
      wrote on last edited by
      #10

      the msvc problem is ,it doesnt supprot c++11..and i want to use c++ 11...becuase c++ and boost have some thing better than qt library like thread in c++ 11 is much easy and use full than thread in qt(it is in qt very confusing and not good at all,,,)...

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #11

        [quote author="friendchp" date="1346838180"]when i choose the mingw4.7 it says to me that only version with w32api3.13 are supported ...[/quote]
        You can't use a prebuilt Qt. You will have to build Qt on your own using GCC 4.7.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          friendchp
          wrote on last edited by
          #12

          seriously?
          i really dont know how to do that ...
          i download the qt-creator-2.5.1-src code from qt ...
          plz help me...
          (tanx alot in adv to u all;) )

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #13

            [quote author="friendchp" date="1346875161"]seriously?[/quote]Seriously. GCC 4.4 is not binary compatible with GCC 4.7. This is the reason you have different packages for MSVC2005, MSVC2008 and MSVC2010, as they aren't binary compatible as well.

            [quote author="friendchp" date="1346875161"]i really dont know how to do that ... i download the qt-creator-2.5.1-src code from qt ...[/quote]You need to build Qt, not Qt Creator.

            Building Qt isn't that difficult. Just grab the desired "mingw":http://sourceforge.net/projects/mingwbuilds/, "git":http://msysgit.github.com/ and "perl":http://www.activestate.com/activeperl package.
            @

            git clone git://gitorious.org/qt/qt.git & cd qt
            configure
            mingw32-make
            @

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #14

              [quote author="Lukas Geyer" date="1346911052"]
              @

              git clone git://gitorious.org/qt/qt.git & cd qt
              configure
              mingw32-make
              @
              [/quote]

              https://bugreports.qt-project.org/browse/QTSDK-1166
              Step #2 is a little different for MinGW/MSYS, actually. Make sure you call 'configure.exe', not 'configure' (they're different files)

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lgeyer
                wrote on last edited by
                #15

                [quote author="JKSH" date="1346932867"]Step #2 is a little different for MinGW/MSYS, actually[/quote]
                Not if you are building from the Windows command line.

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  friendchp
                  wrote on last edited by
                  #16

                  i installed the activeperl ,msisgit
                  and download the mingw( from where u told me)...
                  i typed git clone git://gitorious.org/qt/qt.git & cd qt
                  in git-cmd.bat....
                  and it doing this right now:

                  C:\Users\FriendChp>git clone git://gitorious.org/qt/qt.git & cd qt
                  Cloning into 'qt'...
                  remote: Counting objects: 666833, done.
                  remote: Compressing objects: 100% (150956/150956), done.
                  Receiving objects: 3% (24271/666833), 6.68 MiB | 25 KiB/s

                  ..............................
                  am i right in this scope?
                  do i have to copy mingw( that i downloaded )in mingw folder in msysgit directory(before type those instruction in git-cmd.bat) ?
                  tanx in adv;)

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lgeyer
                    wrote on last edited by
                    #17

                    Yes, as soon as git has finished cloning into qt.git you are ready to configure and build Qt.

                    Just make sure mingw\bin and perl\bin is in %PATH%.

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      friendchp
                      wrote on last edited by
                      #18

                      thanx alot to u all for your guide.
                      finally i build it...
                      (soorry for this question)
                      and now ...how can i use it?...how to use this library ?its size is almost 6gig.
                      how to use it in qt creator?...my qt creator now using the vs compiler for compiling..how to change it?
                      (i set the qmake (in this builing the library) in qt....and for compile time it say an error :
                      Error while building/deploying project future (target: Desktop)
                      When executing step 'qmake')
                      plz help...

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pushpendrak
                        wrote on last edited by
                        #19

                        There are lots of question in ur mind......
                        Please read carefully how to work with "MAKEFILE", it is very important for building any library/app.

                        1. configure
                        2. make
                        3. install
                        4. clean or delete src
                        5. setup environment according to insatllation
                        6. use it

                        PushpendraK

                        1 Reply Last reply
                        0
                        • F Offline
                          F Offline
                          friendchp
                          wrote on last edited by
                          #20

                          any help,please?

                          1 Reply Last reply
                          0
                          • L Offline
                            L Offline
                            lgeyer
                            wrote on last edited by
                            #21

                            Well, if your library is 6 GB in size definitly something went wrong. The debug libraries should be between 50 MB and 200 MB, the release libraries between 3 MB and 10 MB.

                            If you have a working library set you will have to add your compiler to the toolchains section and Qt itself to the Qt versions (depending on your Qt Creator version) section.

                            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