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. Convert solution from VS
Forum Updated to NodeBB v4.3 + New Features

Convert solution from VS

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 2 Posters 12.5k 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.
  • A Offline
    A Offline
    amigo421
    wrote on last edited by
    #1

    Hello,
    Is there way to convert Visual Studio solution(.sln) to Qt Creator project?
    I saw this functionality in Addin, but looks this is for Qt projects only.
    current project doesn't use Qt, just want to continue the using of Qt Creator instead of VS

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

      Hi,

      You can also use qmake to handle non-Qt projects, just make the conversion then update the resulting pro file to remove the Qt related parts.

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

        I see but the issue is the conversion itself, sln/vcproj to pro file

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

          Silly question, but did you try it anyway ?

          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
          • A Offline
            A Offline
            amigo421
            wrote on last edited by
            #5

            not sure that understood your question.
            I'm using Qt Creator for various non-Qt projects and manage these by .pro configuration. no issues.
            regarding your:
            "... just make the conversion ..."
            if you mean manual conversion - I'm really doing this but this is a hard work for large solutions
            If you mean the using Qt Visual Studio Addin adility to convert, I could not do this , for me, looks it's possible for a projects in VS created by addin (with Qt).
            So for non-Qt projects in VS this ability in Qt Addin is disabled in a menu

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

              I thought it was a possibility but it's been a long time since I used the plugin. To be sure, you should bring this to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

              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
              • A Offline
                A Offline
                amigo421
                wrote on last edited by
                #7

                I've decided to use cmake with qt creator.
                So the same question,
                Does someone knew any useful tools to convert vs2013 solutions to cmake projects?

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

                  Maybe "this":http://stackoverflow.com/questions/6649606/vcxproj-to-cmake might help

                  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
                  • A Offline
                    A Offline
                    amigo421
                    wrote on last edited by
                    #9

                    thank you, tried some of them,
                    however looks most of these are not working for me.
                    so I'm writing cmakelists.txt from scratch.

                    I know this question is not for this forum,
                    but rpobably here are a devs who uses cmake in a projects and can explain basic questions:

                    1. When I'm creating cmake project it (QT Creator) suggests me to select which background I wish to generate for (Nmake, Ninja) and platform (x86, x64).
                      So if I selected one option (nmake x86 in my case) how can I change this for some builds? in next time cmake runs, qt creator doesn't allow me to select other targets. I'd prefer to understand where I can change this manually , outside of IDE.

                    2. I need to have a few builds, traditionally - x86,x64,release,debug. Should this be separated CMakeLists.txt(s) or can be configured in single file? Could you provide me with samples or URLs of useful examples?

                    3. For some builds (mostly for releases), I'd prefer to run the process from command line, I see that simple running of "cmake" start the generating , however this doesn't build the target completely, just prepare makefile for Nmake. What is a best practice to run full cycle of the building? cmd file with cmake and nmake after that?

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

                      AFAIK, with cmake, you create multiple build folders, one for each architecture you want to support.

                      You call cmake in it to prepare the build tree and either you directly pass the correct flags/defines or your edit the build tree using ccmake

                      Yes, command prompt cmake -> nmake or mingw32-make depending on your compiler.

                      Hope it helps

                      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