LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-24-2010, 12:08 PM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 396

Rep: Reputation: 49
Slackware 13 on slackbuilds


I tried to build several packages designed for slackware 13 at slackbuilds. Those was a simple apps like ardour, audacity ... for example.

ardour error:
Quote:
./ardour.SlackBuild: line 91: scons: command not found
from line 91 the slackbuild looks like this:
scons \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
DIST_TARGET="$TARGET" \
ARCH="$(echo $SLKCFLAGS)" \
FREEDESKTOP=1 \
$wiiopt \
$lv2opt\
$vstopt
scons \
--implicit-deps-unchanged \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
DIST_TARGET="$TARGET" \
ARCH="$(echo $SLKCFLAGS)" \
FREEDESKTOP=1 \
$wiiopt \
$lv2opt \
$vstopt \
DESTDIR=$PKG \
install
audacity error:
Quote:
checking for C compiler default output file name...
configure: error: in `/tmp/SBo/audacity-src-1.3.7':
configure: error: C compiler cannot create executables
See `config.log' for more details.

in config.log:
configure:2368: gcc -O2 -march=i486 -mtune=i686 conftest.c >&5
conftest.c:1: error: CPU you selected does not support x86-64 instruction set
My CPU is AMD Phenom 9550 Quad core. It supports 64 bit. My os is slackware 13_64.
What do I need to change in slackbuild to create a txz package for those apps?
thanks
 
Old 01-24-2010, 12:46 PM   #2
phunkymunky
Member
 
Registered: Aug 2003
Location: Glasgow, Scotland
Distribution: Slackware 14.0, Debian 7.0
Posts: 60

Rep: Reputation: 22
For the first error you need to install scons (www.scons.org).

No advice for the second error since I use a 32bit system but somebody here will probably be able to help.
 
Old 01-24-2010, 12:52 PM   #3
sojasau
LQ Newbie
 
Registered: Jul 2009
Location: /home
Distribution: Arch, Slackware64
Posts: 13

Rep: Reputation: 0
In every Slackbuild is a Section ARCH=${ARCH:-i486}, this you must change to x86_64.
 
Old 01-24-2010, 01:31 PM   #4
gauchao
Member
 
Registered: Dec 2009
Distribution: SLACKWARE 14.1 64bit
Posts: 168

Rep: Reputation: 30
You must specify the 64 bit architeture:

$ ARCH={x86_64} ./yourpackage.SlackBuild

(I suppose you have typed chmod +x yourpackage.SlackBuild before, to make it executable)
 
Old 01-24-2010, 01:49 PM   #5
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
The curly brackets are superfluous.

In any case, use sbopkg (http://sbopkg.org).
 
Old 01-26-2010, 11:55 AM   #6
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 396

Original Poster
Rep: Reputation: 49
Thanks sojasau, the 64 bit arch error solved
Quote:
In every Slackbuild is a Section ARCH=${ARCH:-i486}, this you must change to x86_64
The missing package of scons worked too, but I found out that it needs more packages to be installed.
All of them finally ended with the same error: (ardour, audcity)

The ardour after scons installation, required a next library > liblrdf, which ends with the following error:
Quote:
checking build system type... configure: error: /bin/sh ./config.sub -slackware-linux failed
The audacity requires libsndfile package, which ends with the same error too:
Quote:
checking build system type... configure: error: /bin/sh ./config.sub -slackware-linux failed
To zordrak >
Quote:
The curly brackets are superfluous.
What does this mean? There is a problem with this line (for example)? >
Quote:
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
How it should look like?

Last edited by hua; 01-26-2010 at 12:17 PM.
 
Old 01-26-2010, 12:11 PM   #7
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
The SlackBuild does not need to edited in any way. You simply need to follow
the directions listed here http://www.slackbuilds.org/faq/#x86_64.
 
Old 01-26-2010, 12:12 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
Get sbopkg, it makes things easy when you have a number of SlackBuilds to run. When you want to install something with several dependencies (the Slackbuild readme files tell you what's needed), then you can queue them up in sbopkg to build and install in the right order. it automatically detects the right architecture, too.

http://www.sbopkg.org/

Last edited by brianL; 01-26-2010 at 12:14 PM.
 
Old 01-26-2010, 12:21 PM   #9
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,498

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
+1 for sbopkg.
look for needed packages on slackbuilds.org: after you found all dependencies you can build easily with sbopkg creating a queuefile named /var/lib/sbopkg/queues/audacity.sqf with this content
Code:
wxPython
libsndfile
soundtouch
twolame
audacity | SOUNDTOUCH=yes TWOLAME=yes
then issue a
Code:
sbopkg -i audacity
and answer to the questions (keep queuefile options ).

if audacity gives you problems building with soundtouch and twolame support, you can use the official queuefile written by slackbuilds' audacity mantainer.

same thing for ardour: read slackbuild's page for hints on dependencies (to write a queuefile).

Last edited by ponce; 01-26-2010 at 12:22 PM.
 
Old 01-26-2010, 12:48 PM   #10
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 396

Original Poster
Rep: Reputation: 49
sbopkg is great, thanks for the hint.
I built a queue for ardour, put there these packages >
Quote:
liblo, liblrdf, scons, fftw, libsamplerate, libgnomecanvas,
jack-audio-connection-kit, aubio
But I get stucked with liblrdf, with the error:
Quote:
make[2]: Entering directory `/tmp/SBo/liblrdf-0.4.0/examples'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -fPIC -O2 -fPIC -MT showdefaults.o -MD -MP -MF ".deps/showdefaults.Tpo" -c -o showdefaults.o showdefaults.c; \
then mv -f ".deps/showdefaults.Tpo" ".deps/showdefaults.Po"; else rm -f ".deps/showdefaults.Tpo"; exit 1; fi
showdefaults.c:3:20: error: ladspa.h: No such file or directory
make[2]: *** [showdefaults.o] Error1
make[2]: Leaving directory `/tmp/SBo/liblrdf-0.4.0/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/liblrdf-0.4.0'
make: *** [all] Error 2
ladspa.h? Maybe another library is required?

Last edited by hua; 01-26-2010 at 12:49 PM.
 
Old 01-26-2010, 12:57 PM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
It could be part of this, but it's not mentioned as a dependency for ardour:

http://slackbuilds.org/repository/13...io/ladspa_sdk/
 
Old 01-26-2010, 01:27 PM   #12
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,498

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
but it's a dependency of liblrdf.
first thing you have to learn working with slackbuilds.org is that dependencies often need their own dependencies

Last edited by ponce; 01-26-2010 at 01:29 PM.
 
Old 01-26-2010, 01:49 PM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
Yeah, of course. I didn't bother looking any further back than ardour and ladspa.
 
Old 01-26-2010, 02:04 PM   #14
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 396

Original Poster
Rep: Reputation: 49
I like dependencies. It tests my will to achieve the goal. And since it is important to me it finally works with your help.
Thanks for all of you.
The finally order of packages is:
Quote:
liblo, ladspa_sdk, liblrdf, scons, fftw, libsamplerate, libgnomecanvas,
jack-audio-connection-kit, libsndfile, aubio
So the packages ladspa_sdk and libsndfile are required for ardour too.
 
Old 01-26-2010, 02:13 PM   #15
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,139
Blog Entries: 52

Rep: Reputation: Disabled
That's one of the things that make Slackware more interesting than some other distros. Finding out what depends on what and getting it yourself, rather than letting a package manager do it.
 
  


Reply


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
Webmin on Slackware -- w or w/o Slackbuilds GaHillBilly Slackware 1 10-27-2009 04:23 PM
[SOLVED] SlackBuilds.org Slackware 13.0 submissions w1k0 Slackware 14 09-12-2009 10:03 PM
Slackbuilds.org: dosbox not available for Slackware 13? Lufbery Slackware 8 09-01-2009 12:49 PM
Slackware 12, Opera, slackbuilds.org TL_CLD Slackware 6 08-15-2007 04:44 AM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 09:56 PM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
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