fatal error: private/qringbuffer_p.h: No such file or directory
-
wrote on 14 Feb 2022, 01:16 last edited by
i have:
sudo apt-get install libqt5serialport5-dev
sudo apt-get install qt5-default
sudo apt-get install qtbase5-private-devand still get:
fatal error: private/qringbuffer_p.h: No such file or directoryafter 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 -
i have:
sudo apt-get install libqt5serialport5-dev
sudo apt-get install qt5-default
sudo apt-get install qtbase5-private-devand still get:
fatal error: private/qringbuffer_p.h: No such file or directoryafter 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@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? -
@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?wrote on 14 Feb 2022, 20:54 last edited by@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.
-
Hi,
Why are you trying to build QSerialPort since you installed the package ?
That said, where did you get the sources from ?
-
Hi,
Why are you trying to build QSerialPort since you installed the package ?
That said, where did you get the sources from ?
wrote on 14 Feb 2022, 21:10 last edited by micha_eleric@SGaist https://wiki.qt.io/Qt_Serial_Port
i got this far:
and next if you use GCC compiler then to do:$ make
-
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. -
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.wrote on 14 Feb 2022, 21:41 last edited by micha_eleric@SGaist sudo qmake ../qtserialport/qtserialport.pro
[sudo] password for michaeleric:
QDir::mkpath: Empty or null file namefirst 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-recognizedso i ran:
sudo update-alternatives --install /usr/bin/qmake qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake 100sudo 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 2private/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-qtserialportthere 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/3in 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
-
@SGaist sudo qmake ../qtserialport/qtserialport.pro
[sudo] password for michaeleric:
QDir::mkpath: Empty or null file namefirst 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-recognizedso i ran:
sudo update-alternatives --install /usr/bin/qmake qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake 100sudo 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 2private/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-qtserialportthere 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/3in 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
@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 -
@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-devwrote on 15 Feb 2022, 18:28 last edited by@jsulm Because it was the next on the list. Appeared to be the next step.
-
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 ?
-
@jsulm Because it was the next on the list. Appeared to be the next step.
@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...
1/11