Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69140

glib.h include path is missing when building kernel/qeventdispatcher_glib.cpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12
    • None
    • Archlinux, GCC 8.1.1 20180531
    • Linux/X11

      When trying to build the current dev branch, I get:

      make[3]: Entering directory '/home/florian/code/qt/dev/qtbase/src/corelib'
      g++ -c -include .pch/Qt5Core -pipe -g -Og -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -D_REENTRANT -fPIC -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQFLOAT16_INCLUDE_FAST -DELF_INTERPRETER=\"/lib64/ld-linux-x86-64.so.2\" -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I../3rdparty/forkfd -I../3rdparty/tinycbor/src -I../../include -I../../include/QtCore -I../../include/QtCore/5.12.0 -I../../include/QtCore/5.12.0/QtCore -I.moc -I.tracegen -I../../mkspecs/linux-g++ -o .obj/qeventdispatcher_glib.o kernel/qeventdispatcher_glib.cpp
      kernel/qeventdispatcher_glib.cpp:51:10: fatal error: glib.h: No such file or directory
      

      however, configure does detect glib correctly.

      In qtbase/config.tests/glib/Makefile, -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include correctly gets added to CXXFLAGS - apparently not when building Qt itself?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes