mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fix compile errors of tests/dispmanx2png on rpi/osmc (#75)
This commit is contained in:
parent
faf5110558
commit
b65edaf15e
@ -16,4 +16,5 @@ add_executable(dispmanx2png
|
|||||||
target_link_libraries(dispmanx2png
|
target_link_libraries(dispmanx2png
|
||||||
dispmanx-grabber
|
dispmanx-grabber
|
||||||
getoptPlusPlus
|
getoptPlusPlus
|
||||||
|
Qt5Gui
|
||||||
${QT_LIBRARIES})
|
${QT_LIBRARIES})
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
|
||||||
// QT includes
|
// QT includes
|
||||||
#include <QImage>
|
#include <QtGui/QImage>
|
||||||
|
|
||||||
// getoptPlusPLus includes
|
// getoptPlusPLus includes
|
||||||
#include <getoptPlusPlus/getoptpp.h>
|
#include <getoptPlusPlus/getoptpp.h>
|
||||||
@ -35,7 +35,7 @@ int main(int argc, char** argv)
|
|||||||
ParameterSet & parameters = optionParser.getParameters();
|
ParameterSet & parameters = optionParser.getParameters();
|
||||||
|
|
||||||
QString flagDescr = QString("Set the grab flags of the dispmanx frame grabber [default: 0x%1]").arg(grabFlags, 8, 16, QChar('0'));
|
QString flagDescr = QString("Set the grab flags of the dispmanx frame grabber [default: 0x%1]").arg(grabFlags, 8, 16, QChar('0'));
|
||||||
StringParameter & argFlags = parameters.add<StringParameter> ('f', "flags", flagDescr.toAscii().constData());
|
StringParameter & argFlags = parameters.add<StringParameter> ('f', "flags", flagDescr.toLatin1().constData());
|
||||||
IntParameter & argCount = parameters.add<IntParameter> ('n', "count", "Number of images to capture (default infinite)");
|
IntParameter & argCount = parameters.add<IntParameter> ('n', "count", "Number of images to capture (default infinite)");
|
||||||
argCount.setDefault(grabCount);
|
argCount.setDefault(grabCount);
|
||||||
SwitchParameter<> & argList = parameters.add<SwitchParameter<> >('l', "list", "List the possible flags");
|
SwitchParameter<> & argList = parameters.add<SwitchParameter<> >('l', "list", "List the possible flags");
|
||||||
|
Loading…
Reference in New Issue
Block a user