So I've been trying to compile noggit on Linux, but I think I'm doing something wrong.
I've been following the Readme for the terrain_shader branch and, until I run make, everything seems to work (CMake finds the required librariesevery required library and generates the project files correctly). After running make I get the following error: (There are a few of them, but they seem to be the same message)
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/abstract_widget_list.cpp:29:27: error:
'QSignalMapper' is deprecated [-Werror,-Wdeprecated-declarations]
class AbstractWidgetList::Private
^
Complete log:
$ make -j8
Scanning dependencies of target noggit-math
[ 1%] Building CXX object CMakeFiles/noggit-math.dir/src/math/vector_2d.cpp.o
[ 1%] Building CXX object CMakeFiles/noggit-math.dir/src/math/matrix_4x4.cpp.o
[ 2%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_2d_slider.cpp.o
[ 2%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/bound_color_selector.cpp.o
[ 2%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_delegate.cpp.o
[ 4%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/abstract_widget_list.cpp.o
[ 4%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_line_edit.cpp.o
[ 5%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_dialog.cpp.o
[ 5%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_list_widget.cpp.o
[ 6%] Linking CXX static library libnoggit-math.a
[ 6%] Built target noggit-math
Scanning dependencies of target math-matrix_4x4.test
[ 6%] Building CXX object CMakeFiles/math-matrix_4x4.test.dir/test/math/matrix_4x4.cpp.o
[ 7%] Building CXX object src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_names.cpp.o
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/abstract_widget_list.cpp:29:27: error:
'QSignalMapper' is deprecated [-Werror,-Wdeprecated-declarations]
class AbstractWidgetList::Private
^
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/abstract_widget_list.cpp:40:28: note:
in implicit default constructor for 'AbstractWidgetList::Private' first required here
QWidget(parent), p(new Private)
^
/usr/include/qt5/QtCore/qsignalmapper.h:56:5: note: 'QSignalMapper' has been explicitly marked
deprecated here
QT_DEPRECATED explicit QSignalMapper(QObject *parent = nullptr);
^
/usr/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
# define QT_DEPRECATED Q_DECL_DEPRECATED
^
/usr/include/qt5/QtCore/qcompilerdetection.h:233:45: note: expanded from macro 'Q_DECL_DEPRECATED'
# define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
^
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/abstract_widget_list.cpp:29:27: error:
'QSignalMapper' is deprecated [-Werror,-Wdeprecated-declarations]
class AbstractWidgetList::Private
^
/usr/include/qt5/QtCore/qsignalmapper.h:56:5: note: 'QSignalMapper' has been explicitly marked
deprecated here
QT_DEPRECATED explicit QSignalMapper(QObject *parent = nullptr);
^
/usr/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
# define QT_DEPRECATED Q_DECL_DEPRECATED
^
/usr/include/qt5/QtCore/qcompilerdetection.h:233:45: note: expanded from macro 'Q_DECL_DEPRECATED'
# define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
^
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/abstract_widget_list.cpp:29:27: error:
'QSignalMapper' is deprecated [-Werror,-Wdeprecated-declarations]
class AbstractWidgetList::Private
^
/usr/include/qt5/QtCore/qsignalmapper.h:56:5: note: 'QSignalMapper' has been explicitly marked
deprecated here
QT_DEPRECATED explicit QSignalMapper(QObject *parent = nullptr);
^
/usr/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
# define QT_DEPRECATED Q_DECL_DEPRECATED
^
/usr/include/qt5/QtCore/qcompilerdetection.h:233:45: note: expanded from macro 'Q_DECL_DEPRECATED'
# define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
^
3 errors generated.
make[2]: *** [src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/build.make:141: src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/abstract_widget_list.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target math-trig.test
[ 8%] Building CXX object CMakeFiles/math-trig.test.dir/test/math/trig.cpp.o
Scanning dependencies of target math-vector_2d.test
[ 9%] Building CXX object CMakeFiles/math-vector_2d.test.dir/test/math/vector_2d.cpp.o
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/color_dialog.cpp:313:46: error:
'screenNumber' is deprecated: Use QGuiApplication::screenAt() [-Werror,-Wdeprecated-declarations]
int screenNum = QApplication::desktop()->screenNumber(global_pos);
^
/usr/include/qt5/QtWidgets/qdesktopwidget.h:75:5: note: 'screenNumber' has been explicitly marked
deprecated here
QT_DEPRECATED_X("Use QGuiApplication::screenAt()") int screenNumber(const QPoint &) const;
^
/usr/include/qt5/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
# define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
^
/usr/include/qt5/QtCore/qcompilerdetection.h:649:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
# define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
^
1 error generated.
make[2]: *** [src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/build.make:193: src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_dialog.cpp.o] Error 1
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/color_list_widget.cpp:27:24: error:
'QSignalMapper' is deprecated [-Werror,-Wdeprecated-declarations]
class ColorListWidget::Private
^
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/color_list_widget.cpp:36:41: note: in
implicit default constructor for 'color_widgets::ColorListWidget::Private' first required here
: AbstractWidgetList(parent), p(new Private)
^
/usr/include/qt5/QtCore/qsignalmapper.h:56:5: note: 'QSignalMapper' has been explicitly marked
deprecated here
QT_DEPRECATED explicit QSignalMapper(QObject *parent = nullptr);
^
/usr/include/qt5/QtCore/qglobal.h:292:25: note: expanded from macro 'QT_DEPRECATED'
# define QT_DEPRECATED Q_DECL_DEPRECATED
^
/usr/include/qt5/QtCore/qcompilerdetection.h:233:45: note: expanded from macro 'Q_DECL_DEPRECATED'
# define Q_DECL_DEPRECATED __attribute__ ((__deprecated__))
^
1 error generated.
make[2]: *** [src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/build.make:219: src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/src/color_list_widget.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1023: src/external/qt-color-widgets/CMakeFiles/ColorWidgets-qt5.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Linking CXX executable bin/math-matrix_4x4.test
[ 10%] Built target math-matrix_4x4.test
[ 10%] Linking CXX executable bin/math-trig.test
[ 10%] Linking CXX executable bin/math-vector_2d.test
[ 10%] Built target math-trig.test
[ 10%] Built target math-vector_2d.test
make: *** [Makefile:95: all] Error 2
I attempted to hackfix it by commenting this line in CMakeLists.txt:
So I don't know if it's an error on my end or if the code on this branch isn't ready for use and I should use another one. Any help would be appreciated.
Question
bogme
So I've been trying to compile noggit on Linux, but I think I'm doing something wrong.
I've been following the Readme for the terrain_shader branch and, until I run make, everything seems to work (CMake finds the required librariesevery required library and generates the project files correctly). After running make I get the following error: (There are a few of them, but they seem to be the same message)
/home/user/wow/tools/noggit3/src/external/qt-color-widgets/src/abstract_widget_list.cpp:29:27: error: 'QSignalMapper' is deprecated [-Werror,-Wdeprecated-declarations] class AbstractWidgetList::Private ^
Complete log:
I attempted to hackfix it by commenting this line in CMakeLists.txt:
But the I get some errors in the code about unused variables and parameters:
I haven't attempted any further modifications.
So I don't know if it's an error on my end or if the code on this branch isn't ready for use and I should use another one. Any help would be appreciated.
Link to comment
Share on other sites
3 answers to this question
Compiling Noggit Qt on Linux
Asked by bogme,Recommended Posts