Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.4: how to write a file .pro
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4: how to write a file .pro

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.0k Views 2 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.
  • F Offline
    F Offline
    Filippo_B
    wrote on last edited by
    #1

    Hello everyone! I'm trying to use Qt for the firts time and I have some doubts about how to write a file.pro for a project.
    Specifically, I have to use VTK libraries but i don't understand how to communicate these libraries to my code.
    Thnaks for the help! :)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      if you use Qt Creator you have a lot of wizard helping you.
      For other stuff the manual is your best friend

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Huulivoide
        wrote on last edited by Huulivoide
        #3

        I would suggest using cmake instead of qmake in your project, as vtk provides
        cmake macros but no pkg-config or qmake files. Things will be much more simple.
        If you really want to go for qmake, you need to set LIBS & INCLUDPATHS manually
        to point to the vtk directories, but take note that this can easily break the compiling
        on other machines, if the VTK version is installed to different path or if the installed
        version is different as the VTK libs have a version suffix in their names.

        See http://doc.qt.io/qt-5/cmake-manual.html for more info on using cmake with Qt,
        and http://www.vtk.org/Wiki/VTK/Build_System_Migration for VTK specific bits.

        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