-
Notifications
You must be signed in to change notification settings - Fork 452
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
MacOs compilation error #1417
Comments
Try: QString commands = QString::asprintf(control->m_setState.toUtf8(), state.toUtf8()); |
Changed the error-line... |
Sorry, that should be:
|
Thanks Jon, |
Thanks for trying the fixes. |
Happy to early Jon, /Users/Loewal/Downloads/sdrangel/plugins/feature/remotecontrol/remotecontrolgui.cpp:1008:61: error: cannot pass object of non-trivial type 'QByteArray' through variadic function; call will abort at runtime [-Wnon-pod-varargs] Solution: 1008 formattedValue = QString::asprintf(format.toUtf8(), value.toString().toUtf8().data()); ok? Compiled well after above fix at line 1008 |
Yep, thanks. I'll add a patch for that too. |
[ 31%] Building CXX object sdrbase/CMakeFiles/sdrbase.dir/util/iot/visa.cpp.o
/Users/Loewal/Downloads/sdrangel/sdrbase/util/iot/visa.cpp:266:84: error: cannot pass object of non-trivial type 'const QString' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
QString commands = QString::asprintf(control->m_setState.toUtf8(), state);
^
1 error generated.
make[2]: *** [sdrbase/CMakeFiles/sdrbase.dir/util/iot/visa.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sdrbase/CMakeFiles/sdrbase.dir/all] Error 2
make: *** [all] Error 2
What could be the reason.....?
The text was updated successfully, but these errors were encountered: