[Lcms-user] Hack for building with MinGW / Cygwin
An ICC-based CMM for color management
Brought to you by:
mm2
From: Stefan v. W. <svw...@mn...> - 2005-10-25 15:01:42
|
For integrating LCMS in my MinGW project under Windows I had to compile lcms with gcc from MinGW. My environment is MinGW (for gcc) combined with Cygwin (for make and other tools). Details can be found in http://www.mingw.org/mingwfaq.shtml#faq-usingwithcygwin After calling ./configure I had to manually change icc34.h and lcms.h The changes are: $ diff ./lcms-1.14/include/lcms.h ./lcms-1.14_orig/lcms-1.14/include/lcms.h 206,213d205 < #if 1 < #undef LCMSEXPORT < #undef LCMSAPI < #undef cdecl < #define cdecl < #define LCMSEXPORT < #define LCMSAPI < #endif $ diff ./lcms-1.14/include/icc34.h ./lcms-1.14_orig/lcms-1.14/include/icc34.h.i n 145a146,167 > > #ifdef PACKAGE_NAME > /* > June 9, 2003, Adapted for use with configure by Bob Friesenhahn > Added the stupid check for autoconf by Marti Maria > */ > typedef @INT32_T@ icSignature; > > typedef @UINT8_T@ icUInt8Number; > typedef @UINT16_T@ icUInt16Number; > typedef @UINT32_T@ icUInt32Number; > typedef @UINT32_T@ icUInt64Number[2]; > > typedef @INT8_T@ icInt8Number; > typedef @INT16_T@ icInt16Number; > typedef @INT32_T@ icInt32Number; > typedef @INT32_T@ icInt64Number[2]; > > typedef icInt32Number icS15Fixed16Number; > typedef icUInt32Number icU16Fixed16Number; > #else > 150,151c172 < // #if defined (__digital__) && defined (__unix__) < #if 1 --- > #if defined (__digital__) && defined (__unix__) 155,156c176 < // #include <inttypes.h> < #include <stdint.h> --- > #include <inttypes.h> 165c185 < typedef int8_t icInt8Number; --- > typedef int8_t icInt8Number; 170c190 < typedef icInt32Number icS15Fixed16Number; --- > typedef icInt32Number icS15Fixed16Number; 225c245 < typedef int8_t icInt8Number; --- > typedef int8_t icInt8Number; 231c251 < typedef icInt32Number icS15Fixed16Number; --- > typedef icInt32Number icS15Fixed16Number; 259a280 > #endif Hopefully these hints will lead sometime to a more elegant solution (changing the autoconf files)! Stefan |