From: excalamus--- via <help-guix@gnu.org>
To: Help Guix <help-guix@gnu.org>
Subject: Compiling Qt application - error: linux/errno.h: No such file
Date: Sun, 6 Jun 2021 18:33:54 +0200 (CEST) [thread overview]
Message-ID: <MbXA61O--3-2@tutanota.com> (raw)
I'm a Python developer familiar with PySide/PyQt teaching myself how to use Qt with C++ and following a tutorial on how to compile a Qt application without QtCreator (https://www.linux.org/threads/c-tutorial-create-qt-applications-without-qtcreator.18409/).
I've installed what I believe are the necessary Guix packages: gcc (for g++), make, qtbase (for qmake and qtwidgets), and qtdeclarative (because the tutorial uses that later on). When trying to compile the basic main window I get the following error:
g++ -c -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I../../.guix-profile/include/qt5 -I../../.guix-profile/include/qt5/QtWidgets -I../../.guix-profile/include/qt5/QtGui -I../../.guix-profile/include/qt5/QtCore -I. -I/gnu/store/m5l6pwzlk3909n9cka9c9qlk7f0lqbig-libdrm-2.4.103/include/libdrm -I../../.guix-profile/lib/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/errno.h:28,
from /gnu/store/jc90jrkd40az0zggw84s3ax6m351jlkg-gcc-10.3.0/include/c++/cerrno:42,
from /gnu/store/jc90jrkd40az0zggw84s3ax6m351jlkg-gcc-10.3.0/include/c++/ext/string_conversions.h:44,
from /gnu/store/jc90jrkd40az0zggw84s3ax6m351jlkg-gcc-10.3.0/include/c++/bits/basic_string.h:6545,
from /gnu/store/jc90jrkd40az0zggw84s3ax6m351jlkg-gcc-10.3.0/include/c++/string:55,
from ../../.guix-profile/include/qt5/QtCore/qbytearray.h:52,
from ../../.guix-profile/include/qt5/QtCore/qstring.h:50,
from ../../.guix-profile/include/qt5/QtCore/qobject.h:47,
from ../../.guix-profile/include/qt5/QtCore/qabstractanimation.h:43,
from ../../.guix-profile/include/qt5/QtCore/QtCore:6,
from ../../.guix-profile/include/qt5/QtWidgets/QtWidgetsDepends:3,
from ../../.guix-profile/include/qt5/QtWidgets/QtWidgets:3,
from main.cpp:2:
/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/bits/errno.h:26:11: fatal error: linux/errno.h: No such file or directory
26 | # include <linux/errno.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1191: main.o] Error 1
If I'm reading the error output correctly, the error occurs when trying to compile the main.cpp object file which uses includes the QtWidgets module. The error is in that portion of the source, so I don't think there's anything I could comment out from the makefile.
Browsing the documentation for glibc, it looks like linux/errno.h is a glibc extension. Is that not included in the Guix glibc package? I don't see another Guix package for glibc extensions.
next reply other threads:[~2021-06-06 16:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-06 16:33 excalamus--- via [this message]
2021-06-06 16:53 ` Compiling Qt application - error: linux/errno.h: No such file Tobias Geerinckx-Rice
2021-06-07 1:58 ` excalamus--- via
2021-06-20 1:08 ` excalamus--- via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MbXA61O--3-2@tutanota.com \
--to=help-guix@gnu.org \
--cc=excalamus@tutanota.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.