Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Build a project without QT libs and include
Forum Updated to NodeBB v4.3 + New Features

Build a project without QT libs and include

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 4 Posters 3.8k 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.
  • J Offline
    J Offline
    JulienMaille
    wrote on last edited by
    #1

    I am building a dll (with qt) that I would like to test from a MSVC project without qt.
    So I would like to generate the .vcproj with qmake, but this vcproj should not contains qt includes and libs.
    I added
    @QT -= gui core@
    But I still have reference to qt in my project. Is it possible to do this?
    Thanks a lot

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

      Why don't you just create a VS project, if you don't want it to contain Qt?

      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
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        As qmake is Qt's build tool, it will always add Qt's include and library paths to the project. Though, if you remove gui and core from the QT variable, it will not link against any Qt libs.

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

        1 Reply Last reply
        0
        • J Offline
          J Offline
          JulienMaille
          wrote on last edited by
          #4

          [quote author="Gerolf" date="1303817141"]Why don't you just create a VS project, if you don't want it to contain Qt?[/quote]
          Because I like using qt tools for everything :p

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

            [quote author="neFAST" date="1303818039"][quote author="Gerolf" date="1303817141"]Why don't you just create a VS project, if you don't want it to contain Qt?[/quote]
            Because I like using qt tools for everything :p

            [/quote]

            Then stay with QtCreator :-)

            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
              JulienMaille
              wrote on last edited by
              #6

              I can't use QtCreator since I have to test if a developer using msvc can use my dll :p

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

                so you have a dll which uses Qt internally but not in it's interface?
                And this dll should be used by a MSVS user?

                If you use the MSVS toolchain, it is possible, but using QtCreator with mingw and MSVC for the client will not work.

                If the test says, the client uses MSVS, I would also only use MSVS for that.

                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
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  Qt Creator does fully support MSVC. That is no reason not to use it:-)

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

                    It supports the MS c++ tool chain (like cl, link, nmake, ...) :-)
                    MSVS is the IDE itself :-)

                    If he does not beleive, he should test it, but then also create the project like the users would do, mith MSVS :-)

                    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