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. Trouble with #include in Windows

Trouble with #include in Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
includevs2017opencv
2 Posts 1 Posters 670 Views
  • 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
    mdresser
    wrote on 26 Jan 2019, 03:02 last edited by
    #1

    I am trying to get started with Qt on Windows 10 using Qt Creator 4.8.1 with MSVC2017

    I've gotten to the point of trying to compile/run the code and am getting an error C1083 as shown below:
    0_1548470631596_36a2db6f-5c28-48e4-a37a-6da735fb0bf8-image.png

    I've verified that opencv.hpp does exist at the location indicated when I hover the cursor over #include but somehow the compiler isn't finding it?

    The .pro file includes this:

    win32: {
        include("D:\newopencv\build\opencv.pri")
    }
    

    The opencv.pri file looks like this:

    INCLUDEPATH += D:/newopencv/build/install/include
    Debug: {
    LIBS += -lD:/newopencv/build/install/x64/vc15/lib/opencv_world342d
    }
    Release: {
    LIBS += -lD:/newopencv/build/install/x64/vc15/lib/opencv_world342
    }
    

    opencv.hpp is essentially a long list of #includes and I wonder if one or more of them is missing but I don't see an obvious way to figure out which one short of parsing the file and comparing it to the include directory.

    Thanks in advance for any suggestions!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mdresser
      wrote on 26 Jan 2019, 03:44 last edited by
      #2

      Problem Solved:
      '/' not '\' in .pro file AND run qmake after change.

      I tried changing '\' to '/' but didn't run qmake.

      1 Reply Last reply
      2

      1/2

      26 Jan 2019, 03:02

      • Login

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