Skip to content

Commit

Permalink
link missing Matlab libs in mexex/jvxReadMat
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Wickert committed Jun 7, 2024
1 parent 9b7f1d2 commit 90cbb86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ macro (find_matlab)
set(Matlab_INCLUDE_DIRS ${MATLAB_PATH}/extern/include)
set(MATLAB_PATH_LIB ${MATLAB_PATH}/bin/${MATLAB_MEX_SUBDIR})
set(JVX_SYSTEM_MATLAB_MEX_LIBRARIES libmx.so libmat.so libmex.so)
set(JVX_SYSTEM_MATLAB_MEXEX_LIBRARIES libmx.so libmat.so)
else()
message("XX> could not find Matlab, deactivating support")
set(JVX_USE_PART_MATLAB OFF)
Expand All @@ -204,6 +205,7 @@ macro (find_matlab)
set(Matlab_INCLUDE_DIRS ${MATLAB_PATH}/extern/include)
set(MATLAB_PATH_LIB ${MATLAB_PATH}/bin/${MATLAB_MEX_SUBDIR})
set(JVX_SYSTEM_MATLAB_MEX_LIBRARIES "${MATLAB_PATH_LIB}/libmex.so;${MATLAB_PATH_LIB}/libmx.so;${MATLAB_PATH_LIB}/libmat.so" )
set(JVX_SYSTEM_MATLAB_MEXEX_LIBRARIES "${MATLAB_PATH_LIB}/libmx.so;${MATLAB_PATH_LIB}/libmat.so" )
set(JVX_CMAKE_LINKER_FLAGS_MATLAB_MEX "-Wl,--no-undefined -Wl,--retain-symbols-file=${JVX_BASE_ROOT}/software/exports/components/linux/exports-mex.def -Wl,-rpath-link,${MATLAB_LIB_PATH}")
else()
message("XX> could not find Matlab, deactivating support")
Expand Down
2 changes: 2 additions & 0 deletions sources/jvxApplications/mexex/jvxReadMat/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include(${JVX_CMAKE_DIR}/common_local_exe_head.cmake)

include_directories(${Matlab_INCLUDE_DIRS})

set(LOCAL_LIBS ${JVX_SYSTEM_MATLAB_MEXEX_LIBRARIES})

set(LOCAL_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/../target/main.cpp
# ${JVX_BASE_ROOT}/software/codeFragments/matlab_c/CjvxCToMatlabConverter.cpp
Expand Down

0 comments on commit 90cbb86

Please sign in to comment.