Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error with dyld[29812]: Library not loaded: @rpath/libparaconf.1.dylib #566

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update SuperBuild.cmake
attempt to address the dyld issue
Yushan-Wang committed Mar 21, 2025
commit a23a227b1609dc165334c31a4fa3c3663eb2c608
3 changes: 3 additions & 0 deletions cmake/SuperBuild.cmake
Original file line number Diff line number Diff line change
@@ -351,10 +351,13 @@ if("${BUILD_TESTING}")
"set(ADDPATH [=[${CMAKE_BINARY_DIR}/staging/${CMAKE_INSTALL_LIBDIR}:${CMAKE_BINARY_DIR}/staging/lib]=])\n"
[===[
set(LD_LIBRARY_PATH "$ENV{LD_LIBRARY_PATH}")
set(DYLD_LIBRARY_PATH "$ENV{DYLD_LIBRARY_PATH}")
if("x${LD_LIBRARY_PATH}x" STREQUAL xx)
set(ENV{LD_LIBRARY_PATH} "${ADDPATH}")
set(ENV{DYLD_LIBRARY_PATH} "${ADDPATH}")
else()
set(ENV{LD_LIBRARY_PATH} "${ADDPATH}:${LD_LIBRARY_PATH}")
set(ENV{DYLD_LIBRARY_PATH} "${ADDPATH}:${DYLD_LIBRARY_PATH}")
endif()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole if should be duplicated to check the previous state of DYLD_LIBRARY_PATH

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole if should be duplicated to check the previous state of DYLD_LIBRARY_PATH

The last commit did not solve the issue.

]===]
)