Commit ee757660 authored by Andrea Parenti's avatar Andrea Parenti Committed by Sebastien Petitdemange

The changes make possible to compile the basler plugin when pylon is not

installed in the default location. If the environment variable
PYLON_ROOT is set, it will be used as the path to the pylon
installation. If it is not set, pylon will be searched for in
/opt/pylon.
parent 3fd4520b
......@@ -204,7 +204,11 @@ endif
ifneq ($(COMPILE_BASLER),0)
BASLER_LDFLAGS := $(LDFLAGS) -L. -L/opt/pylon/lib -L/opt/pylon/lib64
ifndef PYLON_ROOT
PYLON_ROOT := /opt/pylon
endif
BASLER_LDFLAGS := $(LDFLAGS) -L. -L$(PYLON_ROOT)/lib -L$(PYLON_ROOT)/lib64
BASLER_LDLIBS := $(LDLIBS) -lpylongigesupp
basler-name := basler
......
......@@ -42,6 +42,12 @@ sip-modules += maxipix
endif
ifneq ($(COMPILE_BASLER), 0)
ifndef PYLON_ROOT
export PYLON_ROOT = /opt/pylon
endif
ifndef GENICAM_ROOT_V2_1
export GENICAM_ROOT_V2_1 = $(PYLON_ROOT)/genicam
endif
sip-modules += basler
endif
......
......@@ -148,7 +148,8 @@ def main():
if(modName == 'basler') :
if platform.system() != 'Windows':
extraIncludes += ['/opt/pylon/include','/opt/pylon/include/genicam','/opt/pylon/genicam/library/CPP/include']
extraIncludes += ['%s/include' % os.environ['PYLON_ROOT']]
extraIncludes += ['%s/library/CPP/include' % os.environ['GENICAM_ROOT_V2_1']]
extra_cxxflags += ['-DUSE_GIGE']
else:
extraIncludes += ['%s\library\cpp\include' % os.environ['PYLON_GENICAM_ROOT']]
......
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