Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved INCLUDEPATH not honored when compiling using MSVC2013

    General and Desktop
    msvc2013 include qtcreator compiling
    2
    6
    1825
    Loading More Posts
    • 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
      TheFlyingMooseMan last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • T
          TheFlyingMooseMan @SGaist last edited by

          @SGaist Just located in c:\temp

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • T
              TheFlyingMooseMan last edited by

              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 Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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 Reply Quote 0
                • First post
                  Last post