AVT相机arm版本SDK

This commit is contained in:
zhangpeng
2025-04-30 09:26:04 +08:00
parent 837c870f18
commit 78a1c63a95
705 changed files with 148770 additions and 0 deletions

View File

@@ -0,0 +1,100 @@
UNAME = $(shell uname -m)
ifeq ($(UNAME),i386)
ARCH = x86
AUTOWORDSIZE = 32
AUTOFLOATABI = ignore
endif
ifeq ($(UNAME),i486)
ARCH = x86
AUTOWORDSIZE = 32
AUTOFLOATABI = ignore
endif
ifeq ($(UNAME),i586)
ARCH = x86
AUTOWORDSIZE = 32
AUTOFLOATABI = ignore
endif
ifeq ($(UNAME),i686)
ARCH = x86
AUTOWORDSIZE = 32
AUTOFLOATABI = ignore
endif
ifeq ($(UNAME),x86_64)
ARCH = x86
AUTOWORDSIZE = 64
AUTOFLOATABI = ignore
endif
ifeq ($(UNAME),amd64)
ARCH = x86
AUTOWORDSIZE = 64
AUTOFLOATABI = ignore
endif
ifeq ($(UNAME),armv6l)
ARCH = arm
AUTOWORDSIZE = 32
AUTOFLOATABI = soft
endif
ifeq ($(UNAME),armv7l)
ARCH = arm
AUTOWORDSIZE = 32
AUTOFLOATABI = soft
endif
ifeq ($(UNAME),aarch64)
ARCH = arm
AUTOWORDSIZE = 64
AUTOFLOATABI = hard
endif
#Possible word sizes: 32, 64
WORDSIZE = $(AUTOWORDSIZE)
#Possible float abis: soft, hard
FLOATABI = $(AUTOFLOATABI)
ifneq ($(WORDSIZE),32)
ifneq ($(WORDSIZE),64)
$(error Invalid word size set)
endif
endif
ifneq ($(FLOATABI),soft)
ifneq ($(FLOATABI),hard)
ifneq ($(FLOATABI),ignore)
$(error Invalid float abi set)
endif
endif
endif
#Common tools
PKGCFG = pkg-config
MKDIR = mkdir
RM = rm
CXX = g++
MAKE = make
CP = cp
#Set word size on x86
ifeq ($(ARCH),x86)
ARCH_CFLAGS = -m$(WORDSIZE)
endif
#Configure compiler and linker for soft or hard-float build on ARM
ifeq ($(ARCH),arm)
ifeq ($(FLOATABI),soft)
ARCH_CFLAGS = -marm -mfloat-abi=soft -march=armv4t
else ifeq ($(FLOATABI),hard)
ifeq ($(WORDSIZE),32)
ARCH_CFLAGS = -mthumb -mfloat-abi=hard -march=armv7
else ifeq ($(WORDSIZE),64)
ARCH_CFLAGS = -march=armv8-a
endif
endif
endif
ifeq ($(CONFIG),Debug)
CONFIG_CFLAGS = -O0 -g
else
CONFIG_CFLAGS = -O3
endif
COMMON_CFLAGS = $(CONFIG_CFLAGS) $(ARCH_CFLAGS) -fPIC

View File

@@ -0,0 +1,56 @@
EXAMPLES_DIR = ../..
MAKE_INCLUDE_DIR = $(CURDIR)
include $(MAKE_INCLUDE_DIR)/Common.mk
QT_SUPPORT = true
ifeq ($(QT_SUPPORT),true)
QT_EXAMPLES = VimbaViewer
QT_SUB_EXAMPLES = AsynchronousGrab \
AsynchronousOpenCVRecorder \
SynchronousGrab
endif
CONSOLE_EXAMPLES = ActionCommands \
BandwidthHelper \
CameraFactory \
EventHandling \
ListCameras \
ListFeatures \
ListAncillaryDataFeatures \
LoadSaveSettings \
LookUpTable \
UserSet
CONSOLE_SUB_EXAMPLES = AsynchronousGrab \
SynchronousGrab
make_%: $(EXAMPLES_DIR)/%/Build/Make/Makefile
$(MAKE) -C $(EXAMPLES_DIR)/$*/Build/Make
clean_%: $(EXAMPLES_DIR)/%/Build/Make/Makefile
$(MAKE) -C $(EXAMPLES_DIR)/$*/Build/Make clean
make_%Console: $(EXAMPLES_DIR)/%/Console/Build/Make/Makefile
$(MAKE) -C $(EXAMPLES_DIR)/$*/Console/Build/Make
clean_%Console: $(EXAMPLES_DIR)/%/Console/Build/Make/Makefile
$(MAKE) -C $(EXAMPLES_DIR)/$*/Console/Build/Make clean
make_%Qt: $(EXAMPLES_DIR)/%/Qt/Build/Make/Makefile
$(MAKE) -C $(EXAMPLES_DIR)/$*/Qt/Build/Make
clean_%Qt: $(EXAMPLES_DIR)/%/Qt/Build/Make/Makefile
$(MAKE) -C $(EXAMPLES_DIR)/$*/Qt/Build/Make clean
all: $(foreach example,$(CONSOLE_EXAMPLES),make_$(example)) \
$(foreach example,$(CONSOLE_SUB_EXAMPLES),make_$(example)Console) \
$(foreach example,$(QT_EXAMPLES),make_$(example)) \
$(foreach example,$(QT_SUB_EXAMPLES),make_$(example)Qt)
clean: $(foreach example,$(CONSOLE_EXAMPLES),clean_$(example)) \
$(foreach example,$(CONSOLE_SUB_EXAMPLES),clean_$(example)Console) \
$(foreach example,$(QT_EXAMPLES),clean_$(example)) \
$(foreach example,$(QT_SUB_EXAMPLES),clean_$(example)Qt)

View File

@@ -0,0 +1,36 @@
include $(MAKE_INCLUDE_DIR)/Common.mk
PKGCFG_MOC = $(shell $(PKGCFG) --variable=moc_location QtCore)
PKGCFG_UIC = $(shell $(PKGCFG) --variable=uic_location QtCore)
#Qt tools
MOC = $(if $(PKGCFG_MOC),$(PKGCFG_MOC),moc)
UIC = $(if $(PKGCFG_UIC),$(PKGCFG_UIC),uic)
RCC = rcc
#Compile options needed for QtCore
QTCORE_CFLAGS = $(shell $(PKGCFG) --cflags QtCore)
#Linker options needed for QtCore
QTCORE_LIBS = $(shell $(PKGCFG) --libs QtCore)
#Compile options needed for QtGui
QTGUI_CFLAGS = $(shell $(PKGCFG) --cflags QtGui)
#Linker options needed for QtGui
QTGUI_LIBS = $(shell $(PKGCFG) --libs QtGui)
#Compile options needed for QtSvg
QTSVG_CFLAGS = $(shell $(PKGCFG) --cflags QtSvg)
#Linker options needed for QtSvg
QTSVG_LIBS = $(shell $(PKGCFG) --libs QtSvg)
#Operations we have to do in order to prepare QtCore
QtCore:
#Operations we have to do in order to prepare QtGui
QtGui:
#Operations we have to do in order to prepare QtSvg
QtSvg:

View File

@@ -0,0 +1,14 @@
include $(MAKE_INCLUDE_DIR)/Common.mk
#Compile options needed for VimbaC
VIMBAC_CFLAGS = -I$(VIMBASDK_DIR)
#Linker options needed for VimbaC
VIMBAC_LIBS = -L$(BIN_DIR) -lVimbaC
#By default we copy libVimbaC.so next to the binary
$(BIN_DIR)/libVimbaC.so: $(BIN_DIR)
$(CP) $(VIMBASDK_DIR)/VimbaC/DynamicLib/$(ARCH)_$(WORDSIZE)bit/libVimbaC.so $(BIN_DIR)/
#Operations we have to do in order to prepare VimbaC
VimbaC: $(BIN_DIR)/libVimbaC.so

View File

@@ -0,0 +1,15 @@
include $(MAKE_INCLUDE_DIR)/Common.mk
include $(MAKE_INCLUDE_DIR)/VimbaC.mk
#Compile options needed for VimbaCPP
VIMBACPP_CFLAGS = -I$(VIMBASDK_DIR) $(VIMBAC_CFLAGS)
#Linker options needed for VimbaCPP
VIMBACPP_LIBS = -L$(BIN_DIR) -lVimbaCPP $(VIMBAC_LIBS) -Wl,-rpath-link,$(BIN_DIR)
#By default we copy libVimbaCPP.so next to the binary
$(BIN_DIR)/libVimbaCPP.so: $(BIN_DIR) VimbaC
$(CP) $(VIMBASDK_DIR)/VimbaCPP/DynamicLib/$(ARCH)_$(WORDSIZE)bit/libVimbaCPP.so $(BIN_DIR)/
#Operations we have to do in order to prepare VimbaCPP
VimbaCPP: $(BIN_DIR)/libVimbaCPP.so

View File

@@ -0,0 +1,14 @@
include $(MAKE_INCLUDE_DIR)/Common.mk
#Compile options needed for VimbaImageTransform
VIMBAIMAGETRANSFORM_CFLAGS = -I$(VIMBASDK_DIR)/VimbaImageTransform/Include
#Compile options needed for VimbaImageTransform
VIMBAIMAGETRANSFORM_LIBS = -L$(BIN_DIR) -lVimbaImageTransform -Wl,-rpath-link,$(BIN_DIR)
#By default we copy libVimbaImageTransform.so next to the binary
$(BIN_DIR)/libVimbaImageTransform.so: $(BIN_DIR)
$(CP) $(VIMBASDK_DIR)/VimbaImageTransform/DynamicLib/$(ARCH)_$(WORDSIZE)bit/libVimbaImageTransform.so $(BIN_DIR)/
#Operations we have to do in order to prepare VimbaImageTransform
VimbaImageTransform: $(BIN_DIR)/libVimbaImageTransform.so

View File

@@ -0,0 +1,12 @@
include $(MAKE_INCLUDE_DIR)/Common.mk
PKGCFG_TINYXML_LIBS = $(shell $(PKGCFG) --libs tinyxml)
#Compile options needed for tinyxml
TINYXML_CFLAGS = $(shell $(PKGCFG) --cflags tinyxml)
#Linker options needed for tinyxml
TINYXML_LIBS = $(if $(PKGCFG_TINYXML_LIBS),$(PKGCFG_TINYXML_LIBS),-ltinyxml)
#Operations we have to do in order to prepare tinyxml
tinyxml: