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

ktorrent svn 27/08/2008 fails to find automoc4 (kde 4.2svn)

Tags: None
(comma "," separated)
fast_rizwaan
Registered Member
Posts
25
Karma
0
OS
hi,

i have kde4.2svn lnstalled, but ktorrent is not compiling after some kde 4.2 changes. ktorrent 3.1.1 was not compiling :( the problem seems to be with cmake unable to find kde4.2svn's automoc4. I even installed automoc4 in /usr but still it fails.

---------------------------------------------
root@superb:~/build/ktorrent# which automoc4
/opt/kde/bin/automoc4
----------------------------------------------
root@superb:~/build/ktorrent# automoc4 --version
automoc4 0.9.87
----------------------------------------------

Even ktorrent 3.1.2 is not compiling, because cmake can't find the installed automoc4 which is in /opt/kde.

here's the cmake output:
root@superb:~/build/ktorrent# cmake /root/ktorrent-3.1.2/
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.0 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
CMake Error at /usr/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmake:57 (MESSAGE):
Did not find automoc4 (part of kdesupport). Searched for
Automoc4Config.cmake in
/;/usr;/usr/local;/usr;/usr/local;/usr/lib/w32api;/usr/X11R6/lib;/usr/lib/X11;/opt/local/lib;/usr/pkg/lib;/opt/csw/lib;/opt/lib;/usr/openwin/lib;/usr/local
using suffixes automoc4 lib/automoc4 lib64/automoc4. (missing:
AUTOMOC4_EXECUTABLE)
Call Stack (most recent call first):
/opt/kde/share/apps/cmake/modules/FindAutomoc4.cmake:56 (find_package_handle_standard_args)
/opt/kde/share/apps/cmake/modules/FindKDE4Internal.cmake:279 (find_package)
/usr/share/cmake-2.6/Modules/FindKDE4.cmake:69 (FIND_PACKAGE)
CMakeLists.txt:2 (find_package)


-- Configuring done
fast_rizwaan
Registered Member
Posts
25
Karma
0
OS

Fixed.. workaround

Wed Aug 27, 2008 3:02 am
It was ktorrents' cmake trying to find automoc4 at /usr not at kdesupport's installed directory /opt/kde (which was in the path, of course)

Solution:

ln -sf /opt/kde/bin/automoc4 /usr/bin

and compile ktorrent

cd ktorrent
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/kde
make
make install

works! thanks.


Bookmarks



Who is online

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