mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Fix compile errors of tests/dispmanx2png on rpi/osmc (#75)
This commit is contained in:
		| @@ -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"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user