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

Getting_Started:ThePrerequesites:Phonon can't find Automoc4

Tags: None
(comma "," separated)
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
I'm currently trying to get started but failed with building Phonon (currently following this manual http://techbase.kde.org/Getting_Started ... tes#Phonon).

But I get an error that cmake can't find Automoc4 which should be in kdesupport. I already build kdesupport and installed it. As I'm not very familiar with building KDE or cmake in general I'm asking for help.

Maybe somebody knows what went wrong and where I have to look.

I post the error output of cmakekde when I'm back at home.

UPDATE: here's the output
Code: Select all
cmake .. -DCMAKE_INSTALL_PREFIX=$QTDIR -DCMAKE_BUILD_TYPE=debugfull \-DKDE4_BUILD_TESTS=TRUE
-- Found Qt-Version 4.6.2 (using /home/kde-devel/qt-kde/bin/qmake)
-- Found Threads: TRUE
CMake Error at cmake/FindAutomoc4.cmake:75 (message):
  Did not find automoc4 (part of kdesupport).
Call Stack (most recent call first):
  CMakeLists.txt:28 (find_package)


-- Configuring incomplete, errors occurred!


42: There is no other answer. There are only different ways to express it.
0x2A
0o52
0b101010
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Where did you install kdesupport? If you installed it to a non-standard location, then you will need to export several environment variables. These values are CMAKE_PREFIX_PATH, PATH, LD_LIBRARY_PATH, KDEDIRS and PKG_CONFIG_PATH.

The following shell code will set these environment variables as needed ( change $INSTALLPREFIX to where you installed kdesupport )

Code: Select all
export KDEDIRS=$INSTALLPREFIX:/usr
export PATH=$INSTALLPREFIX/bin:$PATH
export LD_LIBRARY_PATH=$INSTALLPREFIX/lib:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=$INSTALLPREFIX
export PKG_CONFIG_PATH="$INSTALLPREFIX/share/pkgconfig:$INSTALLPREFIX/lib/pkgconfig


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
how do I know where kdesupport was installed? normally all kde trunk stuff is installed into /home/kde-devel/kde

I tried setting $INSTALLPREFIX to that path but without success. still the same error.

UPDATE: I tried using cmakekde instead because I noticed the given cmake statement includes a -DCMAKE_INSTALL_PREFIX=$QTDIR...

I could compile but was this command correct if I want to proceed further?


42: There is no other answer. There are only different ways to express it.
0x2A
0o52
0b101010
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That command appears to be correct, assuming $QTDIR was set. Given that it compiled fine it likely was able to locate where it was installing the files.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
LBL
Registered Member
Posts
131
Karma
0
OS
$QTDIR was set and no further problems occured... I continue to build KDE and advance to kdelibs

thanks for your help :)


42: There is no other answer. There are only different ways to express it.
0x2A
0o52
0b101010


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]