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

amarok 1.2 +FreeBSD 5 bug+solution

Tags: None
(comma "," separated)
Hannes Hauswedell
Karma
0

amarok 1.2 +FreeBSD 5 bug+solution

Mon Feb 28, 2005 1:13 am
to install amarok 1.2 from source in freebsd 5 stable the following things have to be done, this is both meant as guide to bsd users and as request/solution to amarok-coders to get this fixed:
1.kconfig_compiler is passed arguments it doesnt understand from configure, which do not result in configure failure but cause make to fail later. for now goto amarok-sourcedir/amarok/src and enter
\"kconfig_compiler ./engine/gst/config/gstconfig.kcfg ./engine/gst/config/gstconfig.kcfgc\"
\"kconfig_compiler ./amarokcore/amarok.kcfg ./amarokcore/amarokconfig.kcfgc\"
2.do a configure with ./configure LDFLAGS=-pthread
3.then uic each .ui file manually
this is done by changing into every directory that contains .ui files and at the example of Options1.ui
uic -o Options1.h Options1.ui
uic -o Options.cpp -impl Options1.h Options1.ui
4.then make
should work like this but would be nicer if fixed ;)
Hannes Hauswedell
Karma
0
another thing i forgot,
after step 3 open amarok/src/firstrunwizard.cpp and replace KWizard with QWizard in line 34.
Woo
Karma
0
Thanx man, this worked nicely...you are the god. ;)


// Woo
neptho
Karma
0

Re:amarok 1.2 +FreeBSD 5 bug+solution

Sat Mar 19, 2005 12:50 pm
This is pretty rogue, but I\'m lazy. This will do all of the processing. Save it in your amarok root directory. It should be expanded further, and fixed so it\'s not quite so worthless, but as I said, I\'m pretty lazy.

[code:1]#!/bin/sh
MYDIR=`pwd`
if [ -d amarok/src ]; then
cd amarok/src
echo \">>> Compiling configurations...\"
kconfig_compiler ./engine/gst/config/gstconfig.kcfg /engine/gst/config/gstconfi
g.kcfgc
kconfig_compiler ./amarokcore/amarok.kcfg /amarokcore/amarokconfig.kcfgc
cd ../..
./configure LDFLAGS=-pthread $*
MYFILES=`find . -name \\*.ui -print`
for n in $MYFILES; do
THISDIR=`dirname $n`
THISFILE=`basename $n`
CPPFILE=`echo $THISFILE | sed s,ui,cpp,`
HEADERFILE=`echo $THISFILE | sed s,ui,h,`
cd $THISDIR
echo \">>> Processing $THISFILE...\"
uic -o $HEADERFILE $THISFILE
uic -o $CPPFILE -impl $HEADERFILE $THISFILE
cd $MYDIR
done
echo \">>> Ready to build amarok!\"
else
echo \">>> Error: You must place this file in the amarok source directory!\"
echo \">> You are in: $MYDIR\"
exit 1
fi[/code:1]

(As of amarok 1.2.2, the KWizard/QWizard correction is unnecessary)
neptho
Karma
0
.. oops... I forgot, I had already modified it. Silly me.

make that:

[code:1] cd $MYDIR
done
sed s,\"QWizard\",\"KWizard\", < amarok/src/firstrunwizard.cpp > amarok/src/firstr
unwizard.cpp1
mv amarok/src/firstrunwizard.cpp amarok/src/firstrunwizard.cpp.bak
mv amarok/src/firstrunwizard.cpp1 amarok/src/firstrunwizard.cpp
echo \">>> Ready to build amarok!\"[/code:1]



:S
Tim Middleton
Registered Member
Posts
2
Karma
0
Ah, i\'d been wondering why the FreeBSD port has not been updated for so long... I assume due to this problem. It\'s a shame that this patch couldn\'t have been added to an upgraded port before the 5.4 ports freeze now in effect. Ah well, at least i get Amarok 1.2 to compile... and anyone else persistant enough in searching to find this thread...

Speaking of trouble; i actually bothered to enable javascript so i could join this forum (can\'t submit the sign up form without javascript... grrr) just to thank you guys for this info (not something i usually bother to do!). So thanks!

The above script is handy; it has two other errors though. Somehow the . got missed at the beginning of the two paths to the kfgc files. I\'m going to paste in the complete fixed script (with the previous fix included also)... it\'s not that long, so I don\'t think anyone will mind... and it makes it easier for others who may find the information to now have to patch it all together themselves.

Damn; can\'t get the preview function to work... must need popups or something else I haven\'t enabled. Well i\'m going to guess at the bbcode... someone can slap me later if i screw up...

[code:1]
#!/bin/sh
MYDIR=`pwd`
if [ -d amarok/src ]; then
cd amarok/src
echo \">>> Compiling configurations...\"
kconfig_compiler ./engine/gst/config/gstconfig.kcfg ./engine/gst/config/gstconfig.kcfgc
kconfig_compiler ./amarokcore/amarok.kcfg ./amarokcore/amarokconfig.kcfgc
cd ../..
./configure LDFLAGS=-pthread $*
MYFILES=`find . -name \\*.ui -print`
for n in $MYFILES; do
THISDIR=`dirname $n`
THISFILE=`basename $n`
CPPFILE=`echo $THISFILE | sed s,ui,cpp,`
HEADERFILE=`echo $THISFILE | sed s,ui,h,`
cd $THISDIR
echo \">>> Processing $THISFILE...\"
uic -o $HEADERFILE $THISFILE
uic -o $CPPFILE -impl $HEADERFILE $THISFILE
cd $MYDIR
done
sed s,\"QWizard\",\"KWizard\", < amarok/src/firstrunwizard.cpp > amarok/src/firstrunwizard.cpp1
mv amarok/src/firstrunwizard.cpp amarok/src/firstrunwizard.cpp.bak
mv amarok/src/firstrunwizard.cpp1 amarok/src/firstrunwizard.cpp
echo \">>> Ready to build amarok!\"
else
echo \">>> Error: You must place this file in the amarok source directory!\"
echo \">> You are in: $MYDIR\"
exit 1
fi
[/code:1]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft