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. INCLUDEPATH not honored when compiling using MSVC2013
QtWS25 Last Chance

INCLUDEPATH not honored when compiling using MSVC2013

Scheduled Pinned Locked Moved Solved General and Desktop
msvc2013includeqtcreatorcompiling
6 Posts 2 Posters 2.3k 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.
  • T Offline
    T Offline
    TheFlyingMooseMan
    wrote on 19 Mar 2016, 23:30 last edited by
    #1

    I downloaded and installed qt-opensource-windows-x86-msvc2013-5.5.1.exe.
    With MSVC2013 I created a library that comes with its own include files.
    For the sake of simplicity, I put the include file in C:\temp.
    I also added INCLUDEPATH += C:/temp to the .pro file
    However, when I try to compile, there is an error that the compiler cannot file this file:

    C:\Users\rpamm\songbase\app\SBMediaPlayer.cpp:5: error: C1083: Cannot open include file: 'portaudio.h': No such file or directory
    
    

    Looking at the compiler output, I don't see any reference to the INCLUDEPATH (added to the .pro file). Following is the output at it appears in the 'Compile Ouput' tab:

    	C:\Qt\Qt5.5.1\Tools\QtCreator\bin\jom.exe -f Makefile.Release
    	cl -c -nologo -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -GR -W3 -w34100 -w34189 -w44996 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -I..\app -I. -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtWebKitWidgets -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtWidgets -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtWebKit -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtMultimedia -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtGui -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtANGLE -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtSql -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtXml -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtNetwork -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\include\QtCore -Irelease -I. -I..\..\..\..\Qt\Qt5.5.1\5.5\msvc2013\mkspecs\win32-msvc2013 -Forelease\ @C:\Users\rpamm\AppData\Local\Temp\SBMediaPlayer.obj.10100.110.jom
    SBMediaPlayer.cpp
    ..\app\SBMediaPlayer.cpp(5) : fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
    jom: C:\Users\rpamm\songbase\build-Songbase-Desktop_Qt_5_5_1_MSVC2013_32bit-Release\Makefile.Release [release\SBMediaPlayer.obj] Error 2
    
    

    Am I missing something?

    Thanks for any help/hints/directions.

    Roy

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Mar 2016, 00:04 last edited by
      #2

      Hi,

      Is portaudio.h located in C:/temp or in a subfolder ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      T 1 Reply Last reply 20 Mar 2016, 00:20
      0
      • S SGaist
        20 Mar 2016, 00:04

        Hi,

        Is portaudio.h located in C:/temp or in a subfolder ?

        T Offline
        T Offline
        TheFlyingMooseMan
        wrote on 20 Mar 2016, 00:20 last edited by
        #3

        @SGaist Just located in c:\temp

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 20 Mar 2016, 00:24 last edited by
          #4

          Did you re-run qmake after modifying 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
          1
          • T Offline
            T Offline
            TheFlyingMooseMan
            wrote on 20 Mar 2016, 00:38 last edited by
            #5

            You're the man! That did the trick.
            I still don't see the include path displayed in the compiler output tab, not sure why.

            Thanks again for helping me out.

            Roy

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 20 Mar 2016, 18:25 last edited by
              #6

              You're welcome !

              Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

              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

              6/6

              20 Mar 2016, 18:25

              • Login

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