Re: [deal.II] Building DEAL. II with an external dylib

2020-05-14 Thread Yang Liu
Thank you! This works. 在 2020年5月15日星期五 UTC+8上午1:59:38,Matthias Maier写道: > > > On Thu, May 14, 2020, at 06:19 CDT, Yang Liu > wrote: > > The /usr/local/hlibpro-2.8.1/lib/libhpro.dylib dynamic library > probably sets an incorrect rpath ("/lib/libhpro.dylib" instead of the > full path). > > -

Re: [deal.II] Building DEAL. II with an external dylib

2020-05-14 Thread Matthias Maier
On Thu, May 14, 2020, at 06:19 CDT, Yang Liu wrote: The /usr/local/hlibpro-2.8.1/lib/libhpro.dylib dynamic library probably sets an incorrect rpath ("/lib/libhpro.dylib" instead of the full path). - You might try to export the directory in DYLD_LIBRARY_PATH: export DYLD_LIBRARY_PATH="/u

Re: [deal.II] Building DEAL. II with an external dylib

2020-05-14 Thread Wolfgang Bangerth
On 5/14/20 5:19 AM, Yang Liu wrote: TARGET_LINK_LIBRARIES(step-6 /usr/local/hlibpro-2.8.1/lib/libhpro.dylib) /---/ The build succeeded. But an error occurs during runtime: dyld: Library not loaded: src/libhpro.dylib   Referenced from: /App

[deal.II] Building DEAL. II with an external dylib

2020-05-14 Thread Yang Liu
Dear DEAL.II developers and users, Currently I would like to build DEAL.II with an external library on my macOS Mojave 10.14.5. I edited the cmakelist.txt file as follows: /---/ SET(TARGET "step-6") SET(TARGET_SRC ${TARGET}.cc ) CMAKE_MINIMU