Skip to content
Snippets Groups Projects
Commit a8dd1603 authored by am0ebe's avatar am0ebe
Browse files

make example asyncopencvrecorder work with qt6

parent 10669907
No related branches found
No related tags found
No related merge requests found
Showing
with 40 additions and 3 deletions
......@@ -17,7 +17,7 @@ all: $(BIN_PATH)
include $(MAKE_INCLUDE_DIR)/VimbaCPP.mk
include $(MAKE_INCLUDE_DIR)/VimbaImageTransform.mk
include $(MAKE_INCLUDE_DIR)/Qt5.mk
include $(MAKE_INCLUDE_DIR)/Qt6.mk
SOURCE_DIR = $(PROJECT_DIR)/Source
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -41,7 +41,7 @@ class AsynchronousOpenCVRecorder : public QMainWindow
Q_OBJECT
public:
AsynchronousOpenCVRecorder( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
AsynchronousOpenCVRecorder( QWidget *parent = 0, Qt::WindowFlags flags = (Qt::WindowFlags)0 );
~AsynchronousOpenCVRecorder();
private:
......
## use QT6
replace Qt.mk with Qt6.mk in Makefile
add INCLUDE and LIB flags manually to Makefile
## use QT5
replace Qt.mk with Qt5.mk in Makefile
> add qt5widgets?
> see async grab notes!
## use openCV4
apt install opencv-dev
pkg-config --cflags --libs opencv4 # test it!
......
include $(MAKE_INCLUDE_DIR)/Common.mk
# Qt bin dir in Path!
QT_INC=/usr/include/x86_64-linux-gnu/qt6
# QT_LIBS=/usr/lib/x86_64-linux-gnu
QT_BIN=/usr/lib/qt6/libexec
MOC = $(QT_BIN)/moc
UIC = $(QT_BIN)/uic
RCC = $(QT_BIN)/rcc
ifeq ($(MOC),)
$(error Didn't find Moc. Add Qt-Bin-Dir to Path!)
endif
#Compile options needed for QtCore
# !! WARNING !!
# Qt6 doesn't use pkg-config or qmake anymore but uses CMAKE instead...
# so try to insert flags manually
# before: pkg-config --cflags --libs Qt5Core
QTCORE_CFLAGS = -I$(QT_INC) -I$(QT_INC)/QtCore
QTCORE_LIBS = -lQt6Core
QTGUI_CFLAGS = -I$(QT_INC) -I$(QT_INC)/QtGui -I$(QT_INC) -I$(QT_INC)/QtCore
QTGUI_LIBS = -lQt6Gui -lQt6Core
QTWIDGETS_CFLAGS = -I$(QT_INC) -I$(QT_INC)/QtWidgets -I$(QT_INC) -I$(QT_INC)/QtCore
QTWIDGETS_LIBS = -lQt6Gui -lQt6Widgets
#Operations we have to do in order to prepare QtXZ
QtCore:
QtGui:
QtWidgets:
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment