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. Install vtk to QTCreator project in qmake.
Qt 6.11 is out! See what's new in the release blog

Install vtk to QTCreator project in qmake.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 3 Posters 4.0k 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
    Monra1738
    wrote on last edited by
    #1

    I was trying to add the vtk library to my QT project but I need CMake, and my project is using qmake.
    Is there anyway to install the vtk library without CMake using only qmake?

    My version is QT: 6.4.0
    QTCreator: 9.0.1
    Thank you.

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      sure you can. Simply add include paths and lib names of all VTK components you need to your project pro file.

      M 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        sure you can. Simply add include paths and lib names of all VTK components you need to your project pro file.

        M Offline
        M Offline
        Monra1738
        wrote on last edited by
        #3

        @JoeCFD Could you send the link of resource to install ?
        I read https://vtk.org/Wiki/VTK/Configure_and_Build and https://forum.qt.io/topic/109435/add-vtk-library-to-qt-project, but I could not find the correct way

        JoeCFDJ 1 Reply Last reply
        0
        • M Monra1738

          @JoeCFD Could you send the link of resource to install ?
          I read https://vtk.org/Wiki/VTK/Configure_and_Build and https://forum.qt.io/topic/109435/add-vtk-library-to-qt-project, but I could not find the correct way

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #4

          @Monra1738
          you build it from the source. You select what you need in the build. I did it before, but not any more.
          Check this out. Try it out and post the issues here if you have some in the build.
          https://www.cs.purdue.edu/homes/cs530/projects/project0.html

          M 1 Reply Last reply
          1
          • JoeCFDJ JoeCFD

            @Monra1738
            you build it from the source. You select what you need in the build. I did it before, but not any more.
            Check this out. Try it out and post the issues here if you have some in the build.
            https://www.cs.purdue.edu/homes/cs530/projects/project0.html

            M Offline
            M Offline
            Monra1738
            wrote on last edited by
            #5

            @JoeCFD said in Install vtk to QTCreator project in qmake.:

            @Monra1738
            you build it from the source. You select what you need in the build. I did it before, but not any more.
            Check this out. Try it out and post the issues here if you have some in the build.
            https://www.cs.purdue.edu/homes/cs530/projects/project0.html

            Tank you I will try.

            JoeCFDJ 1 Reply Last reply
            0
            • M Monra1738

              @JoeCFD said in Install vtk to QTCreator project in qmake.:

              @Monra1738
              you build it from the source. You select what you need in the build. I did it before, but not any more.
              Check this out. Try it out and post the issues here if you have some in the build.
              https://www.cs.purdue.edu/homes/cs530/projects/project0.html

              Tank you I will try.

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              @Monra1738 You may also think to switch to cmake since cmake is preferred from Qt6. There is a tool to convert pro projects to cmake ones
              https://forum.qt.io/topic/112403/is-there-a-tool-for-converting-qmake-and-cmake-files-to-each-other-one-click-conversion-easy-to-use/2

              M 1 Reply Last reply
              0
              • JoeCFDJ JoeCFD

                @Monra1738 You may also think to switch to cmake since cmake is preferred from Qt6. There is a tool to convert pro projects to cmake ones
                https://forum.qt.io/topic/112403/is-there-a-tool-for-converting-qmake-and-cmake-files-to-each-other-one-click-conversion-easy-to-use/2

                M Offline
                M Offline
                Monra1738
                wrote on last edited by
                #7

                @JoeCFD said in Install vtk to QTCreator project in qmake.:

                https://forum.qt.io/topic/112403/is-there-a-tool-for-converting-qmake-and-cmake-files-to-each-other-one-click-conversion-easy-to-use/2

                I am using c++, this tool I think is just for python.
                Anyway whithout CMake it is possible, because I try to add the new version of VTK 9.2.5 and I can not used.

                jsulmJ 1 Reply Last reply
                0
                • M Monra1738

                  @JoeCFD said in Install vtk to QTCreator project in qmake.:

                  https://forum.qt.io/topic/112403/is-there-a-tool-for-converting-qmake-and-cmake-files-to-each-other-one-click-conversion-easy-to-use/2

                  I am using c++, this tool I think is just for python.
                  Anyway whithout CMake it is possible, because I try to add the new version of VTK 9.2.5 and I can not used.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Monra1738 said in Install vtk to QTCreator project in qmake.:

                  I am using c++, this tool I think is just for python.

                  So what?
                  This tool is used to convert pro files to CMake files.

                  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