You are not logged in.
I need help with a PkGBUILD for consolecandy, i get errors and don't know what's wrong with this libmpeg3 errors, this program needs LibMPEG3 and FFTW
Homepage: http://www.vanheusden.com/consolecandy/
Screenshots:
http://www.vanheusden.com/consolecandy/ … ndy-lr.png
http://www.vanheusden.com/consolecandy/ … litude.png
http://www.vanheusden.com/consolecandy/ … alyzer.png
PKGBUILD so far:
# Contributor: Your Name youremail at domain dot com (remember to disguise your email to protect against spambots)
pkgname=consolecandy
pkgver=0.4
pkgrel=1
pkgdesc="mp3 player for the console that has eye-candy like a spectrum analyzer and two others"
arch=('i686' 'x86_64')
url="http://www.vanheusden.com/consolecandy/"
license=('GPL')
depends=(fftw libmpeg3)
makedepends=()
provides=(consolecandy)
source=(http://www.vanheusden.com/consolecandy/$pkgname-$pkgver.tgz)
md5sums=('d961a22daead21f999709dcb57150565')
build() {
cd $srcdir/$pkgname-$pkgver
# ./configure --prefix=/usr
make || return 1
make DESTDIR=$pkgdir install || return 1
}Here's the output of "make install"/"makepkg":
[aleyscha@aleyscha 431 consolecandy 11:53]$ makepkg
==> Making package: consolecandy 0.4-1 i686 (Fri Mar 20 11:54:34 ART 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found consolecandy-0.4.tgz in build dir
==> Validating source files with md5sums...
consolecandy-0.4.tgz ... Passed
==> Extracting Sources...
-> bsdtar -x -f consolecandy-0.4.tgz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
cc -march=i686 -mtune=generic -O2 -pipe -O2 -Wall -DVERSION=\"0.4\" -g -pedantic -c -o cc.o cc.c
cc.c:14:22: error: libmpeg3.h: No such file or directory
cc.c: In function 'main':
cc.c:313: error: 'mpeg3_t' undeclared (first use in this function)
cc.c:313: error: (Each undeclared identifier is reported only once
cc.c:313: error: for each function it appears in.)
cc.c:313: error: 'mf' undeclared (first use in this function)
cc.c:314: warning: ISO C90 forbids mixed declarations and code
cc.c:395: warning: implicit declaration of function 'mpeg3_open'
cc.c:400: warning: implicit declaration of function 'mpeg3_has_audio'
cc.c:403: warning: implicit declaration of function 'mpeg3_total_astreams'
cc.c:406: warning: implicit declaration of function 'mpeg3_audio_channels'
cc.c:409: warning: implicit declaration of function 'mpeg3_audio_samples'
cc.c:420: warning: implicit declaration of function 'mpeg3_sample_rate'
cc.c:468: warning: implicit declaration of function 'mpeg3_read_audio'
cc.c:471: warning: implicit declaration of function 'mpeg3_reread_audio'
cc.c:579: warning: implicit declaration of function 'mpeg3_close'
make: *** [cc.o] Error 1
==> ERROR: Build Failed.
Aborting...Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery
Offline
I think it does not find the libmpeg header files. Is there a reason why you commented out the configure line? If that's because there is no configure script, you may take a look at the makefile to find a way to tell him wher to find the header files.
Offline
Same error here
Offline
mmm I can't found the location of the headers in the makefile, plus the install part point to /usr/local/bin, i need to change it to /usr/bin right? but in the PKGBUILD?
VERSION=0.4
DEBUG=-g -pedantic #-pg #-fprofile-arcs
LDFLAGS=-lncurses -lm -lfftw3 -lpthread -lmpeg3 $(DEBUG)
CFLAGS+=-O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG)
# when using libmpeg 1.7, uncomment the following line:
# CFLAGS+=-DM7
OBJS=cc.o error.o snd_dev.o fft.o
all: consolecandy
consolecandy: $(OBJS)
$(CC) -Wall $(OBJS) $(LDFLAGS) -o consolecandy
install: consolecandy
cp consolecandy $(DESTDIR)/usr/local/bin
uninstall: clean
rm -f $(DESTDIR)/usr/local/bin/consolecandy
clean:
rm -f $(OBJS) consolecandy core gmon.out *.da
package: clean
# source package
rm -rf consolecandy-$(VERSION)*
mkdir consolecandy-$(VERSION)
cp *.c *.h Makefile Changes thanks.txt license.txt readme.txt consolecandy-$(VERSION)
tar czf consolecandy-$(VERSION).tgz consolecandy-$(VERSION)
rm -rf consolecandy-$(VERSION)Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery
Offline
Is the header file on your system? Where is it located?
Offline
Is the header file on your system? Where is it located?
[aleyscha@aleyscha 20 ~ 19:00]$ locate libmpeg3.h
/usr/include/mpeg3/libmpeg3.hthere, maybe i need to cp that file into the source dir somehow in the PKGBUILD? ![]()
Last edited by leo2501 (2009-03-20 21:06:09)
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery
Offline
try replacing:
make || return 1
by:
make CFLAGS="${CFLAGS} -I/usr/include/mpeg3" || return 1
And remove:
provides=(consolecandy)
it's not needed.
Offline
Well, that changed things a little
the new output is this
[aleyscha@aleyscha 5 consolecandy 09:47]$ makepkg
==> Making package: consolecandy 0.4-1 i686 (Sat Mar 21 09:48:20 ART 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found consolecandy-0.4.tgz in build dir
==> Validating source files with md5sums...
consolecandy-0.4.tgz ... Passed
==> Extracting Sources...
-> bsdtar -x -f consolecandy-0.4.tgz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
cc -march=i686 -mtune=generic -O2 -pipe -I/usr/include/mpeg3 -c -o cc.o cc.c
cc.c: In function 'version':
cc.c:274: error: expected ')' before 'VERSION'
cc.c: In function 'main':
cc.c:395: error: too few arguments to function 'mpeg3_open'
make: *** [cc.o] Error 1
==> ERROR: Build Failed.
Aborting...
Press any key to continue...Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery
Offline
after some updates, the output error changed a little...
[aleyscha@aleyscha 14 consolecandy 20:32]$ makepkg
==> Making package: consolecandy 0.4-1 i686 (Fri May 15 20:32:30 ART 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found consolecandy-0.4.tgz in build dir
==> Validating source files with md5sums...
consolecandy-0.4.tgz ... Passed
==> Extracting Sources...
-> bsdtar -x -f consolecandy-0.4.tgz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
cc -march=i686 -mtune=generic -O2 -pipe -I/usr/include/mpeg3 -c -o cc.o cc.c
cc.c:14:22: error: libmpeg3.h: No such file or directory
cc.c: In function 'version':
cc.c:274: error: expected ')' before 'VERSION'
cc.c: In function 'main':
cc.c:313: error: 'mpeg3_t' undeclared (first use in this function)
cc.c:313: error: (Each undeclared identifier is reported only once
cc.c:313: error: for each function it appears in.)
cc.c:313: error: 'mf' undeclared (first use in this function)
make: *** [cc.o] Error 1
==> ERROR: Build Failed.
Aborting...Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery
Offline