New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error 3.1.1 on rhel 7 #97
Comments
/tmp/kdisk/KDiskMark-3.1.1/src/mainwindow.cpp: In member function ‘virtual void MainWindow::changeEvent(QEvent*)’: Copied and pasted wrong one sorry. |
RHEL7 comes with GCC 4.8, which isn't supporting using syntax, you can rewrite it case QEvent::LocaleChange: {
- if (const QLocale locale = AppSettings().locale(); locale == AppSettings::defaultLocale())
+ const QLocale locale = AppSettings().locale();
+ if (locale == AppSettings::defaultLocale())
AppSettings::applyLocale(locale);
break;
} |
Thanks, that worked great. Now the only problem is I'm getting the following message: |
Saw the following in /var/log/messages |
Found it. kdiskmark_helper was in /usr/libexec where the /usr/share/dbus-1/system-services/dev.jonmagon,kdiskmark.helperinterfaces.service was pointing to /usr/local/libexec/kdiskmark_helper I made a link for /usr/libexec/kdiskmark_helper to /usr/local/libexec/kdiskmark_helper |
Interesting. CMakeLists.txt has not been edited? It uses KDE_INSTALL_LIBEXECDIR for |
No hasn't been changed and has DESTINATION ${KDE_INSTALL_LIBEXECDIR} |
Description: cpack -G RPM
tmp/kdisk/KDiskMark-3.1.1/src/mainwindow.cpp: In member function ‘virtual void MainWindow::changeEvent(QEvent*)’:
/tmp/kdisk/KDiskMark-3.1.1/src/mainwindow.cpp:216:58: error: expected ‘)’ before ‘:’ token
if (const QLocale locale = AppSettings().locale(): locale == AppSettings::defaultLocale())
^
/tmp/kdisk/KDiskMark-3.1.1/src/mainwindow.cpp:216:98: error: could not convert ‘locale’ from ‘const QLocale’ to ‘bool’
if (const QLocale locale = AppSettings().locale(): locale == AppSettings::defaultLocale())
^
gmake[2]: *** [CMakeFiles/kdiskmark.dir/src/mainwindow.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/kdiskmark.dir/all] Error 2
gmake: *** [all] Error 2
Steps To Reproduce: Follow your directions for building.
The text was updated successfully, but these errors were encountered: