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. fatal error: private/qringbuffer_p.h: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

fatal error: private/qringbuffer_p.h: No such file or directory

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 3 Posters 2.0k Views 1 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.
  • M Offline
    M Offline
    micha_eleric
    wrote on 14 Feb 2022, 01:16 last edited by
    #1

    i have:
    sudo apt-get install libqt5serialport5-dev
    sudo apt-get install qt5-default
    sudo apt-get install qtbase5-private-dev

    and still get:
    fatal error: private/qringbuffer_p.h: No such file or directory

    after each.

    looks like it is an old issue, and very few internet search results in english.

    how to fix?

    error occurs when running "sudo make" in root dir

    /$ sudo make
    cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /qtserialport/src/src.pro ) && make -f Makefile
    make[1]: Entering directory '/src'
    cd serialport/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /qtserialport/src/serialport/serialport.pro ) && make -f Makefile
    make[2]: Entering directory '/src/serialport'
    g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_SERIALPORT_LIB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I/qtserialport/src/serialport -I. -I/qtserialport/src/serialport -I/include -I/include/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qserialport.o /qtserialport/src/serialport/qserialport.cpp
    In file included from /qtserialport/src/serialport/qserialport_unix_p.h:57,
    from /qtserialport/src/serialport/qserialport.cpp:56:
    /qtserialport/src/serialport/qserialport_p.h:60:10: fatal error: private/qringbuffer_p.h: No such file or directory
    60 | #include <private/qringbuffer_p.h>
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [Makefile:405: .obj/qserialport.o] Error 1
    make[2]: Leaving directory '/src/serialport'
    make[1]: *** [Makefile:47: sub-serialport-make_first] Error 2
    make[1]: Leaving directory '/src'
    make: *** [Makefile:49: sub-src-make_first-ordered] Error 2

    J 1 Reply Last reply 14 Feb 2022, 06:23
    0
    • M micha_eleric
      14 Feb 2022, 01:16

      i have:
      sudo apt-get install libqt5serialport5-dev
      sudo apt-get install qt5-default
      sudo apt-get install qtbase5-private-dev

      and still get:
      fatal error: private/qringbuffer_p.h: No such file or directory

      after each.

      looks like it is an old issue, and very few internet search results in english.

      how to fix?

      error occurs when running "sudo make" in root dir

      /$ sudo make
      cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /qtserialport/src/src.pro ) && make -f Makefile
      make[1]: Entering directory '/src'
      cd serialport/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /qtserialport/src/serialport/serialport.pro ) && make -f Makefile
      make[2]: Entering directory '/src/serialport'
      g++ -c -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_SERIALPORT_LIB -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I/qtserialport/src/serialport -I. -I/qtserialport/src/serialport -I/include -I/include/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o .obj/qserialport.o /qtserialport/src/serialport/qserialport.cpp
      In file included from /qtserialport/src/serialport/qserialport_unix_p.h:57,
      from /qtserialport/src/serialport/qserialport.cpp:56:
      /qtserialport/src/serialport/qserialport_p.h:60:10: fatal error: private/qringbuffer_p.h: No such file or directory
      60 | #include <private/qringbuffer_p.h>
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      make[2]: *** [Makefile:405: .obj/qserialport.o] Error 1
      make[2]: Leaving directory '/src/serialport'
      make[1]: *** [Makefile:47: sub-serialport-make_first] Error 2
      make[1]: Leaving directory '/src'
      make: *** [Makefile:49: sub-src-make_first-ordered] Error 2

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Feb 2022, 06:23 last edited by
      #2

      @micha_eleric Are you trying to build QtSerialport?
      Didn't you install it using "sudo apt-get install libqt5serialport5-dev"?
      So, what are you trying to achieve?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 14 Feb 2022, 20:54
      1
      • J jsulm
        14 Feb 2022, 06:23

        @micha_eleric Are you trying to build QtSerialport?
        Didn't you install it using "sudo apt-get install libqt5serialport5-dev"?
        So, what are you trying to achieve?

        M Offline
        M Offline
        micha_eleric
        wrote on 14 Feb 2022, 20:54 last edited by
        #3

        @jsulm yah, trying to install qtserialport, but keep getting errors that things are missing. this is the latest that i have, and not found a solution to.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Feb 2022, 21:05 last edited by
          #4

          Hi,

          Why are you trying to build QSerialPort since you installed the package ?

          That said, where did you get the sources from ?

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

          M 1 Reply Last reply 14 Feb 2022, 21:10
          0
          • S SGaist
            14 Feb 2022, 21:05

            Hi,

            Why are you trying to build QSerialPort since you installed the package ?

            That said, where did you get the sources from ?

            M Offline
            M Offline
            micha_eleric
            wrote on 14 Feb 2022, 21:10 last edited by micha_eleric
            #5

            @SGaist https://wiki.qt.io/Qt_Serial_Port

            i got this far:
            and next if you use GCC compiler then to do:

            $ make

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Feb 2022, 21:15 last edited by
              #6

              That does not answer the question of: why ?
              Unless you are hitting a bug with the version provided with your Qt installation, I fail to see the motivation of building the module yourself.

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

              M 1 Reply Last reply 14 Feb 2022, 21:41
              0
              • S SGaist
                14 Feb 2022, 21:15

                That does not answer the question of: why ?
                Unless you are hitting a bug with the version provided with your Qt installation, I fail to see the motivation of building the module yourself.

                M Offline
                M Offline
                micha_eleric
                wrote on 14 Feb 2022, 21:41 last edited by micha_eleric
                #7

                @SGaist sudo qmake ../qtserialport/qtserialport.pro
                [sudo] password for michaeleric:
                QDir::mkpath: Empty or null file name

                first error. now i have to retrace what else i did

                "qmake" is not recognized, given the first time i ran qmake ../qtserialport/qtserialport.pro

                which took me to:
                https://askubuntu.com/questions/938422/qmake-is-not-recognized

                so i ran:
                sudo update-alternatives --install /usr/bin/qmake qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake 100

                sudo update-alternatives --install /usr/bin/qmake

                going back through the commands, i can not get same errors, so dont know if they are fixxed, or just not reshowing.

                "qmake" is not recognized, only showed once, even after i reran the command, and that was three days ago.

                well, i ran "make" again, and again got:
                /qtserialport/src/serialport/qserialport_p.h:60:10: fatal error: private/qringbuffer_p.h: No such file or directory
                60 | #include <private/qringbuffer_p.h>
                | ^~~~~~~~~~~~~~~~~~~~~~~~~
                compilation terminated.
                make[2]: *** [Makefile:405: .obj/qserialport.o] Error 1
                make[2]: Leaving directory '/src/serialport'
                make[1]: *** [Makefile:47: sub-serialport-make_first] Error 2
                make[1]: Leaving directory '/src'
                make: *** [Makefile:49: sub-src-make_first-ordered] Error 2

                private/qringbuffer_p.h: No such file or directory, shows up:
                https://stackoverflow.com/questions/21814224/private-qringbuffer-p-h-no-such-file-or-directory-installing-qtserialport

                there was two to four results in english, but now only one.
                one was from this forum, but a few years old. either from 2014 or kubuntu 14
                https://forum.qt.io/topic/37145/qtserialport-build-problem-linux-debian-qt4/3

                in https://forum.qt.io/topic/37145/qtserialport-build-problem-linux-debian-qt4/4 , "A file "qringbuffer_p.h" contains in "src\serialport\qt4support\include\private" directory. So, at process of building for Qt4 this file always takes from this directory.

                The path to this directory is specified in the "install-helper.pri" file. Thus, it is possible that the QTSERIALPORT_PROJECT_QT4SUPPORT_INCLUDEDIR variable is empty in your case. Check it."
                the variable is not only empty, it is missing.

                i wonder why part of a self install program would be missing something need to install.

                after looking through files, looks like qtserialport in there. now wondering why make was next on list for install.

                although i am not finding any .h files, and eclipse not finding QSerialPort.

                finally found the .h files. still wondering why make was next on list for installing lib

                J 1 Reply Last reply 15 Feb 2022, 07:23
                0
                • M micha_eleric
                  14 Feb 2022, 21:41

                  @SGaist sudo qmake ../qtserialport/qtserialport.pro
                  [sudo] password for michaeleric:
                  QDir::mkpath: Empty or null file name

                  first error. now i have to retrace what else i did

                  "qmake" is not recognized, given the first time i ran qmake ../qtserialport/qtserialport.pro

                  which took me to:
                  https://askubuntu.com/questions/938422/qmake-is-not-recognized

                  so i ran:
                  sudo update-alternatives --install /usr/bin/qmake qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake 100

                  sudo update-alternatives --install /usr/bin/qmake

                  going back through the commands, i can not get same errors, so dont know if they are fixxed, or just not reshowing.

                  "qmake" is not recognized, only showed once, even after i reran the command, and that was three days ago.

                  well, i ran "make" again, and again got:
                  /qtserialport/src/serialport/qserialport_p.h:60:10: fatal error: private/qringbuffer_p.h: No such file or directory
                  60 | #include <private/qringbuffer_p.h>
                  | ^~~~~~~~~~~~~~~~~~~~~~~~~
                  compilation terminated.
                  make[2]: *** [Makefile:405: .obj/qserialport.o] Error 1
                  make[2]: Leaving directory '/src/serialport'
                  make[1]: *** [Makefile:47: sub-serialport-make_first] Error 2
                  make[1]: Leaving directory '/src'
                  make: *** [Makefile:49: sub-src-make_first-ordered] Error 2

                  private/qringbuffer_p.h: No such file or directory, shows up:
                  https://stackoverflow.com/questions/21814224/private-qringbuffer-p-h-no-such-file-or-directory-installing-qtserialport

                  there was two to four results in english, but now only one.
                  one was from this forum, but a few years old. either from 2014 or kubuntu 14
                  https://forum.qt.io/topic/37145/qtserialport-build-problem-linux-debian-qt4/3

                  in https://forum.qt.io/topic/37145/qtserialport-build-problem-linux-debian-qt4/4 , "A file "qringbuffer_p.h" contains in "src\serialport\qt4support\include\private" directory. So, at process of building for Qt4 this file always takes from this directory.

                  The path to this directory is specified in the "install-helper.pri" file. Thus, it is possible that the QTSERIALPORT_PROJECT_QT4SUPPORT_INCLUDEDIR variable is empty in your case. Check it."
                  the variable is not only empty, it is missing.

                  i wonder why part of a self install program would be missing something need to install.

                  after looking through files, looks like qtserialport in there. now wondering why make was next on list for install.

                  although i am not finding any .h files, and eclipse not finding QSerialPort.

                  finally found the .h files. still wondering why make was next on list for installing lib

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 15 Feb 2022, 07:23 last edited by
                  #8

                  @micha_eleric Can you PLEASE answer this simple question which was asked several times already in this thread: why do you want to build QtSerialPort by yourself?!
                  You already installed libqt5serialport5-dev

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  M 1 Reply Last reply 15 Feb 2022, 18:28
                  0
                  • J jsulm
                    15 Feb 2022, 07:23

                    @micha_eleric Can you PLEASE answer this simple question which was asked several times already in this thread: why do you want to build QtSerialPort by yourself?!
                    You already installed libqt5serialport5-dev

                    M Offline
                    M Offline
                    micha_eleric
                    wrote on 15 Feb 2022, 18:28 last edited by
                    #9

                    @jsulm Because it was the next on the list. Appeared to be the next step.

                    J 1 Reply Last reply 16 Feb 2022, 05:28
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 15 Feb 2022, 19:27 last edited by
                      #10

                      We still do not know why you are trying to build the QtSerialPort module since it has been part of the official Qt packages since Qt 5.1 and the Qt 5 series is at 5.15.

                      You even installed your distribution provided QtSerialPort development package.

                      Do you realize that what you are currently doing looks a bit senseless ? Therefore, again, one more time, why do you manually need to build QtSerialPort ? Which version of Qt are you trying to use ? What is your target ?

                      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
                      • M micha_eleric
                        15 Feb 2022, 18:28

                        @jsulm Because it was the next on the list. Appeared to be the next step.

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 16 Feb 2022, 05:28 last edited by
                        #11

                        @micha_eleric said in fatal error: private/qringbuffer_p.h: No such file or directory:

                        Because it was the next on the list

                        So what? You already installed libqt5serialport5-dev, there is no need to build it by yourself unless you have some real need to do so.
                        So, simply use QtSerialPort you already installed and do not build it by yourself...

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0

                        1/11

                        14 Feb 2022, 01:16

                        • Login

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