CMake project manager compilation issues with MinGW and Windows XP compatibility

Kevin Funk kfunk at kde.org
Tue Nov 15 08:52:24 UTC 2016


On Sunday, 13 November 2016 23:42:42 CET Cordylus Interneter wrote:
> 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? 

By the way, I wouldn't mind if you could still send your detailed instructions 
if you have them.

I'm especially interested in:
- Did you compile Qt yourself?
  - If yes, how did you compile OpenSSL & ICU?

/me is just re-building his Qt/KF5 + deps from scratch, targeting WinXP 64 
bit.

Cheers,
Kevin

> 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.


-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20161115/0b76b77b/attachment.sig>


More information about the KDevelop-devel mailing list