DanielBorgesOliveira / onedrive_tray

OneDrive system tray program
GNU General Public License v3.0
113 stars 21 forks source link

Cannot install in OpenSuse Tumbleweed #50

Open sirfmoyo opened 6 months ago

sirfmoyo commented 6 months ago

I am getting this error on OpenSuse tumbleweed

[../main.cpp: In function ‘int main(int, char**)’:
../main.cpp:16:26: error: ‘AA_UseHighDpiPixmaps’ is not a member of ‘Qt’
   16 |     app.setAttribute(Qt::AA_UseHighDpiPixmaps);
      |                          ^~~~~~~~~~~~~~~~~~~~
../main.cpp:19:9: error: ‘class QApplication’ has no member named ‘setApplicationDisplayName’; did you mean ‘setApplicationName’?
   19 |     app.setApplicationDisplayName("System tray for OneDrive");
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |         setApplicationName
../main.cpp:24:5: error: ‘QCommandLineParser’ was not declared in this scope
   24 |     QCommandLineParser parser;
      |     ^~~~~~~~~~~~~~~~~~
../main.cpp:25:5: error: ‘parser’ was not declared in this scope
   25 |     parser.setApplicationDescription("Run and control OneDrive from the system tray");
      |     ^~~~~~
../main.cpp:27:5: error: ‘QCommandLineOption’ was not declared in this scope
   27 |     QCommandLineOption onedrivePathOption(QStringList() << "p" << "onedrive-path", "Path to the OneDrive program", "path");
      |     ^~~~~~~~~~~~~~~~~~
../main.cpp:28:22: error: ‘onedrivePathOption’ was not declared in this scope
   28 |     parser.addOption(onedrivePathOption);
      |                      ^~~~~~~~~~~~~~~~~~
../main.cpp:29:23: error: expected ‘;’ before ‘onedriveArgsOption’
   29 |     QCommandLineOption onedriveArgsOption(QStringList() << "a" << "onedrive-args", "Arguments passed to OneDrive", "args");
      |                       ^~~~~~~~~~~~~~~~~~~
      |                       ;
../main.cpp:30:22: error: ‘onedriveArgsOption’ was not declared in this scope
   30 |     parser.addOption(onedriveArgsOption);
      |                      ^~~~~~~~~~~~~~~~~~
../main.cpp:31:23: error: expected ‘;’ before ‘silentFailOption’
   31 |     QCommandLineOption silentFailOption(QStringList() << "s" << "silent-fail", "No error message displayed when no system tray is detected");
      |                       ^~~~~~~~~~~~~~~~~
      |                       ;
../main.cpp:32:22: error: ‘silentFailOption’ was not declared in this scope
   32 |     parser.addOption(silentFailOption);
      |                      ^~~~~~~~~~~~~~~~
../main.cpp:50:18: error: ‘class QDebug’ has no member named ‘noquote’
   50 |         qDebug().noquote() << "Translation not found for" << QLocale().languageToString(QLocale().language()) << "language" << QLocale().uiLanguages() << ".";
      |                  ^~~~~~~
make: *** [Makefile:242: main.o] Error 1](url)