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. Qt5 Add-in Visual studio 2013 .pro file generation doesn't work

Qt5 Add-in Visual studio 2013 .pro file generation doesn't work

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.7k 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.
  • MarKSM Offline
    MarKSM Offline
    MarKS
    wrote on last edited by MarKS
    #1

    I am working with Qt libraries and OpenCV libraries on Visual studio 2013.
    I can successfully create a .pro file from the Visual studio add-in.
    But when i try to open .pro file in QtCreator i can see only the project file. I cannot see my header or cpp files linked to the project. I don't know if this is the right way to do it. Any help would be appreciated.

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

      Hi,

      Can you share the content of the pro file ?

      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
      • MarKSM Offline
        MarKSM Offline
        MarKS
        wrote on last edited by SGaist
        #3

        Here goes my .pro content:

        # ----------------------------------------------------
        # This file is generated by the Qt Visual Studio Add-in.
        # ------------------------------------------------------
        
        TEMPLATE = app
        TARGET = arbeittracking
        DESTDIR = ../Debug
        QT += core xml xmlpatterns widgets gui
        CONFIG += debug console
        DEFINES += WIN64 QT_DLL QT_WIDGETS_LIB train_ QT_XMLPATTERNS_LIB
        LIBS += -LD:\\libraries\\opencv\\build\\x86\\vc12\\bin \
            opencv_core249d.dll \
            opencv_highgui249d.dll \
            opencv_imgproc249d.dll \
            opencv_features2d249d.dll \
            opencv_calib3d249d.dll \
        
        INCLUDEPATH += F:\opencv-2.4.9\CV\install\include
        DEPENDPATH += .
        MOC_DIR += ./GeneratedFiles/debug
        OBJECTS_DIR += debug
        UI_DIR += ./GeneratedFiles
        RCC_DIR += ./GeneratedFiles
        include(C:/Users/maruvada/Desktop/arbeittracking.pri)
        

        [edit: added coding tags SGaist]

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

          That list of dlls looks wrong. You should have a list of -lopencv_XXX249d

          You don't link agains dlls but lib files

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

            Ok i see a problem there i resolved it. But i have added all these library links after creating the .pro file in Visual studio. And the main issue stays the same like when i generate a .pro file from VS add-in and i open the .pro file with qtcreator i dont see my header files or cpp files but i just see the .pro content. It would be good if i could have attached a snapshot of my issue in QtCreator here.

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

              It seems that when generating the pro file neither SOURCES not HEADERS have been added. You can do it by hand and you should see your code files correctly

              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