Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ SOLVED ]Compile error regarding QT_NO_IMAGEFORMAT_JPEG #94

@decent-man

Description

@decent-man

I've been trying to compile twmn for a while with no success.
The error is :

cd twmnd/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake -o Makefile /path/to/github/twmn/twmnd/twmnd.pro ) && make -f Makefile
make[1]: Entering directory '/path/to/github/twmn/twmnd'
g++ -c -pipe -Wall -Werror -pedantic -Wno-long-long -g -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB
-DQT_CORE_LIB -I. -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o main.o main.cpp
In file included from /usr/include/qt5/QtGui/qtguiglobal.h:44,
                 from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qapplication.h:43,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from main.cpp:1:
/usr/include/qt5/QtGui/qtgui-config.h:26: error: "QT_NO_IMAGEFORMAT_JPEG" redefined [-Werror]
   26 | #define QT_NO_IMAGEFORMAT_JPEG true
      |
In file included from /usr/include/qt5/QtCore/qconfig.h:1,
                 from /usr/include/qt5/QtCore/qglobal.h:66,
                 from /usr/include/qt5/QtGui/qtguiglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qapplication.h:43,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from main.cpp:1:
/usr/include/qt5/Gentoo/gentoo-qconfig.h:8: note: this is the location of the previous definition
    8 | #define QT_NO_IMAGEFORMAT_JPEG
      |
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:493: main.o] Error 1
make[1]: Leaving directory '/path/to/github/twmn/twmnd'
make: *** [Makefile:48: sub-twmnd-make_first] Error 2

How do I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions