Jump to content

Frameworks/Windows: Difference between revisions

From KDE Community Wiki
Nalvarez (talk | contribs)
Nalvarez (talk | contribs)
Add table - commented out.
Line 7: Line 7:


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...
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...
<!-- WIP table
{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="background: #ececec; white-space:nowrap;"
! Status
! Framework
! Comments
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|itemmodels
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|itemviews
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|kplotting
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|kcodec
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|kguiaddons
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|kidletime
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|kwidgetsaddons
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #ABFFAB;"|BUILDS
|style="background-color: #EEFFEE;"|sonnet
|style="background-color: #EEFFEE;"|
|-
|style="background-color: #FFFFA0;"|TODO
|style="background-color: #FFFFCD;"|threadweaver
|style="background-color: #FFFFCD;"|Has a minor build error due to a MSVC bug
|-
|style="background-color: #FFABAB;"|FAILS BUILD
|style="background-color: #FFEEEE;"|kcoreaddons
|style="background-color: #FFEEEE;"|Several build errors due to relying on POSIXisms
|} -->


=== KCoreAddons ===
=== KCoreAddons ===

Revision as of 01:38, 15 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...


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.