Skip to content

Commit

Permalink
Zaber: use new ZML directory in 3rdpartypublic
Browse files Browse the repository at this point in the history
Previous was Zaber Motion Library 3.4.3; new is 3.4.4.
  • Loading branch information
marktsuchida committed Sep 4, 2024
1 parent 65a14ea commit 680e00b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DeviceAdapters/Zaber/Zaber.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;_USRDLL;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(MM_3RDPARTYPUBLIC)\Zaber\zaber-motion\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(MM_3RDPARTYPUBLIC)\Zaber\zaber-motion-3.4.4\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>zml.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(MM_3RDPARTYPUBLIC)\Zaber\zaber-motion\win64\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>$(MM_3RDPARTYPUBLIC)\Zaber\zaber-motion-3.4.4\win64\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
12 changes: 7 additions & 5 deletions DeviceAdapters/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -431,24 +431,26 @@ AS_IF([test "x$want_vimba_x" != xno],
AM_CONDITIONAL([BUILD_ALLIED_VISION_CAMERA], [test "x$use_vimba_x" = xyes])

# Zaber Motion Library (hack: only support 3rdpartypublic copy currently)
zml_version="3.4.4"
zml_so_version="3.4"
AC_MSG_CHECKING([for Zaber Motion Library in 3rdpartypublic])
zml_header_to_check="${thirdpartypublic}/Zaber/zaber-motion/include/zaber/motion/library.h"
zml_header_to_check="${thirdpartypublic}/Zaber/zaber-motion-${zml_version}/include/zaber/motion/library.h"
AM_CONDITIONAL([BUILD_ZABER], [test -f $zml_header_to_check])
if test -f "$zml_header_to_check"; then
AC_MSG_RESULT([found])
ZML_CPPFLAGS="-I${thirdpartypublic}/Zaber/zaber-motion/include"
ZML_CPPFLAGS="-I${thirdpartypublic}/Zaber/zaber-motion-${zml_version}/include"
ZML_LIBS="-lzml"
case $host in
*linux*)
# Linux builds by users should install ZML libs
zml_linux_libdir="${thirdpartypublic}/Zaber/zaber-motion/linux-amd64/lib"
zml_linux_libdir="${thirdpartypublic}/Zaber/zaber-motion-${zml_version}/linux-amd64/lib"
ZML_LDFLAGS="-L${zml_linux_libdir} -Wl,-rpath,"'\$$ORIGIN'
ZML_LIBS_TO_COPY="${zml_linux_libdir}/libzml.so.3.4 ${zml_linux_libdir}/libzaber-motion-lib-linux-amd64.so.3.4.4"
ZML_LIBS_TO_COPY="${zml_linux_libdir}/libzml.so.${zml_so_version} ${zml_linux_libdir}/libzaber-motion-lib-linux-amd64.so.${zml_version}"
;;

*apple-darwin*)
# macOS build for packaging does not ship ZML
ZML_LDFLAGS="-L${thirdpartypublic}/Zaber/zaber-motion/darwin/lib"
ZML_LDFLAGS="-L${thirdpartypublic}/Zaber/zaber-motion-${zml_version}/darwin/lib"
ZML_LIBS_TO_COPY=""
;;
esac
Expand Down

0 comments on commit 680e00b

Please sign in to comment.