This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdelibs requires an out of source build

Tags: building building building
(comma "," separated)
suikodian
Registered Member
Posts
4
Karma
0
OS
I am trying to build KDE4 under opensuse 11.1, however, running cmakekde under the kdelibs directory returns the following error
Code: Select all
mkdir: cannot create directory `': No such file or directory         
mkdir: cannot create directory `': No such file or directory         
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)                     
-- Found X11: /usr/lib/libX11.so                                     
-- Building kdelibs...                                               
-- Phonon Version: 4.3.0                                             
-- Found the KDE4 kconfig_compiler preprocessor: /media/store/kde/src/KDE/kdelibs/bin/./kconfig_compiler.shell
-- Found automoc4: /usr/bin/automoc4                                                                         
-- Strigi API needs 'signed char'                                                                             
-- Could NOT find LIBLZMA  (missing:  LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)                                                                                                                                   
-- Found Soprano version 2.3.0: /usr/lib/libsoprano.so                                                                                     
-- Found Soprano includes: /usr/include                                                                                                     
-- Found Soprano Index: /usr/lib/libsopranoindex.so                                                                                         
-- Found Soprano Client: /usr/lib/libsopranoclient.so                                                                                       
-- Found Soprano Plugin Dir: /usr/share/soprano/plugins                                                                                     
-- Found Soprano Plugins: nquadparser nquadserializer raptorparser raptorserializer redlandbackend                                         
CMake Error at cmake/modules/MacroEnsureOutOfSourceBuild.cmake:17 (MESSAGE):                                                               
  kdelibs requires an out of source build.  Please create a separate build                                                                 
  directory and run 'cmake path_to_kdelibs [options]' there.                                                                               
Call Stack (most recent call first):                                                                                                       
  CMakeLists.txt:98 (macro_ensure_out_of_source_build)                                                                                     


-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
mkdir: cannot create directory `': No such file or directory


Here is what I did
1. Downloaded kdebase-svn.tar.bz2, kdelibs-svn.tar.bz2 and kdepimlibs-svn.tar.bz2 then followed the instructions on http://techbase.kde.org/Getting_Started/Sources/Snapshots (Is kdepimlibs-svn.tar.bz2 required for a base build?)
2. Created a kde-devel user account
3. Copied the .bashrc from http://techbase.kde.org/Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc with no modification. Do I need to make any changes?
4. Added the required packages listed on http://techbase.kde.org/Getting_Started/Build/KDE4/openSUSE
5. cd kdelibs && cmakekde

I tried the tips on http://techbase.kde.org/Getting_Started/Build/KDE4/Troubleshooting#Issues_building_kdelibs but the error persists.
User avatar
anda_skoa
KDE Developer
Posts
783
Karma
4
OS
I haven't use cmakekde myself yet, but maybe it needs a certain parameter.

If you use standard cmake you should be able to do this

Code: Select all
cd kdelibs
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/you/want/to/install/to ..


Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
suikodian
Registered Member
Posts
4
Karma
0
OS
Thanks anda_skoa :), creating a separate directory for build solved the problem. However, I cannot build kdepimlibs

Code: Select all
kde-devel@linux-playground:~/kde/src/KDE/kdepimlibs> cmakekde
mkdir: cannot create directory `': No such file or directory
mkdir: cannot create directory `': No such file or directory
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:84 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
Call Stack (most recent call first):
  CMakeLists.txt:19 (find_package)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
mkdir: cannot create directory `': No such file or directory
kde-devel@linux-playground:~/kde/src/KDE/kdepimlibs> cmake --version
cmake version 2.6-patch 2


Are the instructions on http://techbase.kde.org/Getting_Started/Build/KDE4 valid?
User avatar
JanGerrit
Moderator
Posts
647
Karma
3
OS
It says that it isn't able to find the KDELibs, if I got it right.
But I think it has to search in other paths than:
Code: Select all
/root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps

You said, that you have set up the bashrc. How do you log in into the kde-devel shell? (I think that the environment variables aren't set right)


Image
suikodian
Registered Member
Posts
4
Karma
0
OS
I log in using the following command

Code: Select all
defaultuser@linux-playground:~> ssh -X kde-devel@localhost
Password:
Last login: Sat Aug 15 13:15:41 2009 from localhost
Have a lot of fun...
mkdir: missing operand
Try `mkdir --help' for more information.
-bash: /home/kde-devel/.bashrc: line 222: syntax error near unexpected token `.bashrc'
-bash: /home/kde-devel/.bashrc: line 222: `.bashrc'
kde-devel@linux-playground:~>


here is the code containing line 222

Code: Select all
function _cs_scandir
{
        local base ext

        base=
        ext=
        if [ -d  ]; then
                for d in .bash_history
.bashrc # this is line 222
.emacs
.fonts
.inputrc
.mozilla
.profile
.vimrc
.xim.template
.xinitrc.template
Documents
bin
public_html; do
                        if [ -d / ]; then
                                dirs=" /"
                        fi
                done
        fi
}


I use the .bashrc from http://techbase.kde.org/Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc
User avatar
JanGerrit
Moderator
Posts
647
Karma
3
OS
I think you should remove the new lines after .bash_history, .bashrc and so on, so it looks like this
Code: Select all
 for d in .bash_history .emacs .fonts .inputrc .mozilla .profile .vimrc .xim.template .xinitrc.template Documents bin public_html; do
                        if [ -d / ]; then
                                dirs=" /"
                        fi
                done

There isn't a new line after .xinitrc.template.


Image
suikodian
Registered Member
Posts
4
Karma
0
OS
I am still getting the same error message when trying to build kdepimlibs

Code: Select all
defaultuser@linux-playground:~> ssh -X kde-devel@localhost
Password:
Last login: Sat Aug 15 15:46:48 2009 from localhost
Have a lot of fun...
mkdir: missing operand
Try `mkdir --help' for more information.
kde-devel@linux-playground:~> cd kde/src/KDE/kdepimlibs/
kde-devel@linux-playground:~/kde/src/KDE/kdepimlibs> cmakekde
mkdir: cannot create directory `': No such file or directory
mkdir: cannot create directory `': No such file or directory
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:84 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
Call Stack (most recent call first):
  CMakeLists.txt:19 (find_package)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
mkdir: cannot create directory `': No such file or directory

Did the instructions on http://techbase.kde.org/Getting_Started/Build/KDE4 work for you?
User avatar
JanGerrit
Moderator
Posts
647
Karma
3
OS
Yes, they did.
There's a failure with makedir in your ~/.bashrc
Could you somehow provide your ~/.bashrc?


Image
sahilsehgal
Registered Member
Posts
1
Karma
0
I was trying to use cmake in windows.
But m not able to find that KDELIBS someone please help me in installing kdelibs in windows.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You may wish to ask about this on the kde-windows@kde.org mailing list. I assume you're trying to compile the KDE 4 version of kdelibs, rather than the Frameworks?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]