Hi,

having problems with patch.exe is a strong indicator for using the MITK Linux 
tarball instead of the Windows zip file. Please make sure you use the latter on 
Windows.

Best,
Stefan
________________________________________
Von: Lotfi BAGHLI [lo...@baghli.com]
Gesendet: Freitag, 6. November 2015 19:40
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] patch-2.5.9 on Windows crashs on cmake files because      
of CR LF

Hi All

I am new to MITK and I have problems while compiling  MITK-2015.05.2
I have Windows 10
VS2013 Community update 5
CMAKE 3.3.1
e:\Qt\Qt5.5.1\5.5\msvc2013_64\lib\cmake\Qt5\

after CMAKE and while compiling

if I take the openCV example :

1>------ Build started: Project: OpenCV, Configuration: Debug x64 ------
1>  Building Custom Rule c:/projets/img/MITK/MITK-2015.05.2/CMakeLists.txt
1>  CMake does not need to re-run because 
c:\projets\img\MITK\bin\CMakeFiles\generate.stamp is up-to-date.
1>  Creating directories for 'OpenCV'
1>  Performing download step (download, verify and extract) for 'OpenCV'
1>  -- verifying file...
1>       file='c:/projets/img/MITK/bin/ep/src/OpenCV-2.4.11.tar.gz'
1>  -- verifying file... done
1>  -- extracting...
1>       src='c:/projets/img/MITK/bin/ep/src/OpenCV-2.4.11.tar.gz'
1>       dst='c:/projets/img/MITK/bin/ep/src/OpenCV'
1>  -- extracting... [tar xfz]
1>  -- extracting... [analysis]
1>  -- extracting... [rename]
1>  -- extracting... [clean up]
1>  -- extracting... done
1>  No update step for 'OpenCV'
1>  Performing patch step for 'OpenCV'
1>  patching file cmake/OpenCVModule.cmake
1>  Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
1>
1>  This application has requested the Runtime to terminate it in an unusual 
way.
1>  Please contact the application's support team for more information.
1>C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error 
MSB6006: "cmd.exe" exited with code 3.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========


in fact the problem is that the OpenCVModule.cmake  is a UNIX format LF format 
one (and CR LF on WIndows)  and the patch.exe of patch-2.5.9-src on windows 
can't found end of line
I didn't found another patch.exe utility that handles this

tried to change the OpenCVModule.cmake file format even in the .gz , but the 
maker, download again the OpenCV-2.4.11.tar.gz if he find it different !

How can I act manualy on the make process in CMakeLists.txt to force a
patch -binary
in order to solve this

thanks



--
Bien cordialement,
Lotfi

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to