Hello Everyone,
I am trying to use opennurbs latest version and link it to my src code but I have linking issues at the end with zlib. Any idea why it is happening?
Also, I am linking in Cmake in this way:
find_library(STARPU_LIBRARY NAMES starpu-1.4 PATHS /home/babazado/.local/easybuild/software/2023/x86-64-v3/MPI/gcc12/openmpi4/starpu/1.4.3/lib64)
find_library(H-MATRIX-LIBRARY NAMES H_matrix PATHS “${CMAKE_BINARY_DIR}/SRC/H_matrix”)
find_library(EM-LIBS-MATH-LIBRARY NAMES Math PATHS “${CMAKE_BINARY_DIR}/SRC/EM_LIBS/Math”)
find_library(EM-LIBS-MATRIX-LIBRARY NAMES Matrix PATHS “${CMAKE_BINARY_DIR}/SRC/EM_LIBS/Matrix”)
find_library(OPENNURBS-LIBRARY NAMES opennurbsStatic PATHS “${CMAKE_BINARY_DIR}/SRC/opennurbs”)
find_library(ZLIB-LIBRARY NAMES zlib PATHS “${CMAKE_BINARY_DIR}/SRC/opennurbs/zlib”)
find_library(UUID-LIBRARY NAMES uuid PATHS /usr/lib /usr/local/lib)
target_link_libraries(LCN-HMatrix PUBLIC
LCN
${OPENNURBS-LIBRARY}
${UUID-LIBRARY}
${ZLIB-LIBRARY}
${EM-LIBS-MATH-LIBRARY}
${EM-LIBS-MATRIX-LIBRARY}
${H-MATRIX-LIBRARY}
${STARPU-LIBRARY})
It can find the .a files for all directories I am trying to link. and I see those in my build directory. You can see my cmake file for the main.cpp directory as well.
CMakeLists.txt (4.1 KB)