Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. I am getting No such file or directory error for every Qt include inserted in C++ code
Forum Updated to NodeBB v4.3 + New Features

I am getting No such file or directory error for every Qt include inserted in C++ code

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
28 Posts 5 Posters 12.9k Views 3 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 SGaist
    21 May 2021, 19:26

    @kalek33 said in I am getting No such file or directory error for every Qt include inserted in C++ code:

    @SGaist Sure, but why didn't he succeed... and if he didn't succeed either?

    You do realize that with the information given there's no way to know ?

    In between, you can either use Qt Creator to build the project using the pro file or install the Qt VS tools and import the project into Visual Studio. In any case, you are not locked out of progress.

    K Offline
    K Offline
    kalek33
    wrote on 21 May 2021, 19:32 last edited by
    #19

    @SGaist I've been trying for almost 24 hours, could you try it yourself and see if it gives you the same mistake pretty please?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 May 2021, 19:43 last edited by
      #20

      No because I do not have a Windows machine at hand.
      However my constations about missing information applies.

      What did you exactly do ?
      Which error messages did you got ?
      Which version of Qt are you using ?

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

      K 1 Reply Last reply 21 May 2021, 20:25
      0
      • S SGaist
        21 May 2021, 19:43

        No because I do not have a Windows machine at hand.
        However my constations about missing information applies.

        What did you exactly do ?
        Which error messages did you got ?
        Which version of Qt are you using ?

        K Offline
        K Offline
        kalek33
        wrote on 21 May 2021, 20:25 last edited by
        #21

        @SGaist I use 5.10.1 And the .pro file is already there for server client but for windows client it can not be used, because both are different. I am running qmake -project in windows client folder which creates a different file from the one already present in server client.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 May 2021, 20:34 last edited by
          #22

          And what is the issue with that file ?
          These two folders have different content so that's normal the .pro files are different.

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

          S 2 Replies Last reply 22 May 2021, 15:05
          1
          • S SGaist
            21 May 2021, 18:42

            @kalek33 hi and welcome to devnet,

            The suggestions still holds: use

            qmake -project QT+=widgets
            

            In the client folder to create the .pro file.

            Then you can use Qt Creator to build it.

            S Offline
            S Offline
            sc0rp10n
            wrote on 22 May 2021, 13:47 last edited by
            #23

            @SGaist I did this with Qt 5.10.1 MSVC 2015
            I opened the .pro file in QtCreator and built TS3Tunnel.client
            This is the error it gives

            C:\Users\princ\Downloads\TS3Tunnel\TS3Tunnel.Client\Client.h:28: error: C1083: Cannot open include file: 'opus/opus.h': No such file or directory
            C:\Users\princ\Downloads\TS3Tunnel\TS3Tunnel.Client\Client.h:28: error: C1083: Cannot open include file: 'opus/opus.h': No such file or directory
            C:\Users\princ\Downloads\TS3Tunnel\TS3Tunnel.Client\Client.h:28: error: C1083: Cannot open include file: 'opus/opus.h': No such file or directory
            C:\Users\princ\Downloads\TS3Tunnel\TS3Tunnel.Client\Client.h:28: error: C1083: Cannot open include file: 'opus/opus.h': No such file or directory
            C:\Users\princ\Downloads\TS3Tunnel\TS3Tunnel.Client\Client.h:28: error: C1083: Cannot open include file: 'opus/opus.h': No such file or directory
            :-1: warning: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe" is used by qmake, but "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\cl.exe" is configured in the kit.
            Please update your kit (Desktop Qt 5.10.1 MSVC2015 64bit) or choose a mkspec for qmake that matches your target environment better.
            

            Should I install VS 2015 and uninstall 2019?
            I have installed PortAudio from vcpkg

            The opus error still comes if I run .\vcpkg\vcpkg install opus:x64-windows command to install opus. The opus.h is present after running this command in "C:\src\vcpkg\installed\x64-windows\include\opus"

            Also after installing opus the last warning error does not come, when I build from Qt creator

            1 Reply Last reply
            0
            • S SGaist
              21 May 2021, 20:34

              And what is the issue with that file ?
              These two folders have different content so that's normal the .pro files are different.

              S Offline
              S Offline
              sc0rp10n
              wrote on 22 May 2021, 15:05 last edited by
              #24
              This post is deleted!
              1 Reply Last reply
              0
              • S SGaist
                21 May 2021, 20:34

                And what is the issue with that file ?
                These two folders have different content so that's normal the .pro files are different.

                S Offline
                S Offline
                sc0rp10n
                wrote on 22 May 2021, 15:42 last edited by
                #25

                @SGaist after running the qmake command and building using QT creator what would I get as output? The exe file or do i need to do something else too after that to get exe file?

                S 1 Reply Last reply 22 May 2021, 18:13
                0
                • S Offline
                  S Offline
                  sc0rp10n
                  wrote on 22 May 2021, 16:46 last edited by
                  #26

                  When I set Qt version in project setting in VS 2015's Qt addin
                  I get this error
                  e70900f5-a71a-4218-a933-8b7007bce53e-image.png

                  And my project gets deleted/empty kind of
                  fd9c7a93-7887-429d-887c-c3949201299e-image.png

                  It happens for both options
                  a291ea16-6b0c-4e19-92b5-4dbeed68f0fe-image.png

                  How project looks before setting the version
                  9083fd9e-6ecd-4b84-8728-58423a3743dd-image.png

                  @Christian-Ehrlicher @J-Hilk @SGaist

                  1 Reply Last reply
                  0
                  • S sc0rp10n
                    22 May 2021, 15:42

                    @SGaist after running the qmake command and building using QT creator what would I get as output? The exe file or do i need to do something else too after that to get exe file?

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 22 May 2021, 18:13 last edited by SGaist
                    #27

                    @sc0rp10n said in I am getting No such file or directory error for every Qt include inserted in C++ code:

                    @SGaist after running the qmake command and building using QT creator what would I get as output? The exe file or do i need to do something else too after that to get exe file?

                    If your build succeeded, you have an application that you can run so just use the Run option of Qt Creator.

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

                    S 1 Reply Last reply 22 May 2021, 18:53
                    0
                    • S SGaist
                      22 May 2021, 18:13

                      @sc0rp10n said in I am getting No such file or directory error for every Qt include inserted in C++ code:

                      @SGaist after running the qmake command and building using QT creator what would I get as output? The exe file or do i need to do something else too after that to get exe file?

                      If your build succeeded, you have an application that you can run so just use the Run option of Qt Creator.

                      S Offline
                      S Offline
                      sc0rp10n
                      wrote on 22 May 2021, 18:53 last edited by
                      #28

                      @SGaist Ok Qt creator was giving a lot more errors related to code issues only (what I assume)
                      So trying out with Qt 5.7 open source
                      but i get this error while building from VS 2015

                      1>------ Build started: Project: TS3Tunnel.Client, Configuration: Debug Win32 ------
                      1>  main.cpp
                      1>  MainWindow.cpp
                      1>  PlaybackAudioGenerator.cpp
                      1>  Client.cpp
                      1>c:\users\princ\onedrive\documents\visual studio 2015\projects\ts3tunnel\ts3tunnel.client\PlaybackAudioGenerator.h(26): fatal error C1083: Cannot open include file: 'QBuffer': No such file or directory (compiling source file PlaybackAudioGenerator.cpp)
                      1>c:\users\princ\onedrive\documents\visual studio 2015\projects\ts3tunnel\ts3tunnel.client\Client.h(26): fatal error C1083: Cannot open include file: 'QObject': No such file or directory (compiling source file Client.cpp)
                      1>c:\users\princ\onedrive\documents\visual studio 2015\projects\ts3tunnel\ts3tunnel.client\MainWindow.h(29): fatal error C1083: Cannot open include file: 'QTimer': No such file or directory (compiling source file MainWindow.cpp)
                      1>c:\users\princ\onedrive\documents\visual studio 2015\projects\ts3tunnel\ts3tunnel.client\MainWindow.h(29): fatal error C1083: Cannot open include file: 'QTimer': No such file or directory (compiling source file main.cpp)
                      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
                      
                      1 Reply Last reply
                      0

                      28/28

                      22 May 2021, 18:53

                      • Login

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