CMake project manager compilation issues with MinGW and Windows XP compatibility

Cordylus Interneter cordylus at zoho.com
Sun Nov 13 21:42:42 UTC 2016


Hello, I've built KDevelop on Windows XP using MinGW (natively, without MSYS). Should I post step-by-step guide on how it was done - where did i download suitable precompiled and source dependencies, how and in what order everything was compiled? I still have some troubles setting up environment, but the exe works fine, so you should definitely switch your Platform Toolset to XP-compatible one. As for dependencies compatibility, the only problem I had with Frameworks was the support for CreateSymbolicLinkW in KIO, but that can be easily commented out and recompiled separately.

KDevelop itself compiled without issues, except for CMake project manager. Here are the fixes that had to be done in it, I expect them to be taken upstream:

1. in projectmanagers/cmake/parser/cmListFileLexer.c and cmListFileLexer.in.l
- #ifdef WIN32
+ #ifdef _WIN32
+ #include <io.h>
why: as for the missing underscore, I'm not sure how it slipped in and compiled at all,
and the include is needed for isatty function declaration.

2. in projectmanagers/cmake/parser/EncodingC.c
- //#include "kwsysPrivate.h"
+ /* #include "kwsysPrivate.h" */
- //#include KWSYS_HEADER(Encoding.h)
+ /* #include KWSYS_HEADER(Encoding.h) */
why: since C sources are compiled in std mode, C++ comments do not work.



More information about the KDevelop-devel mailing list