Compile Issue 1.5.7: patching mongoose.c

Hi,

I'm trying to build Orthanc 1.5.7 on CentOS 6+7 the following error
appears during build:

Downloading http://orthanc.osimis.io/ThirdPartyDownloads/mongoose-3.8.tgz
-- [download 0% complete]
...
-- [download 100% complete]
Uncompressing mongoose-3.8.tgz
patching file mongoose.c
Hunk #1 FAILED at 50 (different line endings).
Hunk #2 FAILED at 108 (different line endings).
Hunk #3 FAILED at 2997 (different line endings).
Hunk #4 FAILED at 3025 (different line endings).
Hunk #5 FAILED at 4930 (different line endings).
Hunk #6 FAILED at 4944 (different line endings).
Hunk #7 FAILED at 4973 (different line endings).
Hunk #8 FAILED at 4995 (different line endings).
8 out of 8 hunks FAILED -- saving rejects to file mongoose.c.rej
CMake Error at Resources/CMake/MongooseConfiguration.cmake:40 (message):
  Error while patching a file
Call Stack (most recent call first):
  Resources/CMake/OrthancFrameworkConfiguration.cmake:262 (include)
  CMakeLists.txt:49 (include)

Is this an issue with the patchfiles or is a newer version of patch
maybe nessesary?

Kind regards,
tf

Hello,

Mongoose should not be the default embedded Web server anymore. What commands are you using to build Orthanc?

Here is a CMake invocation that is known to work on CentOS 7:

$ cmake … -DCMAKE_BUILD_TYPE=Debug -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DUSE_LEGACY_JSONCPP=ON -DUSE_LEGACY_LIBICU=ON -DBOOST_LOCALE_BACKEND=icu

HTH,
Sébastien-

PS: Please make sure to start from a fresh build directory.

Thanks Sébastien, its working now.

The build options were still following the "old" build instructions for
Linux. I cleaned them up now.

Thanks for the feedback! Just updated the “old” build instructions:
https://bitbucket.org/sjodogne/orthanc/commits/0013818bf6d4cfa6b43733b1d4720e66d8f21984