Today, when compiling the source code for Dalsa two times, the following error occurred:
/USR/BIN/LD:./out/camera.o:undefined reference to symbol ' _znk11genicam_3_016genericexception17getsourcefilenameev ‘
Opt/genicam_v3_0/bin/linux64_x64/libgcbase_gcc421_v3_0.so:error adding symbols:dso missing from command line
Collect2:error:ld returned 1 exit status
The required Kudu (LIBGEVAPI) was added to the makefile, and the result is the error.
Libgcbase_gcc421_v3_0.so problem solved by adding library.
The following information is added in makefile:
ifndef ARCH ARCH: = $ (Shell uname-m | sed-e s/i.86/i386/-e s/x86_64/x86_64/) endif
ifeq ($ (ARCH), x86_64) archname=x86_64arch_genicam_bin=linux64_x64arch_options=-dx86_64-d_reentrantarch_gccver=421Elsearchname=i386arch_genicam_bin=linux32_i86arch_options=-d__i386__-d_reentrantarch_gccver=421endif
## Arch Dependent GenICam Library specification#Genicam_root_v3_0=/opt/genicam_v3_0Genicam_path_version=v3_0genicam_path:=$ (genicam_root_v3_0) genicam_libs=-l$ (genicam_path)/bin/$ (arch_genicam_bin)\ -LGENAPI_GCC$ (arch_gccver)_$ (genicam_path_version)\ -LGCBASE_GCC$ (arch_gccver)_$ (genicam_path_version) Ldlibs + =$ (genicam_libs)INCLUDE+=-i$ (Genicam_path)/bin/$ (arch_genicam_bin)
Undefined reference to symbol ' _znk11genicam_3_016genericexception17getsourcefilenameev '