Talk:Installing third party softwares in terminal/Build/KDE4: Difference between revisions

From KDE TechBase
(reorganization. cleaner)
Line 1: Line 1:
== cs and cb versus cd ==
==== Q: What is cs and cb? ====


If you're reading the article and wondering who in their right mind would misspell the cd command as cs so many times, you need to read the article about setting up your .bashrc.  Both '''cs''' and '''cb''' are bash functions, used to change to the KDE source directory and KDE build directory respectively. Make sure it's actually a mistake before 'fixing' the article by changing cs or cb to cd.  Otherwise it'll just be reverted. --[[User:Mpyne|Mpyne]] 21:23, 28 February 2007 (CET)
A: '''This is not a typo'''. Read the article about setting up your .bashrc.  Both '''cs''' and '''cb''' are bash functions, used to change to the KDE source directory and KDE build directory respectively.


'''Comment:''' I just fell into the same trap and then tried to correct this in the wiki. I think the main reason for the confusion regarding cs/cb vs. cd is that most users (myself included) just copy&paste the commands and then wonder when the commands fail due to missing src & build directories. My first guess was 'well, there's a typo in the cd command.' I suggest adding a "mkdir -p" for src and build to the .bashrc provided on the wiki page.
==== Q: Are there build instructions for other OS? ====


== ~/install ==
A: Actually yes, for [[Getting Started/Build/KDE4/Mac OS X|Mac OS X]]. There also is [http://www.kdelibs.com kdelibs.com] (see also [[User_talk:Jstaniek#KDElibs.com_and_developernew.kde.org_coexistence|here]]) which will be merged into this wiki in the future.
 
==== Q: How can I exclude qt-copy examples from building? ====
A: Append the ./configure option: '''-nomake examples'''. This is even the default now.
 
==== Q: Isn't the install prefix, make and make install missing for modules like kdelibs and kdebase? ====
A: No. The shell function ''cmakekde'' handels this, have a look at the file [[Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc|.bashrc]].
 
==== Q: How can I generate API Documentation for other modules? ====
A: Try the following code, replacing <modulename> with your desired module:
cs
mkdir -p apidox
cs apidox
../kdelibs/doc/api/doxygen.sh ../<modulename>/
 
==== Notes: ~/install ====


When installing KDE4, I strongly recommend installing all tools (like dbus and cmake) and kde packages into the same place, e.g. ~/install. Qt is the only exception.
When installing KDE4, I strongly recommend installing all tools (like dbus and cmake) and kde packages into the same place, e.g. ~/install. Qt is the only exception.
Line 21: Line 36:
http://developer.kde.org/build/trunk.html
http://developer.kde.org/build/trunk.html


== Platform Independence ==
==== Install CMake modules local ====
 
We should provide multiple versions of these instructions based on which OS the user wishes to compile on. Right now the windows instructions are on kdelibs.com and I don't know of any Mac instructions. [[User:Mattr|Mattr]] 17:42, 26 December 2006 (CET)
 
== Install CMake modules local ==


The CMake modules should be installed local into ~/install/cmake/modules or similar.
The CMake modules should be installed local into ~/install/cmake/modules or similar.
Line 36: Line 47:
--[[User:Eliasp|Eliasp]] 15:44, 4 January 2007 (CET)
--[[User:Eliasp|Eliasp]] 15:44, 4 January 2007 (CET)


 
==== Set up D-Bus ====
== KDElibs.com and developernew.kde.org coexistence ==
Regarding content from kdelibs.com, see [[User_talk:Jstaniek#KDElibs.com_and_developernew.kde.org_coexistence]]
--[[User:Jstaniek|jstaniek]] 18:10, 11 January 2007 (CET)
 
== Install prefix ==
I don't know if I missed something but shouldn't the build instructions for kdelibs, kdepimlibs and kdebase be followed by make && make install? Furthermore, the cmake command should ideally be called with the -DCMAKE_INSTALL_PREFIX=$KDEDIR cmdline argument to let a user install into the local ~/kde directory so no root permissions are required and /usr/local doesn't get polluted.
 
== Apidox ==
Can anybody please add instructions on how to build the apidox? I managed to do this for kdelibs, but not for kdepim or kdepimlibs.
 
[[User:TMG|TMG]] 16:12, 26 January 2007 (CET)
 
==  Set up D-Bus ==
Doesn't it have to be "--localstatedir=$HOME/var" instead of "--localstatedir=/var" when configuring Dbus? When i use the latter, i get a permission denied
Doesn't it have to be "--localstatedir=$HOME/var" instead of "--localstatedir=/var" when configuring Dbus? When i use the latter, i get a permission denied


== Fixes needed ==
==== Fixes needed ====
There are still some places where the code is not according to the explanation or the other way around:
There are still some places where the code is not according to the explanation or the other way around:
* d-bus: there is a 'cs' at the beginning, but the explanation says line 1 is the wget line
* d-bus: there is a 'cs' at the beginning, but the explanation says line 1 is the wget line
Line 61: Line 59:


* qt-copy: Should we pass the -debug flag?  Doesn't Qt install debug information separately by default anyways?  Or is that just in the snapshot? --[[User:Mpyne|Mpyne]]
* qt-copy: Should we pass the -debug flag?  Doesn't Qt install debug information separately by default anyways?  Or is that just in the snapshot? --[[User:Mpyne|Mpyne]]
== Exclude building qt-copy examples ==
My system is mainly compiling the qt-copy examples, and I wonder if that is really needed. If not, is there a configure switch to prevent make to compile the examples?
--[[User:141.35.185.149|141.35.185.149]] 17:37, 2 March 2007 (CET)
: Append the ./configure option: '''-nomake examples''' <br>--[[User:Dhaumann|Dhaumann]]
::Thanks - would it make sense to mention that in the build instrcutions? --[[User:141.35.185.149|141.35.185.149]] 21:26, 5 March 2007 (CET)
::: Done.  BTW, do we pare down (remove) Talk entries when they are completed or leave them here so people know why the Wiki looks the way it does? --[[User:Mpyne|Mpyne]] 23:32, 5 March 2007 (CET)
::::Usually we delete them. We could switch this talk page over to a FAQ-like page, like Q: ..., A: ... Then we could leave the info (i.e. the whole thread is not needed) --10:38, 6 March 2007 (CET)

Revision as of 10:01, 6 March 2007

Q: What is cs and cb?

A: This is not a typo. Read the article about setting up your .bashrc. Both cs and cb are bash functions, used to change to the KDE source directory and KDE build directory respectively.

Q: Are there build instructions for other OS?

A: Actually yes, for Mac OS X. There also is kdelibs.com (see also here) which will be merged into this wiki in the future.

Q: How can I exclude qt-copy examples from building?

A: Append the ./configure option: -nomake examples. This is even the default now.

Q: Isn't the install prefix, make and make install missing for modules like kdelibs and kdebase?

A: No. The shell function cmakekde handels this, have a look at the file .bashrc.

Q: How can I generate API Documentation for other modules?

A: Try the following code, replacing <modulename> with your desired module:

cs
mkdir -p apidox
cs apidox
../kdelibs/doc/api/doxygen.sh ../<modulename>/

Notes: ~/install

When installing KDE4, I strongly recommend installing all tools (like dbus and cmake) and kde packages into the same place, e.g. ~/install. Qt is the only exception.

The reason for this is because if you install some packages to ~/kde and some to /usr/local and maybe one in /usr then cmake will generate errors like:

-- It is impossible to order the include directories.

This is not a fatal error, so you will still be able to compile, but you will possibly be using the wrong versions of libraries and this will product problems that are very hard to diagnose.

You may not experience any problems when installed like I advise not to, however I have and you might too in some typical situations.

Please see:

http://developer.kde.org/build/trunk.html

Install CMake modules local

The CMake modules should be installed local into ~/install/cmake/modules or similar. When following the current instructions 6.1: Install additional CMake modules, it's impossible to do a non-root installation, because "kdelibs/cmake/modules/cmake_install.cmake" wants to install the modules to "/cmake/modules". (I didn't install CMake local, because my system already provided CMake > 2.4.3).

I've already tried to do this, fiddling around with CMAKE_MODULE_PATH and DATA_INSTALL_DIR but couldn't get it working.

Does anybody know how to do this properly?

--Eliasp 15:44, 4 January 2007 (CET)

Set up D-Bus

Doesn't it have to be "--localstatedir=$HOME/var" instead of "--localstatedir=/var" when configuring Dbus? When i use the latter, i get a permission denied

Fixes needed

There are still some places where the code is not according to the explanation or the other way around:

  • d-bus: there is a 'cs' at the beginning, but the explanation says line 1 is the wget line
  • cmake: the code says 'cs' while the explanation says home directory
  • qt-copy: the code says 'cs' while the explanation says home directory

--141.35.185.149 17:34, 2 March 2007 (CET)

  • qt-copy: Should we pass the -debug flag? Doesn't Qt install debug information separately by default anyways? Or is that just in the snapshot? --Mpyne