timothybrooks / hdr-plus

HDR+ Implementation
MIT License
594 stars 201 forks source link

link error for make hdr-plus project #71

Open hbhbts opened 3 years ago

hbhbts commented 3 years ago

Hi, can anyone help me to figure out what's wrong with it the compile log as below: It seems that the zlib lib cannot be found.

[ 92%] Building CXX object CMakeFiles/hdrplus.dir/bin/HDRPlus.cpp.o
[ 92%] Building CXX object CMakeFiles/hdrplus.dir/src/InputSource.cpp.o
[ 92%] Building CXX object CMakeFiles/hdrplus.dir/src/Burst.cpp.o
[ 96%] Building CXX object CMakeFiles/hdrplus.dir/src/LibRaw2DngConverter.cpp.o
[100%] Linking CXX executable hdrplus
/usr/bin/ld: /home/hht/hdr/Halide-release_2019_08_27/distrib/lib/libHalide.a(llvm_959_Compression.cpp.o): undefined reference to symbol 'crc32'
//lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hdrplus.dir/build.make:133: recipe for target 'hdrplus' failed
make[2]: *** [hdrplus] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/hdrplus.dir/all' failed
make[1]: *** [CMakeFiles/hdrplus.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2_
hbhbts commented 3 years ago

Add cmake logs as below: It seems that the zlib path is ok, is right?

-- Using /home/hht/hdr/Halide-release_2019_08_27/distrib/bin/libHalide.so
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.9")
-- Found tiffxx: /usr/lib/x86_64-linux-gnu/libtiffxx.so
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.54")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/hht/hdr/hdr-plus/build