Skip to content

Commit

Permalink
Update Findarena_sdk.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidvisionlabs authored May 13, 2021
1 parent b4ff444 commit 6af1108
Showing 1 changed file with 91 additions and 10 deletions.
101 changes: 91 additions & 10 deletions catkin_ws/src/arena_camera/cmake/Findarena_sdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(_LOG_LVL_FRMT "-- [ ${_LOG_LVL} ] ")
# the installation script place
set(_arena_sdk_conf "/etc/ld.so.conf.d/Arena_SDK.conf")


if(EXISTS ${_arena_sdk_conf})

###### --------------------------------------------------------------------
Expand Down Expand Up @@ -37,20 +38,35 @@ if(EXISTS ${_arena_sdk_conf})
###### --------------------------------------------------------------------
# LIBS
######

set(arena_sdk_LIBS

if(EXISTS ${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libGCBase_gcc421_v3_0.so)
set(ArenaSDK_Build "Linux64_x64_pre_54")
elseif(EXISTS ${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libGCBase_gcc54_v3_3_LUCID.so)
set(ArenaSDK_Build "Linux64_x64_54")
elseif(EXISTS ${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libGCBase_gcc54_v3_3_LUCID.so)
set(ArenaSDK_Build "Linux64_ARM")

else()
message( FATAL_ERROR "LUCID GenICam not found. Please reisntall ArenaSDK "
"If having issues, contact: "
"LUCID support team ([email protected]). ")
endif()

if("${ArenaSDK_Build}" STREQUAL "Linux64_x64_pre_54")
set(arena_sdk_LIBS

## ArenaSDK
#${arena_sdk_installation_root}/lib64/libsave.so
#${arena_sdk_installation_root}/lib64/libsaved.so


## release
${arena_sdk_installation_root}/lib64/libarena.so
#${arena_sdk_installation_root}/lib64/libarenad.so

${arena_sdk_installation_root}/lib64/libsave.so
${arena_sdk_installation_root}/lib64/libgentl.so
#${arena_sdk_installation_root}/lib64/libgentld.so

#${arena_sdk_installation_root}/lib64/liblucidlog.so

## debug
#${arena_sdk_installation_root}/lib64/libarenad.so
#${arena_sdk_installation_root}/lib64/libsaved.so
#${arena_sdk_installation_root}/lib64/libgentld.so
#${arena_sdk_installation_root}/lib64/liblucidlogd.so

## GenICam
Expand All @@ -67,6 +83,71 @@ if(EXISTS ${_arena_sdk_conf})
#${arena_sdk_installation_root}/ffmpeg/libavutil.so
#${arena_sdk_installation_root}/ffmpeg/libswresample.so
)
elseif("${ArenaSDK_Build}" STREQUAL "Linux64_x64_54")
set(arena_sdk_LIBS

## ArenaSDK

## release
${arena_sdk_installation_root}/lib64/libarena.so
${arena_sdk_installation_root}/lib64/libsave.so
${arena_sdk_installation_root}/lib64/libgentl.so
#${arena_sdk_installation_root}/lib64/liblucidlog.so

## debug
#${arena_sdk_installation_root}/lib64/libarenad.so
#${arena_sdk_installation_root}/lib64/libsaved.so
#${arena_sdk_installation_root}/lib64/libgentld.so
#${arena_sdk_installation_root}/lib64/liblucidlogd.so

## GenICam
${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libGCBase_gcc54_v3_3_LUCID.so
${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libGenApi_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/liblog4cpp_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libLog_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libMathParser_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libNodeMapData_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_x64/libXmlParser_gcc54_v3_3_LUCID.so

## fmpeg
#${arena_sdk_installation_root}/ffmpeg/libavcodec.so
#${arena_sdk_installation_root}/ffmpeg/libavformat.so
#${arena_sdk_installation_root}/ffmpeg/libavutil.so
#${arena_sdk_installation_root}/ffmpeg/libswresample.so
)
elseif("${ArenaSDK_Build}" STREQUAL "Linux64_ARM")
set(arena_sdk_LIBS

## ArenaSDK

## release
${arena_sdk_installation_root}/lib/libarena.so
${arena_sdk_installation_root}/lib/libsave.so
${arena_sdk_installation_root}/lib/libgentl.so
#${arena_sdk_installation_root}/lib/liblucidlog.so

## debug
#${arena_sdk_installation_root}/lib/libarenad.so
#${arena_sdk_installation_root}/lib/libsaved.so
#${arena_sdk_installation_root}/lib/libgentld.so
#${arena_sdk_installation_root}/lib/liblucidlogd.so

## GenICam
${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libGCBase_gcc54_v3_3_LUCID.so
${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libGenApi_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/liblog4cpp_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libLog_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libMathParser_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libNodeMapData_gcc54_v3_3_LUCID.so
#${arena_sdk_installation_root}/GenICam/library/lib/Linux64_ARM/libXmlParser_gcc54_v3_3_LUCID.so

## fmpeg
#${arena_sdk_installation_root}/ffmpeg/libavcodec.so
#${arena_sdk_installation_root}/ffmpeg/libavformat.so
#${arena_sdk_installation_root}/ffmpeg/libavutil.so
#${arena_sdk_installation_root}/ffmpeg/libswresample.so
)
endif()

set(arena_sdk_LIBRARIES ${arena_sdk_LIBS})
#set(arena_sdk_DEFINITIONS GENICAM_USER_ACCEPTS_ANY_COMPILER)
Expand Down Expand Up @@ -98,4 +179,4 @@ else()
message( FATAL_ERROR "ArenaSDK is not installed. Please isntall ArenaSDK "
"using the script provided by LUCID support "
"team ([email protected]). ")
endif()
endif()

0 comments on commit 6af1108

Please sign in to comment.