Getting Started/Build/KDE4.x (pt BR): Difference between revisions

From KDE TechBase
(Compilando o KDE 4.X)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Contents
==Objetivos==
[hide]


    * 1 Objectives
Você provavelmente desejará manter a sua instalação atual do KDE-3.5.x até que se convença de que o KDE-4.x.y atende às suas necessidades diárias. Ainda, é conveniente que você possa mudar para a nova versão com um mínimo de trabalho, quando for de sua decisão.
    * 2 Method
    * 3 Installation
          o 3.1 Required packages from your distribution
          o 3.2 Create the User Account
          o 3.3 Build


==Objetivos==
==Método==


Você provavelmente desejará manter a sua instalação atual do KDE-3.5.x até que se convença de que o KDE-4.x.y atende às suas necessidades diárias. Yet, you want to be able to change over with a minimum of work when the time comes to make the switch.
A melhor forma de ter o KDE-4.x.y é instalar da forma usual no seu sistema as biliotecas de suporte. Segundo a convenção, estas bibliotecas devem ser instaladas no diretório /usr/local/.  A Troll Tech instala a biblioteca Qt, por padrão, no diretório /usr/local/Trolltech/Qt-4/.  O melhor a fazer é instalar o KDE-4.x.y em seu próprio diretório particular, pois assim é possível somente apagá-lo no caso de algo sair errado. Este guia assumirá o uso do diretório /usr/local/KDE-4/ mas você pode escolher livremente.
[edit] Method


The best way to accomplish this is to install the needed support libraries on your system in the usual manner. Convention is that these should be installed in the /usr/local/ directory. By default, Troll Tech installs Qt in: /usr/local/Trolltech/Qt-4/. It is best to install KDE-4.x.y in its own directory so that the directory can be deleted if some large problem occurs. I will be using /usr/local/KDE-4/ but you can call it whatever you want.
As configurações do seu sistema serão mantidas utilizando uma conta de usuário separada para acessar o KDE-4.x.y. Esta conta conterá sua configuração do KDE-4.x.y e terá um script para acertar as variáveis de ambiente necessárias à operação do software (.bash_profile se for no Linux).


We will keep configurations straight by using a separate user account for accessing KDE-4.x.y. This user account will contain your configurations of KDE-4.x.y and will have a script to set the environment variables (.bash_profile if using Linux).
==Instalação==
[edit] Installation
[edit] Required packages from your distribution


    * Linux from Scratch or to build from source.  
===Pré-requisitos obrigatórios===
* [[Getting_Started/Build/KDE4/LFS|Linux from Scratch]] or to build from source.


(Till other distro instructions are added, you can probably determine the correct version to install by reading the LFS list of libraries)
(Till other distro instructions are added, you can probably determine the correct version to install by reading the LFS list of libraries)


DO NOT build the Strigi version for KDE4 TRUNK for KDE-4.1
'''DO NOT build the Strigi version for KDE4 TRUNK''' for KDE-4.1


If you have trouble building 4.1.1 or 4.1 BRANCH >= r852727, use the Strigi-0.5.10 release or, if using SVN, make certain that the revision number for the Strigi-0.5 BRANCH is >= 854542
If you have trouble building 4.1.1 or 4.1 BRANCH >= r852727, use the Strigi-0.5.10 release or, if using SVN, make certain that the revision number for the Strigi-0.5 BRANCH is >= 854542


DO NOT build the versions for KDE4 TRUNK for KDE-4.0
'''DO NOT build the versions for KDE4 TRUNK''' for KDE-4.0
KDE-4.0: You need to have the correct versions for: Qt, Soprano, & QImageBlitz.


KDE-4.0: You need to have the correct versions for: Qt, Soprano, & QImageBlitz.
===Criando a Conta de Usuário===
[edit] Create the User Account
 
Use whatever method you wish to create a new user account. Mine is called: "KDE4".  Then edit or create the user specific login script (.bash_profile for Linux).  There is a lot that goes into this. Note that this presumes that USER was correctly set by the system login script.


Use whatever method you wish to create a new user account. Mine is called: "KDE4". Then edit or create the user specific login script (.bash_profile for Linux). There is a lot that goes into this. Note that this presumes that USER was correctly set by the system login script.
<nowiki>------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------</nowiki>


------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
:<nowiki>#</nowiki> Redundant setting of HOME as work around for Bash bug


    # Redundant setting of HOME as work around for Bash bug
:HOME=/home/KDE4
:PATH=$HOME/bin:<nowiki>$</nowiki>PATH
:export PATH HOME


    HOME=/home/KDE4
:XDG_DATA_HOME="$HOME/.local/share"
    PATH=$HOME/bin:$PATH
:XDG_CONFIG_HOME="$HOME/.config"
    export PATH HOME
:export XDG_DATA_HOME XDG_CONFIG_HOME


    XDG_DATA_HOME="$HOME/.local/share"
:KDEDIR=/usr/local/KDE-4
    XDG_CONFIG_HOME="$HOME/.config"
:KDEHOME=$HOME/.kde4
    export XDG_DATA_HOME XDG_CONFIG_HOME
:KDETMP=/tmp/$USER-kde4
:mkdir -p $KDETMP
:KDEVARTMP=/var/tmp/$USER-kde4
:mkdir -p $KDEVARTMP
:KDEDIRS=$KDEDIR
:PKG_CONFIG_PATH=$KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
:export KDEDIR KDEHOME KDETMP KDEVARTMP KDEDIRS PKG_CONFIG_PATH


    KDEDIR=/usr/local/KDE-4  
:QTDIR=/usr/local/Trolltech/Qt-4
    KDEHOME=$HOME/.kde4
:QT_PLUGIN_PATH=$KDEDIR/lib/kde4/plugins:$QT_PLUGIN_PATH
    KDETMP=/tmp/$USER-kde4  
:PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
    mkdir -p $KDETMP
:export QTDIR QT_PLUGIN_PATH PKG_CONFIG_PATH
    KDEVARTMP=/var/tmp/$USER-kde4
    mkdir -p $KDEVARTMP
    KDEDIRS=$KDEDIR
    PKG_CONFIG_PATH=$KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH  
    export KDEDIR KDEHOME KDETMP KDEVARTMP KDEDIRS PKG_CONFIG_PATH  


    QTDIR=/usr/local/Trolltech/Qt-4
:PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
    QT_PLUGIN_PATH=$KDEDIR/lib/kde4/plugins:$QT_PLUGIN_PATH
:export PATH
    PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
    export QTDIR QT_PLUGIN_PATH PKG_CONFIG_PATH


    PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
:XDG_CONFIG_DIRS=$KDEDIR/etc/xdg
    export PATH
:XDG_DATA_DIRS=$KDEDIR/share


    XDG_CONFIG_DIRS=$KDEDIR/etc/xdg
:export XDG_CONFIG_DIRS XDG_DATA_DIRS
    XDG_DATA_DIRS=$KDEDIR/share


    export XDG_CONFIG_DIRS XDG_DATA_DIRS
:LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib
:export LD_LIBRARY_PATH


    LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib
:LIBXCB_ALLOW_SLOPPY_LOCK="true"
    export LD_LIBRARY_PATH
:export LIBXCB_ALLOW_SLOPPY_LOCK


    LIBXCB_ALLOW_SLOPPY_LOCK="true"
<nowiki>------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------</nowiki>
    export LIBXCB_ALLOW_SLOPPY_LOCK


------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
This is in addition to other things that you need in the script which would probably go at the beginning -- this large block of junk is to be added at the end.  The XDG directories might need to be modified for your system.


This is in addition to other things that you need in the script which would probably go at the beginning -- this large block of junk is to be added at the end. The XDG directories might need to be modified for your system.
===Compilando===
[edit] Build


To build, you must be logged on as the new user account (KDE4). You can 'su' for the whole thing or 'su -C' for each install.
To build, you must be logged on as the new user account (KDE4). You can 'su' for the whole thing or 'su -C' for each install.


Packages need to be installed with the correct prefixes for this to work:
Packages need to be installed with the correct prefixes for this to work:


    If you are building Qt from source, configure it with with --prefix=/usr/local/Trolltech/Qt-4. If you installed it from a binary, determine the prefix and change: QTDIR in the script above.  
:If you are building Qt from source, configure it with with --prefix=/usr/local/Trolltech/Qt-4. If you installed it from a binary, determine the prefix and change: QTDIR in the script above.


    KDE should use: -DCMAKE_INSTALL_PREFIX=/usr/local/KDE-4 when running cmake.  
:KDE should use: -DCMAKE_INSTALL_PREFIX=/usr/local/KDE-4 when running cmake.


    KDE Support should installed in the same directory as KDE. This also applies to some of the packages if you are installing the individual packages/modules for a release or BRANCH. For packages that don't use CMake that would be: --prefix=/usr/local/KDE-4. The packages that don't install anything in "share" (eigen,eigen2) can be installed in "/usr/local/".  
:KDE Support should installed in the same directory as KDE. This also applies to some of the packages if you are installing the individual packages/modules for a release or BRANCH. For packages that don't use CMake that would be: --prefix=/usr/local/KDE-4. The packages that don't install anything in "share" (eigen,eigen2) can be installed in "/usr/local/".


    Other packages should be installed with the default prefix (/usr/local).
:Other packages should be installed with the default prefix (/usr/local).

Latest revision as of 18:07, 16 January 2009

Objetivos

Você provavelmente desejará manter a sua instalação atual do KDE-3.5.x até que se convença de que o KDE-4.x.y atende às suas necessidades diárias. Ainda, é conveniente que você possa mudar para a nova versão com um mínimo de trabalho, quando for de sua decisão.

Método

A melhor forma de ter o KDE-4.x.y é instalar da forma usual no seu sistema as biliotecas de suporte. Segundo a convenção, estas bibliotecas devem ser instaladas no diretório /usr/local/. A Troll Tech instala a biblioteca Qt, por padrão, no diretório /usr/local/Trolltech/Qt-4/. O melhor a fazer é instalar o KDE-4.x.y em seu próprio diretório particular, pois assim é possível somente apagá-lo no caso de algo sair errado. Este guia assumirá o uso do diretório /usr/local/KDE-4/ mas você pode escolher livremente.

As configurações do seu sistema serão mantidas utilizando uma conta de usuário separada para acessar o KDE-4.x.y. Esta conta conterá sua configuração do KDE-4.x.y e terá um script para acertar as variáveis de ambiente necessárias à operação do software (.bash_profile se for no Linux).

Instalação

Pré-requisitos obrigatórios

(Till other distro instructions are added, you can probably determine the correct version to install by reading the LFS list of libraries)

DO NOT build the Strigi version for KDE4 TRUNK for KDE-4.1

If you have trouble building 4.1.1 or 4.1 BRANCH >= r852727, use the Strigi-0.5.10 release or, if using SVN, make certain that the revision number for the Strigi-0.5 BRANCH is >= 854542

DO NOT build the versions for KDE4 TRUNK for KDE-4.0

KDE-4.0: You need to have the correct versions for: Qt, Soprano, & QImageBlitz.

Criando a Conta de Usuário

Use whatever method you wish to create a new user account. Mine is called: "KDE4". Then edit or create the user specific login script (.bash_profile for Linux). There is a lot that goes into this. Note that this presumes that USER was correctly set by the system login script.

------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------

# Redundant setting of HOME as work around for Bash bug
HOME=/home/KDE4
PATH=$HOME/bin:$PATH
export PATH HOME
XDG_DATA_HOME="$HOME/.local/share"
XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME XDG_CONFIG_HOME
KDEDIR=/usr/local/KDE-4
KDEHOME=$HOME/.kde4
KDETMP=/tmp/$USER-kde4
mkdir -p $KDETMP
KDEVARTMP=/var/tmp/$USER-kde4
mkdir -p $KDEVARTMP
KDEDIRS=$KDEDIR
PKG_CONFIG_PATH=$KDEDIR/lib/pkgconfig:$PKG_CONFIG_PATH
export KDEDIR KDEHOME KDETMP KDEVARTMP KDEDIRS PKG_CONFIG_PATH
QTDIR=/usr/local/Trolltech/Qt-4
QT_PLUGIN_PATH=$KDEDIR/lib/kde4/plugins:$QT_PLUGIN_PATH
PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
export QTDIR QT_PLUGIN_PATH PKG_CONFIG_PATH
PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
export PATH
XDG_CONFIG_DIRS=$KDEDIR/etc/xdg
XDG_DATA_DIRS=$KDEDIR/share
export XDG_CONFIG_DIRS XDG_DATA_DIRS
LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib
export LD_LIBRARY_PATH
LIBXCB_ALLOW_SLOPPY_LOCK="true"
export LIBXCB_ALLOW_SLOPPY_LOCK

------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------

This is in addition to other things that you need in the script which would probably go at the beginning -- this large block of junk is to be added at the end. The XDG directories might need to be modified for your system.

Compilando

To build, you must be logged on as the new user account (KDE4). You can 'su' for the whole thing or 'su -C' for each install.

Packages need to be installed with the correct prefixes for this to work:

If you are building Qt from source, configure it with with --prefix=/usr/local/Trolltech/Qt-4. If you installed it from a binary, determine the prefix and change: QTDIR in the script above.
KDE should use: -DCMAKE_INSTALL_PREFIX=/usr/local/KDE-4 when running cmake.
KDE Support should installed in the same directory as KDE. This also applies to some of the packages if you are installing the individual packages/modules for a release or BRANCH. For packages that don't use CMake that would be: --prefix=/usr/local/KDE-4. The packages that don't install anything in "share" (eigen,eigen2) can be installed in "/usr/local/".
Other packages should be installed with the default prefix (/usr/local).