LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-03-2007, 06:05 AM   #1
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Arrow amarok with mysql


hi,

i have some troubles with building amarok with mysql. ./configure claims to have found mysql , compilation doesn't give any errors, but still when i start the new amarok i can't select mysql ( there is a dropdown menu with sqllite though). i am using -current, mysql 5.0.37. any ideas?

if you have some spare time at your hands and either -11.0 or -current, could you run this slackbuild and report, wether it works for you? you'll need of course the source and the .options files.

Code:
#!/bin/sh
CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-amarok

# Set the config option variables if they are not already set:
if [ -r ./KDE.options ]; then
  . ./KDE.options
fi

# The global options may be overridden here (if needed):
if [ -r ./local.options ]; then
  . ./local.options
fi

rm -rf $PKG
mkdir -p $PKG/usr

# Avoid a version number in .la files:
if [ -d /usr/lib/qt ]; then
  QTDIR=/usr/lib/qt
fi
cd $TMP
echo "Building amarok-$VERSION.tar.bz2..."
tar xjvf $CWD/amarok-$VERSION.tar.bz2

# I *hate* it when an "a" release blows off updating the directory name.  Grrrrrrrrrrrrrrrr.
# Commented out post 1.4.0a...
#cd amarok-1.4.0 || exit 1
cd amarok-$VERSION
chown -R root:root .
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc/kde \
  --enable-mysql \
  --without-arts \
  --without-libvisual \
  --without-ifp \
  --without-libmtp \
  --without-libgpod \
  --without-libkarma \
  --without-libnjb \
  --disable-debug \
  --without-daap \
  --program-prefix="" \
  --program-suffix="" \
  --build=$TARGET-slackware-linux

sleep 30

make $NUMJOBS || exit 1
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/amarok-$VERSION
cp -a \
  AUTHORS COPYING INSTALL README TODO \
  $PKG/usr/doc/amarok-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/usr/man ]; then
  gzip -9 $PKG/usr/man/man?/*
fi

cd $PKG
makepkg -l y -c n ../amarok-$VERSION-$ARCH-$BUILD.tgz
thanks,
Andreas
 
Old 05-03-2007, 12:51 PM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Original Poster
Rep: Reputation: 30
i rebuild as myself and now the mysql option shows up.
it's a mystery to me...
 
Old 07-26-2007, 09:29 PM   #3
amcleod
LQ Newbie
 
Registered: Jul 2007
Location: Barbados
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by erklaerbaer
i have some troubles with building amarok with mysql. ./configure claims to have found mysql , compilation doesn't give any errors, but still when i start the new amarok i can't select mysql ( there is a dropdown menu with sqllite though). i am using -current, mysql 5.0.37. any ideas?
Same here. Amarok 1.4.6 with MySQL 5.0.37 (basic Slack12).

I rebuilt with --enable-mysql and got

Code:
= The following extra functionality will be included:
=   + MySql Support
I removepkg'd the original package, and installpkg'd my new build. I also deleted my ~/.kde/share/apps/amarok directory and ~/.kde/share/config/amarokrc file. Now when I go to the Settings->Configure Amarok->Collection there is a new "Collection Database" item at the bottom, but when I pull down the list only SQLite is available.

Yes, I have done

Code:
create database amarok;
grant all on amarok.* to amarok@localhost identified by 'password';
flush privileges;
I can't think what else I should do. Any suggestions welome.
 
  


Reply

Tags
amarok, mysql


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Amarok Newsletter Issue 7 Out, Wil Wheaton raves about Amarok LXer Syndicated Linux News 0 03-04-2007 02:46 PM
Amarok: [Loader] Amarok is taking a long time to load! Perhaps something has gone wro fakie_flip Linux - Software 1 01-20-2007 09:40 PM
Amarok crashes when Mysql database is selected vavoem Ubuntu 1 08-16-2006 01:41 PM
Can't get MySQL support in amaroK mwales Linux - Software 1 02-02-2006 12:49 PM
Amarok and Mysql..help! RoaCh Of DisCor Linux - Newbie 2 06-21-2005 08:40 PM


All times are GMT -5. The time now is 12:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration