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. Including generic file headers
Forum Updated to NodeBB v4.3 + New Features

Including generic file headers

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.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.
  • S Offline
    S Offline
    Sonya
    wrote on last edited by Sonya
    #1

    Dear All,

    I've a difficulty with specifying the generic header files, Qt creator always complains about the "C:\Users...\Downloads\occQt-master\occView.h:16: error: C1083: Cannot open include file: 'OpenGl_GraphicDriver.hxx': No such file or directory"

    but interestingly in source files when I hit CTRL+Space intellisense proposes "OpenGl_GraphicDriver.hxx" code completion, based on that I believe that Qt knows the location of that files but grudgingly keeps denying that can not find it

    Your helps will be appreicated!

    Content of PRO file
    QT += core gui opengl

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = occQt
    TEMPLATE = app

    FORMS +=
    occQt.ui

    SOURCES += main.cpp
    occQt.cpp
    OccView.cpp

    HEADERS +=
    occQt.h
    OccView.h

    INCLUDEPATH = C:/OpenCASCADE6.8.0\opencascade-6.8.0/inc

    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKernel.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKMath.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKBRep.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKTopAlgo.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKPrim.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKBO.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKOffset.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKService.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKV3d.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKOpenGl.lib
    win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKFillet.lib

    unix: LIBS += -lTKernel -lTKMath -lTKBrep -lTKTopAlgo -lTKPrim -lTKBO -lTKOffset -lTKService -lTKV3d -lTKOpenGl -lTKFillet

    RESOURCES +=
    occqt.qrc

    K 1 Reply Last reply
    0
    • S Sonya

      Dear All,

      I've a difficulty with specifying the generic header files, Qt creator always complains about the "C:\Users...\Downloads\occQt-master\occView.h:16: error: C1083: Cannot open include file: 'OpenGl_GraphicDriver.hxx': No such file or directory"

      but interestingly in source files when I hit CTRL+Space intellisense proposes "OpenGl_GraphicDriver.hxx" code completion, based on that I believe that Qt knows the location of that files but grudgingly keeps denying that can not find it

      Your helps will be appreicated!

      Content of PRO file
      QT += core gui opengl

      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

      TARGET = occQt
      TEMPLATE = app

      FORMS +=
      occQt.ui

      SOURCES += main.cpp
      occQt.cpp
      OccView.cpp

      HEADERS +=
      occQt.h
      OccView.h

      INCLUDEPATH = C:/OpenCASCADE6.8.0\opencascade-6.8.0/inc

      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKernel.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKMath.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKBRep.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKTopAlgo.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKPrim.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKBO.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKOffset.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKService.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKV3d.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKOpenGl.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKFillet.lib

      unix: LIBS += -lTKernel -lTKMath -lTKBrep -lTKTopAlgo -lTKPrim -lTKBO -lTKOffset -lTKService -lTKV3d -lTKOpenGl -lTKFillet

      RESOURCES +=
      occqt.qrc

      K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      @Sonya

      To be precise, this is a compile error and not an error of Qt creator.

      is this the path where the header file can be found ?

      INCLUDEPATH = C:/OpenCASCADE6.8.0\opencascade-6.8.0/inc
      

      This path is different from places where you placed your libs?
      Is it correct that the drive letter is different?

      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKernel.lib
      win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKMath.lib
      

      BTW you are using backward slashes as folder separators. Those are windows specific and typically Qt tools are not happy about those, because they are also used as end of line marker when a continuation line is follwoing. Better change those to forward slahses '/'.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sonya
        wrote on last edited by Sonya
        #3

        Hi,

        INCLUDEPATH = C:/OpenCASCADE6.8.0\opencascade-6.8.0/inc

        yes that's the location of headers files, I've tried both options forward / backward slashes, but still the same complaint by the compiler.

        This path is different from places where you placed your libs?
        Is it correct that the drive letter is different?
        win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKernel.lib
        win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKMath.lib

        Yes that's the different location , actually it is the legacy code and library location is the original writers location of library path, I didn't change it cause it doesn't seem to be causing the problem.

        K 1 Reply Last reply
        0
        • S Sonya

          Hi,

          INCLUDEPATH = C:/OpenCASCADE6.8.0\opencascade-6.8.0/inc

          yes that's the location of headers files, I've tried both options forward / backward slashes, but still the same complaint by the compiler.

          This path is different from places where you placed your libs?
          Is it correct that the drive letter is different?
          win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKernel.lib
          win32: LIBS += D:\OpenCASCADE6.8.0\opencascade-6.8.0\win32\vc12\libd\TKMath.lib

          Yes that's the different location , actually it is the legacy code and library location is the original writers location of library path, I didn't change it cause it doesn't seem to be causing the problem.

          K Offline
          K Offline
          koahnig
          wrote on last edited by koahnig
          #4

          @Sonya
          I recommend to use forward slashes, because even though it is working you may face less side effects.

          Your INCLUDEPATH has a simply assign overwriting previous and possibly default assignments. Change to:

          INCLUDEPATH += C:/OpenCASCADE6.8.0/opencascade-6.8.0/inc
          

          In case you have another similar assignment in your pro-file, but further down, that might be the source of the problem.

          I did not see the first time, there is also a backward slash in the include path. Change that for sure.

          Also you can check the assignment to INCLUDEPATH

          INCLUDEPATH += C:/OpenCASCADE6.8.0/opencascade-6.8.0/inc
          message("my INCLUDEPATH  " $$INCLUDEPATH)
          

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1
          • ZlatomirZ Offline
            ZlatomirZ Offline
            Zlatomir
            wrote on last edited by
            #5

            And don't forget to run qmake after you modify the .pro file, that will regenerate the makefiles with the correct paths.

            https://forum.qt.io/category/41/romanian

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved