< Getting Started‎ | Build‎ | Historic
Revision as of 12:30, 1 May 2008 by Tampakrap (talk | contribs) (New page: {{Template:I18n/Language Navigation Bar|Projects/KDE_on_Windows/Installation}} {{Aviso|Atualmente os atuais desenvolvedores resumem aqui o status de desenvolvimento do KDE4 no Windows, en...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Getting Started/Build/Historic/KDE4 Windows (pt BR)



Instalador do KDE para WIndows

Você pode usar o instalador do KDE para baixar e instalar os pacotes necessários para usar o KDE no MS Windows, incluindo suas aplicações, como KDE Network, KDE Games, etc. O KDE é um software livre e open source, o que possibilita a você também compilar todos os programas usando o código fonte ("from scratch"); mas para facilitar, vários voluntários criam pacotes pré-compilados e os disponibiliza na internet.

Importante Esses são os primeiros dias do KDE4 funcionando no Windows, alguns programas podem funcionar melhor que outros, ou até não funcionar.

Se você tiver algum problema com o KDE4, por favor dê uma olhada em nossa lista de e-mail.

Você também pode usar o instalador do KDE para baixar o código fonte e os programas que você precisa para compilar o KDE no Windows (porém, se você preferir compilar o KDE4 no Windows, você pode optar por usar o sistema emerge, que compila o KDE e as dependências necessárias, usando as versões mais recentes do código fonte); veja mais em Getting Started/Build/KDE4/Windows.

Resumo das etapas de instalação

  • Entre em http://www.winkde.org/pub/kde/ports/win32/installer/
  • Baixe e salve a última versão disponível do instalador em algum diretório, exemplo: C:\KDE4
  • Execute o instalador, selecione os pacotes que você deseja instalar (veja os pacotes necessários abaixo).
  • Adicione na variável de ambiente KDEDIRS (Menu Iniciar > Painel de Controle > Sistema > Avançado > Variáveis de Ambiente, em no botão [Nova] na opção variavéis de usuário e crie uma variável de nome KDEDIRS, e no valor da variável, digite o diretório que você instalou o KDE4, exemplo: C:\KDE4).
  • Adicione o diretório lib %KDEDIRS\lib, e o diretório bin, %KDEDIRS\bin, na variável %PATH% do Windows. (Menu Iniciar > Painel de Controle > Sistema > Avançado > Variáveis de Ambiente, clique duas vezes na variável PATH dentro de variáveis do sistema, e adicione esses valores usando o ponto e virgula para separá-los, exemplo: %SystemRoot%\system32;%KDEDIRS\lib;%KDEDIRS\bin)
  • Se você não tivre o Microsoft Visual Studio 2005 instalado, baixe e instale o "Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)" [1]
  • [TEMPORARIAMENTE] Siga as instruções em passos após a instalação
  • Tente executar algum programa usando Qt no diretório bin (ex. c:\kde4\bin, tente por exemplo linguist.exe
  • Se funcionar, tente execute alguma aplicação do KDE, por exemplo kwrite.exe.

Download needed packages

A single program in the The K Desktop Environment depends on many other libraries and packages; that is why each .exe is comparatively small. The KDE Installer for Windows has some awareness of dependencies, but not complete. So, the first few times you try to run an application you may see alerts about missing DLLs.

If you do not intend to build from source, do not click "all" and do not click "src", as you do not need to download the source for each package. Unclear whether you need lib for each.

There are two development systems for KDE on Windows, Microsoft's Visual C and MinGW. Even if you are only running binaries and do not intend to build KDE4 yourself, you need to choose between these because of the provided runtime environments. You're free to decide which to take.

The KDE programs themselves are organized into several groups: kdeedu, kdegames, and kdegraphics.

Here are some of the minimal packages you need to run a KDE application:

dbus-msvc, kdebase-msvc, kdewin32-msvc, qt-msvc, vcredist, ??

The Dependencies tab for a particular package lists some of the additional packages it needs. However, the dependency checking currently only works for first-level dependencies Other dependencies are not easy to determine in advance. For example, if you install kdegames only with its dependencies, you will not be able to start it because you also need libstreamanalyze (for which you have to install the strigi package). rhabacker: This is fixed in installer version > 0.8.4.

Getting_Started/Build/KDE4/Windows/3rd-party_libraries is a more complete list of libraries that a full installation needs.

Issues with KDE Installer for Windows

If you find an issue, please report to [2].

Successful? completion

If something goes wrong during installation, for example a file can't be replaced because it is still in use, the installer may still report successful completion. If you see any alert or failure message from the installer, when it completes quit and re-run it.

Testing your installation

Navigate to the bin directory.

See if you can run the Qt program assistant.exe. Qt programs have fewer dependencies than a full-blown KDE application.

If that works, try running a simple KDE application, such as lskat.exe from the kdegames package.

The first KDE application you run will start a console window in order to run the D-Bus daemon.


Set Oxygen style for widgets

The default KDE widget style on Windows is the native one. You already have Oxygen style installed (which is a plugin library %KDEROOT%\lib\kde4\plugins\styles\oxygen.dll), so it can be used as well. To set it for a single user:

  1. edit %UserPROFILE%\.kde\share\config\kdeglobals with any text editor (e.g. kwrite) Note: `cd %UserPROFILE%` will change to the right directory, effectively telling you what %UserPROFILE% expands to, such as "C:\Documents and Settings\mark"
  2. locate the General section (a line containing the text "[General]"). If there is no General section, create one.
  3. Within the General section ([General]), edit the line containing widgetStyle=.... so that it reads widgetStyle=oxygen. If there is no such widgetStyle=... line, create it.

Newly started applications should be displayed with Oxygen style now.


Using kdewin-installer-gui-0.8.6.exe to install 4.00.60 packages:

  • starting a KDE program correctly starts dbus-daemon.exe
  • many games run
  • choosing File > Open correctly starts klauncher.exe, kioslave.exe and kded4.exe, and runs kbuildsycoca4.exe as needed.
  • Full-text search in khelpcenter does not work because Perl scripts are disabled.
  • Many applications have a generic icon in Windows Explorer.
  • Applications that try to play sounds might display an alert about "Multimedia Backend" problems. This requires the Windows backend for Phonon. The amarok package installs an experimental Windows phonon backend. Amarok plays music!!

General notes:

  • There are many other KDE programs that are not part of KDE 4.0.0 and are not currently packaged for Windows, such as KOffice 2.
  • By design, KDE-windows does not provide the full-blown KDE desktop, thus no KWin composite manager, KDE-specific "start" menus, Plasma desktop, etc.

Package status and contents

package status contains applications
kdebase packaged Konqueror, Dolphin, KWrite, etc.
kdegames packaged Kgoldrunner, Kpat, KMahjongg, etc.
kdesdk packaged Kate, Umbrello, etc.
kdetoys packaged KTeatime, etc.
kdeedu packaged Marble, Parley, KStars, KHangman, etc.
kdegraphics packaged Okular, kolourpaint, etc.
amarok packaged Amarok music player
koffice not packaged KWord, Krita, Karbon, etc.
kdepim not building KMail, AKregator, etc.
kdenetwork not building Kopete, KGet, etc.
kdeutils not packaged KGpg, KWallet, etc.

Deprecated: post-install steps

After manual installation of a package one has to run the included post-install.bat script (inside the manifest folder). This batch file includes at least the following steps.

Run update-mime-database

Be sure that you have no KDE-related applications running: run the Windows Task Manager (taskmgr.exe), switch to its Processes tab, and kill all occurences of dbus-daemon.exe, kded4.exe, kioslave.exe and klauncher.exe (and all other KDE apps).

Open a Windows command prompt (cmd.exe) and navigate to the directory where you installed KDE. Say you installed KDE to C:\KDE4, then run from the cmd.exe window:

 C:\KDE4> bin\update-mime-database C:\KDE4\share\mime

This will give you a lot of warning message. Most of them you can easily ignore; even if you should set XDG_DATA_HOME or XDG_DATA_DIRS it worked perfectly. If it says you should rerun update-mime-database as root then you're not within your installation directory.

Run kbuildsyscoca4

After finishing the previous step, run

 C:\KDE4> bin\kbuildsycoca4 --noincremental

If this tells you that your disk is full (which is most probably not the case) you have still some executables from KDE running. Please close them and try again.

Excuse us for the inconvenience — we hope for a better solution in the next release.

This page was last edited on 11 March 2016, at 13:28. Content is available under Creative Commons License SA 4.0 unless otherwise noted.