Open AaronDavidSchneider opened 3 years ago
Thanks for your answer! I think one of the solutions in the stack overflow post really helped.
Using
export C_INCLUDE_PATH=/usr/local/include
export CPLUS_INCLUDE_PATH=/usr/local/include
gave
(base) schneider@Aarons-MacBook-Pro build % make
[ 50%] Linking CXX executable Planner_PDF
ld: library not found for -lhpdf
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Planner_PDF] Error 1
make[1]: *** [CMakeFiles/Planner_PDF.dir/all] Error 2
make: *** [all] Error 2
so now I am one step further :D If you have any idea how I could link the library...
Try updating LD_LIBRARY_PATH with the path to libhpdf
export LD_LIBRARY_PATH=/usr/local/lib
Typically it isn't good practice to update the LD_LIBRARY_PATH as it can mess with your default configuration and cause undesired behvaiour for other projects if you've forgotten that you have this variable set.
I am not very familiar with the OSX environment, but it might be worth checking out how to make cmake gel well with the system include/link paths specifically for OSX.
Hi,
I wanted to test PlannerPDF but failed when trying to
make
the executable (its not finding hpdf). I successfully installed libharu from source (cmake
,make
,make install
) and its now located in/usr/local/include
. I am using OSX.Here is the error I get when building PlannerPDF:
Unfortunately I am not really familiar with cmake, so I don't know how I can link the library. Would be glad, if you could help :D