add ueye camera

parent beb8623b
......@@ -58,3 +58,6 @@
[submodule "camera/mythen"]
path = camera/mythen
url = git://git.epn-campus.eu/repositories/LimaCameraMythen
[submodule "camera/ueye"]
path = camera/ueye
url = git://git.epn-campus.eu/repositories/LimaCameraUeye
......@@ -224,6 +224,35 @@ $(basler-full): $(basler-objs)
build_targets += $(basler-full)
endif
############################
# LIMA - UEYE
############################
ifneq ($(COMPILE_UEYE),0)
UEYE_LDFLAGS :=
UEYE_LDLIBS := -lueye_api
name := ueye
ueye-objs := ../camera/ueye/src/Ueye.o
version-file := ../camera/ueye/VERSION
ueye-flags := $(UEYE_LDFLAGS)
ueye-deps := $(UEYE_LDLIBS)
ueye-base := liblima$(name).so
full-version := $(shell cat $(version-file))
maj-version := $(shell echo $(full-version) | cut -f1 -d.)
ueye-full := $(ueye-base).$(full-version)
ueye-maj := $(ueye-base).$(maj-version)
ueye-flags += -fPIC -Wl,-soname,$(ueye-maj)
$(ueye-full): $(ueye-objs)
$(CXX) -shared -o $@ $(ueye-flags) $+ $(ueye-deps)
rm -f $(ueye-maj); ln -s $(ueye-full) $(ueye-maj)
rm -f $(ueye-base); ln -s $(ueye-maj) $(ueye-base)
build_targets += $(ueye-full)
endif
############################
# LIMA - PROSILICA
############################
......
......@@ -88,4 +88,8 @@ ifneq ($(COMPILE_MYTHEN),0)
sub-dirs += mythen
endif
ifneq ($(COMPILE_UEYE),0)
sub-dirs += ueye
endif
include ../global.inc
ueye @ bc9f05db
Subproject commit bc9f05dbed3126ef9a5ed64d2fad361b3aab47a8
......@@ -32,10 +32,11 @@ COMPILE_PROSILICA=0
COMPILE_ROPERSCIENTIFIC=0
COMPILE_MYTHEN=0
COMPILE_ADSC=0
COMPILE_UEYE=0
COMPILE_CBF_SAVING=0
COMPILE_NXS_SAVING=0
export COMPILE_CORE COMPILE_SPS_IMAGE COMPILE_SIMULATOR \
COMPILE_ESPIA COMPILE_FRELON COMPILE_MAXIPIX COMPILE_PILATUS \
COMPILE_BASLER COMPILE_PROSILICA COMPILE_ROPERSCIENTIFIC COMPILE_ADSC \
COMPILE_MYTHEN COMPILE_CBF_SAVING COMPILE_NXS_SAVING
COMPILE_MYTHEN COMPILE_UEYE COMPILE_CBF_SAVING COMPILE_NXS_SAVING
......@@ -120,6 +120,13 @@ MYTHEN_MAJ_VERSION = $(shell echo $(MYTHEN_FULL_VERSION) | cut -d. -f1)
INSTALL_MYTHEN_VDIR = $(INSTALL_MYTHEN_DIR)/v$(MYTHEN_FULL_VERSION)
endif
ifneq ($(COMPILE_UEYE), 0)
INSTALL_UEYE_DIR = $(INSTALL_PLAT_DIR)/Ueye
UEYE_FULL_VERSION = $(shell cat camera/ueye/VERSION)
UEYE_MAJ_VERSION = $(shell echo $(UEYE_FULL_VERSION) | cut -d. -f1)
INSTALL_UEYE_VDIR = $(INSTALL_UEYE_DIR)/v$(UEYE_FULL_VERSION)
endif
.PHONY: install
PROCESSOR_TYPE := $(shell uname -i)
......@@ -237,3 +244,12 @@ ifneq ($(COMPILE_MYTHEN), 0)
cp -d build/liblimamythen.so.$(MYTHEN_MAJ_VERSION) $(INSTALL_LIB_DIR)
cp sip/mythen/limamythen.so $(INSTALL_MYTHEN_VDIR)
endif
ifneq ($(COMPILE_UEYE), 0)
mkdir -p $(INSTALL_UEYE_VDIR)
cp camera/ueye/python/__init__.py $(INSTALL_UEYE_DIR)
rm -rf $(INSTALL_LIB_DIR)/liblimaueye.so*
cp build/liblimaueye.so.$(UEYE_FULL_VERSION) $(INSTALL_LIB_DIR)
cp -d build/liblimaueye.so.$(UEYE_MAJ_VERSION) $(INSTALL_LIB_DIR)
cp sip/ueye/limaueye.so $(INSTALL_UEYE_VDIR)
endif
\ No newline at end of file
......@@ -15,6 +15,7 @@ prosilica
roperscientific
adsc
mythen
ueye
*.obj
lima*.exp
lima*.lib
......
......@@ -63,6 +63,10 @@ sip-modules += mythen
endif
ifneq ($(COMPILE_UEYE), 0)
sip-modules += ueye
endif
all: src
src:
......
......@@ -34,6 +34,7 @@ modules = [('core', ['common', 'hardware', 'control']),
('maxipix', [os.path.join('camera','maxipix')]),
('basler', [os.path.join('camera','basler')]),
('prosilica', [os.path.join('camera','prosilica')]),
('ueye', [os.path.join('camera','ueye')]),
('roperscientific', [os.path.join('camera','roperscientific')]),
('adsc', [os.path.join('camera','adsc')]),
('mythen', [os.path.join('camera','mythen')])]
......@@ -135,6 +136,8 @@ def main():
if(modName == 'basler') :
extraIncludes += ['/opt/pylon/include','/opt/pylon/include/genicam','/opt/pylon/genicam/library/CPP/include']
extra_cxxflags += ['-DUSE_GIGE']
elif(modName == 'ueye') and platform.system() != 'Windows':
extra_cxxflags += ['-D__LINUX__']
extraIncludes += findModuleIncludes(modName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment