Compiling Orthanc1.3.1 on Centos6.5 problem

When compile orthanc My error message :

[ 92%] Building CXX object CMakeFiles/ServerLibrary.dir/Plugins/Engine/PluginsManager.cpp.o
[ 92%] Building CXX object CMakeFiles/ServerLibrary.dir/Plugins/Engine/SharedLibrary.cpp.o
Linking CXX static library libServerLibrary.a
[ 92%] Built target ServerLibrary
Scanning dependencies of target Orthanc
[ 92%] Building CXX object CMakeFiles/Orthanc.dir/OrthancServer/main.cpp.o
Linking CXX executable Orthanc
libCoreLibrary.a(JpegReader.cpp.o): In function Orthanc::Uncompress(jpeg_decompress_struct&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, Orthanc::ImageAccessor&)': /home/orthanc/Desktop/OrthancBuild/Orthanc-1.3.1/Core/Images/JpegReader.cpp:52: undefined reference to jpeg_read_header’
/home/orthanc/Desktop/OrthancBuild/Orthanc-1.3.1/Core/Images/JpegReader.cpp:53: undefined reference to jpeg_start_decompress' /home/orthanc/Desktop/OrthancBuild/Orthanc-1.3.1/Core/Images/JpegReader.cpp:91: undefined reference to jpeg_read_scanlines’
/home/orthanc/Desktop/OrthancBuild/Orthanc-1.3.1/Core/Images/JpegReader.cpp:98: undefined reference to `jpeg_finish_decompress’


make[2]: *** [Orthanc] Error 1
make[1]: *** [CMakeFiles/Orthanc.dir/all] Error 2
make: *** [all] Error 2

system:Centos6.5
orthanc version :Orthanc-1.3.1
LinuxComplation:cmake -DSTATIC_BUILD=ON
-DALLOW_DOWNLOADS=ON
-DUSE_SYSTEM_JSONCPP=OFF
-DUSE_SYSTEM_MONGOOSE=OFF
-DUSE_SYSTEM_PUGIXML=OFF
-DUSE_SYSTEM_SQLITE=OFF
-DUSE_SYSTEM_BOOST=OFF
-DUSE_SYSTEM_DCMTK=OFF
-DUSE_SYSTEM_GOOGLE_TEST=OFF
-DUSE_SYSTEM_LIBJPEG=OFF
-DUSE_SYSTEM_CURL=OFF
-DCMAKE_BUILD_TYPE=Debug
./Orthanc-1.3.1

what is the problem with me ? please help me ,thank you very much

Hello,

This linking problem is already fixed in the mainline of Orthanc by following changeset:
https://bitbucket.org/sjodogne/orthanc/commits/cbb8deaacdf7aed7d4db067ab256546e9a74192b

The patch will be part of forthcoming 1.3.2 release.

Regards,
Sébastien-

Thanks a lot
在 2018年3月31日星期六 UTC+8下午7:33:59,Sébastien Jodogne写道:

how to Upgrade to curl 7.57.0 for static ,when I configure it use the old version,

This is done in other changesets that are pending in mainline, and that will be part of forthcoming Orthanc 1.3.2:
https://bitbucket.org/sjodogne/orthanc/commits/862d943115f921a69e877fce8658119bb97d62c1
https://bitbucket.org/sjodogne/orthanc/commits/e779c11c8eb257be57e21172cc6366ff8e337205