MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015475 | CMake | CPack | public | 2015-03-25 20:29 | 2015-11-02 09:13 |
| Reporter | Daniel Schepler | ||||
| Assigned To | Nils Gladitz | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 3.2.1 | ||||
| Target Version | CMake 3.3 | Fixed in Version | CMake 3.3 | ||
| Summary | 0015475: Fails to build against external Expat 2.1.0 with Visual Studio 2013 | ||||
| Description | When I try to build CMake 3.2.1 using external Expat 2.1.0 (and also external ZLib 1.2.8) using Visual Studio 2013 (Express Edition), I get this error: C:\tools\cygwin\home\dschepler\scalable-dev\scalable-3p\scalable-3p-cmake\Source \CPack\WiX\cmWIXPatchParser.cxx(135) : error C2664: 'XML_Size XML_GetCurrentLine Number(XML_Parser)' : cannot convert argument 1 from 'void *' to 'XML_Parser' Conversion from 'void*' to pointer to non-'void' requires an explicit ca st C:\tools\cygwin\home\dschepler\scalable-dev\scalable-3p\scalable-3p-cmake\Source \CPack\WiX\cmWIXPatchParser.cxx(136) : error C2664: 'XML_Size XML_GetCurrentColu mnNumber(XML_Parser)' : cannot convert argument 1 from 'void *' to 'XML_Parser' Conversion from 'void*' to pointer to non-'void' requires an explicit ca st C:\tools\cygwin\home\dschepler\scalable-dev\scalable-3p\scalable-3p-cmake\Source \CPack\WiX\cmWIXPatchParser.cxx(137) : error C2660: 'cmWIXPatchParser::ReportErr or' : function does not take 2 arguments NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\X86_AM~1\cl.exe' : ret urn code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. | ||||
| Steps To Reproduce | The command line I used to configure the build was: cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=C:\tools\cygwin\home\dschepler\scalable-dev\scalable-3p\scalable-3p-cmake\image -DCMAKE_USE_SYSTEM_EXPAT:BOOL=ON -DCMAKE_USE_SYSTEM_ZLIB:BOOL=ON -DBUILD_QtDialog:BOOL=ON .. Then running nmake in the build directory gave the error. And incidentally, it found Expat and ZLib through paths included in the CMAKE_PREFIX_PATH environment variable; while as usual, Qt 4 was found through qmake being on PATH. | ||||
| Additional Information | With the attached patch, I was able to complete the build, and the install image looked good. I don't know if this is the best solution, or whether it might be better to change cmXMLParser to have "XML_Parser Parser;" instead of "void* Parser;". | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5412/fix-build-against-expat-2.1.0.diff | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2015-03-25 20:29 | Daniel Schepler | New Issue | |||
| 2015-03-25 20:29 | Daniel Schepler | File Added: fix-build-against-expat-2.1.0.diff | |||
| 2015-03-26 08:54 | Brad King | Assigned To | => Nils Gladitz | ||
| 2015-03-26 08:54 | Brad King | Status | new => assigned | ||
| 2015-03-26 08:54 | Brad King | Target Version | => CMake 3.3 | ||
| 2015-03-26 12:00 | Nils Gladitz | Note Added: 0038332 | |||
| 2015-03-26 13:35 | Daniel Schepler | Note Added: 0038333 | |||
| 2015-03-27 09:31 | Nils Gladitz | Note Added: 0038347 | |||
| 2015-03-27 09:31 | Nils Gladitz | Status | assigned => resolved | ||
| 2015-03-27 09:31 | Nils Gladitz | Fixed in Version | => CMake 3.3 | ||
| 2015-03-27 09:31 | Nils Gladitz | Resolution | open => fixed | ||
| 2015-11-02 09:13 | Robert Maynard | Note Added: 0039748 | |||
| 2015-11-02 09:13 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||