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

amarok won't build

Tags: None
(comma "," separated)
vmitjans
Registered Member
Posts
3
Karma
0

amarok won't build

Wed Oct 08, 2008 10:11 am
Hi,

I can't build Amarok from SVN. I can download it but when I enter:

Code: Select all
 $ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull .. && make && make install


I get this result:
Code: Select all
-- 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 XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.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
CMake Error at applets/lastfmevents/CMakeLists.txt:8 (kde4_add_plugin):
  Unknown CMake command "kde4_add_plugin".


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 done


I am using Mandriva 2008.1 with KDE 3.5.9 and KDE 4.1 installed.  Release: 2.6.24.7-desktop586-1mnb

Can somebody help me, please?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: amarok won't build

Wed Oct 08, 2008 12:35 pm
Your CMake might be too old. You need version 2.6.


--
Mark Kretschmann - Amarok Developer
10t3r
Registered Member
Posts
1
Karma
0

Re: amarok won't build

Wed Oct 08, 2008 5:53 pm
I had the same problem.  Until I realized that following the development directions in the wiki had me put the build directory in amarok/src/context/ rather than in just amarok/

putting build/ in amarok/, and thus using cmake in the right directory made a world of difference.
vmitjans
Registered Member
Posts
3
Karma
0

Re: amarok won't build

Wed Oct 15, 2008 3:06 pm
Thanks, now it works, just had to change to /amarok/build/ instead of /. The only problem is that I get stuck in:
Code: Select all
-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- Please install them before continuing this software installation.
-----------------------------------------------------------------------------
+ mysqld: Embedded MySQL <http://www.mysql.com>
-----------------------------------------------------------------------------


So this thread becomes:
http://amarok.kde.org/forum/index.php/t ... 23915.html

But I can't find the script to install MySQL:
http://amarok.kde.org/forum/index.php/t ... l#msg23915

Any ideas?
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: amarok won't build

Wed Oct 15, 2008 6:49 pm


--
Mark Kretschmann - Amarok Developer
vmitjans
Registered Member
Posts
3
Karma
0

Re: amarok won't build

Wed Oct 15, 2008 10:54 pm
OK, I have followed the instructions, changed to /amarok/supplementary_scripts/mysqle/

then:
Code: Select all
./build-mysql.sh --prefix=${HOME}/usr


and then I get this:

Code: Select all
>>> Hi there!
Where're mysql patches located? [patches]
>>> Applying patch patches/keylength.patch # 0
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/include/myisam.h 2008-07-29 21:33:57.000000000 +0400
|+++ b/include/myisam.h 2008-07-29 21:34:29.000000000 +0400
--------------------------
File to patch:  


tried changing to /patches/ instead

and the result is:

Code: Select all
>>> Hi there!
Where're mysql patches located? [patches]
>>> Applying patch patches/*.patch # 0
./build-mysqle.sh: line 23: patches/*.patch: No existe el fichero o el directorio
!!! Oh noes! patch failed! Failure count: 0
!!! Some patches could not be applied
>>> Ready to run configure like this:
CFLAGS="-fPIC -ggdb " CXXFLAGS="-fPIC -ggdb " ./configure --without-server --with-embedded-server --without-docs --without-man --without-bench --without-ssl --without-extra-tools --with-pic --prefix=/home/vmitjans/usr
>>> Configuring in 6 5 4 3 2 1 ./build-mysqle.sh: line 50: ./configure: There's no such file or folder
!!! configure failed, aborting


sorry...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]