libantlr3c

Make a PKGBUILD? Submit it here for user review and possible placement into the repository.

libantlr3c

Postby billyburly » Thu May 05, 2011 1:56 pm

finally got libantlr3c working in arm. i needed it so i could build forked-daapd. figured it out using the ubuntu arm build log here

here is my edited PKGBUILD
$this->bbcode_second_pass_code('', '# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
# Contributor: Alexis Robert <alexis.robert@gmail.com>

pkgname=libantlr3c
pkgver=3.2
pkgrel=1
pkgdesc="C runtime for the ANTLR parsing library"
url="http://www.antlr.org/"
arch=("i686" "x86_64" "arm")
license=("BSD")
depends=('bash')
makedepends=()
source=(http://www.antlr.org/download/C/${pkgname}-${pkgver}.tar.gz)
md5sums=('674646e1d1bf5c6015435480cead725a')
options=(!libtool)

build() {
cd "${srcdir}/${pkgname}-${pkgver}"

if [ "$CARCH" = "x86_64" ]; then
_cfgopt=--enable-64bit
fi
if [ "$CARCH" = "arm" ]; then
_cfgopt="--build arm-unknown-linux-gnueabi --disable-abiflags --disable-antlrdebug"
fi
./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt} || return 1
make || return 1
make install DESTDIR="${pkgdir}" || return 1
}')
billyburly
 
Posts: 11
Joined: Wed Mar 23, 2011 3:19 am

Re: libantlr3c

Postby pepedog » Thu May 05, 2011 8:25 pm

That built nice, but the forked daap had some trouble
$this->bbcode_second_pass_code('', '[root@PBLinux forked-daapd-git]# pacman -S libevent
warning: libevent-2.0.10-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): libevent-2.0.10-1

Total Download Size: 0.22 MB
Total Installed Size: 1.56 MB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
libevent-2.0.10-1-arm 221.0K 141.4K/s 00:00:02 [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) upgrading libevent [######################] 100%
[root@PBLinux forked-daapd-git]# makepkg -Acs --asroot
==> Determining latest git revision...
-> Version found: 20110505
==> Making package: forked-daapd-git 20110505-1 (Thu May 5 21:22:12 BST 2011)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: libevent<2.0
==> ERROR: 'pacman' failed to install missing dependencies.')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: libantlr3c

Postby kmihelich » Fri May 06, 2011 12:13 am

If you figure out something that works, throw the pkgbuild into a github issue and I'll get it integrated.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: libantlr3c

Postby clockworx » Sun Apr 01, 2012 2:09 pm

I'm running into the same issue and wondered if any progress has been made with this. I found some recent references that forked could compile current libevent (rather than <2.0), so I removed that dependency in the build to see how it went.

The forked-daapd in yaourt is out of date by ~2 yrs, so I tried forked-daapd-git, but the configure script doesn't like clang and I'm unfortunately not competent w/ compiler setup to know why:

$this->bbcode_second_pass_code('', '
configure:3215: checking whether we are cross compiling
configure:3223: clang -o conftest -march=armv5te -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -
D_FORTIFY_SOURCE=2 conftest.c >&5
clang: warning: argument unused during compilation: '--param ssp-buffer-size=4'
error: unknown target CPU 'arm1026ejs'
configure:3227: $? = 1
configure:3234: ./conftest
./configure: line 3236: ./conftest: No such file or directory
configure:3238: $? = 127
configure:3245: error: in `/var/abs/local/yaourtbuild/forked-daapd-git/src/forked-daapd-build':
configure:3247: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
')


libdmapsharing looks like another possibility for the same purpose. There is a package for the library, but you need a server that implements the media library, with libdmapsharing doing the actual sharing. There's a reference server here:

http://www.flyn.org/projects/dmapd/index.html

which I was able to download and compile, but it dumps a few warnings/errors followed by a segfault. There are also apparently media players that work with libdmapsharing, but I don't have a GUI installed (yet) and most of them are GUI based from what I've seen.
clockworx
 
Posts: 4
Joined: Sun Apr 01, 2012 1:48 pm


Return to User-Submitted Packages

Who is online

Users browsing this forum: No registered users and 14 guests