Frameworks/Windows: Difference between revisions

From KDE Community Wiki
(→‎Tier 1: Add info about itemmodels and itemviews)
m (typography)
Line 60: Line 60:


=== ItemViews ===
=== ItemViews ===
Builds, only some deprecated warnings. Unit test passes. Manual tests work fine. <tt>kwidgetitemdelegatetest</tt> shows a bug that is probably cross-platform (will report later).
Builds, only some deprecated warnings. Unit test passes. Manual tests work fine. <tt>kwidgetitemdelegatetest</tt> shows a bug that is probably cross&#8208;platform (will report later).


=== KCoreAddons ===
=== KCoreAddons ===
KRandom fails to build due to the use of <code>unistd.h</code> and <code>getpid()</code>. KDirWatch also fails, several portability fixes were done, but still not enough:
KRandom fails to build due to the use of <tt>unistd.h</tt> and <tt>getpid()</tt>. KDirWatch also fails; several portability fixes were done, but still not enough:
<pre>
<pre>
tier1\kcoreaddons\src\lib\randomness\krandom.cpp(25) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
tier1\kcoreaddons\src\lib\randomness\krandom.cpp(25) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
Line 76: Line 76:


=== KWindowSystem ===
=== KWindowSystem ===
Hundreds of errors casting <tt>WId</tt> to <tt>HWND</tt> in Windows-specific code.
Hundreds of errors casting <tt>WId</tt> to <tt>HWND</tt> in Windows&#8208;specific code.


=== KArchive ===
=== KArchive ===

Revision as of 03:06, 16 October 2013

This page tracks the status of KDE Frameworks on Microsoft Windows.

I have only tested with MSVC2010 32-bit.

Tier 1

Working: itemmodels, itemviews, kplotting, kcodecs, kguiaddons, kidletime, kwidgetsaddons, sonnet. More details later.

The rest are currently disabled in CMake. This means you can build kdelibs as a whole with no errors at the moment, but only because the non-working parts are being skipped...


ItemModels

Builds, no warnings. The autotests are currently disabled on all platforms and there are no manual tests, so I haven't tested if it works.

ItemViews

Builds, only some deprecated warnings. Unit test passes. Manual tests work fine. kwidgetitemdelegatetest shows a bug that is probably cross‐platform (will report later).

KCoreAddons

KRandom fails to build due to the use of unistd.h and getpid(). KDirWatch also fails; several portability fixes were done, but still not enough:

tier1\kcoreaddons\src\lib\randomness\krandom.cpp(25) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
tier1\kcoreaddons\src\lib\io\kdirwatch.cpp(845) : error C3861: 'QT_LSTAT': identifier not found
tier1\kcoreaddons\src\lib\io\kdirwatch.cpp(846) : error C2065: 'QT_STAT_LNK': undeclared identifier
tier1\kcoreaddons\src\lib\io\kdirwatch.cpp(1294) : error C3861: 'nlink_t': identifier not found

Note that this code would have never worked on Windows directly. It only ever worked thanks to the use of kdewin to provide compatibility headers.

KDirWatch also has some code working around a Windows limitation, which is obsolete because QFileSystemWatcher already implements the same workaround. But getting things to compile should be a priority over removing that.

KWindowSystem

Hundreds of errors casting WId to HWND in Windows‐specific code.

KArchive

Not tested yet, due to external dependencies for compression (didn't get around to installing them yet).

KJS

Not tested yet due to PCRE dependency.