[Redmi K20 Pro / Xiaomi Mi 9T Pro Themes, Apps, and] meiser:
Hi,

thanks a lot for the app. I'm currently using the macOS and the AppImage version, but I'd like to compile the linux version.

I'd like to ask for two things:

1. Could you please add support for Xiaomi clover? The working python script can be found here. This should also add support for sagit, if I'm not mistaken by the name.

2. Could you make it compile under Ubuntu 18.04 and/or 20.04?

Under 18.04, it fails with:

/tmp/logomanager-git$ make
/usr/lib/qt5/bin/uic res/ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/qt5/bin/uic res/ui/about.ui -o ui_about.h
/usr/lib/qt5/bin/uic res/ui/flash.ui -o ui_flash.h
/usr/lib/qt5/bin/uic res/ui/help.ui -o ui_help.h
/usr/lib/qt5/bin/uic res/ui/onlineupd.ui -o ui_onlineupd.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtHelp -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In constructor ‘MainWindow::MainWindow(QWidget*)’:
mainwindow.cpp:16:33: error: ‘AA_DisableWindowContextHelpButton’ is not a member of ‘Qt’
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mainwindow.cpp:16:33: note: suggested alternative: ‘WindowContextHelpButtonHint’
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WindowContextHelpButtonHint
mainwindow.cpp: In member function ‘void MainWindow::centerOnScreen()’:
mainwindow.cpp:68:7: error: ‘screen’ was not declared in this scope
move(screen()->geometry().center() - rect().center());
^~~~~~
mainwindow.cpp:68:7: note: suggested alternative: ‘screens’
move(screen()->geometry().center() - rect().center());
^~~~~~
screens
mainwindow.cpp: In member function ‘void MainWindow::exportImage(QLabel*)’:
mainwindow.cpp:149:65: error: ‘class QImage’ has no member named ‘sizeInBytes’
bytes = save.write(reinterpret_cast<char*>(img.bits()), img.sizeInBytes());
^~~~~~~~~~~
Makefile:582: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1

Under Ubuntu 20.04, it fails with:

/tmp/lmgr$ make
/usr/lib/qt5/bin/uic res/ui/mainwindow.ui -o ui_mainwindow.h
/usr/lib/qt5/bin/uic res/ui/about.ui -o ui_about.h
/usr/lib/qt5/bin/uic res/ui/flash.ui -o ui_flash.h
/usr/lib/qt5/bin/uic res/ui/help.ui -o ui_help.h
/usr/lib/qt5/bin/uic res/ui/onlineupd.ui -o ui_onlineupd.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_HELP_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtHelp -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtSql -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function ‘void MainWindow::centerOnScreen()’:
mainwindow.cpp:68:7: error: ‘screen’ was not declared in this scope; did you mean ‘screens’?
68 | move(screen()->geometry().center() - rect().center());
| ^~~~~~
| screens
make: *** [Makefile:625: mainwindow.o] Fehler 1

Thanks a lot in advance.

Regards,

meiser