You are not logged in.
Pages: 1
AUR package is failing to build https://aur.archlinux.org/packages.php?ID=39209
Not sure what to do.
Linking C shared library libglc-export.so
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../libpng.a when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for -lpng
/usr/bin/ld: cannot find -lpng
collect2: error: ld returned 1 exit status
make[2]: *** [src/glc/libglc-export.so.0.5.8] Error 1
make[1]: *** [src/glc/CMakeFiles/glc-export.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build lib32-glc.Last edited by sakh (2012-06-04 12:34:23)
Offline
contact the maintainer or build from source yourself.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I'm the maintainer of this package, and it still builds fine for me, but the package must be missing a dependency I forgot to put. It looks like an error related to libpng though. You know what, I bet it needs lib32-libpng! *goes to fix package*
Offline
dooknob60, fyi building in a clean chroot helps with issues like that.
Offline
TY, I have 32lib-libpng installed, not sure which branch I need though. Build still does not work:
Linking C shared library libglc-play.so
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../libasound.so when searching for -lasound
/usr/bin/ld: skipping incompatible /usr/lib/libasound.so when searching for -lasound
/usr/bin/ld: cannot find -lasound
collect2: error: ld returned 1 exit status
make[2]: *** [src/glc/libglc-play.so.0.5.8] Error 1
make[1]: *** [src/glc/CMakeFiles/glc-play.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build lib32-glc.Offline
@sakh: note that when /usr/bin/ld errors over a missing library it tells you what library it can't find - in this case it's libasound.so. This is provided by (lib32-)alsa-lib; if you are unsure of what package provides a missing file, you can use pkgfile from the pkgtools package to search.
@doorknob60: you really need to run namcap or at least ldd on all of your packages and consider what actually needs to happen with multilib - I find it ... funny at best that you somehow decided lib32-glc didn't need the lib32 versions of glc's dependencies (not to mention purposefully installing everything for normal glc in /usr/lib64 ...).
Offline
To be fair, the original glc package was not by me. I just adopted it and made changes as needed, I never even noticed the lib64 thing until just now, or I would have changed it. Yeah I probably should have ran namcap, but the only thing I thought needed fixing when I adopted it was they moved the code to github, so I just changed the urls and stuff. As for the 32 bit libs, I have no clue what I was thinking. It should be obvious that it needs the lib32- versions of the glc deps, but somehow I didn't put them. Oh well, I think it's all better in pkgrel 4 now.
Offline
nullkey's repository seems to be not very active. Maybe you should build from swick's fork. It even has a pulseaudio branch:
64 bit just works
# Maintainer: Austin < doorknob60 at gmail dot com >
# Contributor: kumyco <kumyco@kh.nu>
pkgname=glc
pkgver=0.5.8
pkgrel=4
pkgdesc="An ALSA & OpenGL capture tool for Linux"
arch=("i686" "x86_64")
url="https://github.com/nullkey/glc"
install=glc.install
source=("Copyright"
"glc.tar.gz::https://github.com/swick/glc/tarball/pulseaudio"
"elfhacks.tar.gz::https://github.com/swick/elfhacks/tarball/stable"
"packetstream.tar.gz::https://github.com/swick/packetstream/tarball/stable"
"glc-support.tar.gz::https://github.com/swick/glc-support/tarball/master")
license=("CUSTOM")
depends=("libpng" "alsa-lib" "libgl" "libxxf86vm")
makedepends=("cmake" "mesa")
conflicts=("glc-git")
if test "$CARCH" == x86_64; then
optdepends=('lib32-glc: Support for 32-bit applications such as Wine')
fi
build() {
cd $srcdir
mv swick-glc-40* glc
mv swick-elfhacks-* elfhacks
mv swick-packetstream-* packetstream
mv swick-glc-support-* support
ln -sf $srcdir/elfhacks $srcdir/glc/elfhacks
ln -sf $srcdir/packetstream $srcdir/glc/packetstream
ln -sf $srcdir/support $srcdir/glc/support
DESTDIR=$pkgdir/usr
if [ $CARCH == "x86_64" ]; then
CFLAGS="$CFLAGS -m64"
fi
MLIBDIR="lib"
export CMAKE_INCLUDE_PATH="$srcdir/glc/elfhacks/src:$srcdir/glc/packetstream/src"
export CMAKE_LIBRARY_PATH="$srcdir/glc/elfhacks/build/src:$srcdir/glc/packetstream/build/src"
mods=("elfhacks" "packetstream" "glc")
for mod in ${mods[@]}; do
msg "Building $mod..."
[ -d $mod/build ] || mkdir $mod/build
cd $mod/build
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH="${DESTDIR}" \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_C_FLAGS_RELEASE_RELEASE:STRING="${CFLAGS}" > /dev/null \
-DMLIBDIR="${MLIBDIR}" \
|| return 1
make || return 1
cd ../..
done
for mod in ${mods[@]}; do
msg "Installing $mod to pkgdir..."
cd $srcdir/$mod/build
make install || return 1
done
install -d -m755 $pkgdir/usr/share/glc/scripts
install -m755 $srcdir/glc/scripts/capture.sh $pkgdir/usr/share/glc/scripts/capture.sh
install -m755 $srcdir/glc/scripts/play.sh $pkgdir/usr/share/glc/scripts/play.sh
install -m755 $srcdir/glc/scripts/encode.sh $pkgdir/usr/share/glc/scripts/encode.sh
install -d -m755 $pkgdir/usr/share/licenses/glc
install -m644 $srcdir/Copyright $pkgdir/usr/share/licenses/glc/Copyright
}
md5sums=('d706bd101063967583d3e4f98e0bf14a'
'd37f3625844a7e99a21d19bd75deeb71'
'cdad827cc9a00746550024c57b14a4be'
'6b85fdf9573246e2ff88784d6848d8dd'
'42d8fa95c8d1ac7c11a347628e640f31')lib32 needs a bit of work:
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH="${DESTDIR}" \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_C_FLAGS_RELEASE_RELEASE:STRING="${CFLAGS}" > /dev/null \
-DMLIBDIR="${MLIBDIR}" \
|| return 1does not work. -DCMAKE_C_FLAGS_RELEASE_RELEASE is ignored and should be -DCMAKE_C_FLAGS_RELEASE, and what's with the piping to /dev/null in the middle of the parameterlist?
# Maintainer: Austin < doorknob60 at gmail dot com >
# Contributor: kumyco <kumyco@kh.nu>
pkgname=lib32-glc
pkgver=0.5.8
pkgrel=4
pkgdesc="An ALSA & OpenGL capture tool for Linux (32 bit libs for 32 bit apps)"
arch=("x86_64")
url="https://github.com/nullkey/glc"
source=("glc.tar.gz::https://github.com/swick/glc/tarball/pulseaudio"
"elfhacks.tar.gz::https://github.com/swick/elfhacks/tarball/stable"
"packetstream.tar.gz::https://github.com/swick/packetstream/tarball/stable"
"glc-support.tar.gz::https://github.com/swick/glc-support/tarball/master")
license=("CUSTOM")
depends=("glc" "lib32-libxxf86vm" "lib32-glibc" "lib32-libpng" "lib32-alsa-lib" "lib32-libgl")
makedepends=("cmake" "mesa" "gcc-multilib" "gcc-libs-multilib" "binutils-multilib" "libtool-multilib")
build() {
cd $srcdir
mv swick-glc-40* glc
mv swick-elfhacks-* elfhacks
mv swick-packetstream-* packetstream
mv swick-glc-support-* support
ln -sf $srcdir/elfhacks $srcdir/glc/elfhacks
ln -sf $srcdir/packetstream $srcdir/glc/packetstream
ln -sf $srcdir/support $srcdir/glc/support
DESTDIR=$pkgdir/usr
MLIBDIR="lib32"
CFLAGS="$CFLAGS -m32"
CXXFLAGS="$CXXFLAGS -m32"
export CMAKE_INCLUDE_PATH="$srcdir/glc/elfhacks/src:$srcdir/glc/packetstream/src"
export CMAKE_LIBRARY_PATH="$srcdir/glc/elfhacks/build/src:$srcdir/glc/packetstream/build/src"
mods=("elfhacks" "packetstream" "glc")
for mod in ${mods[@]}; do
msg "Building $mod..."
[ -d $mod/build ] || mkdir $mod/build
cd $mod/build
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH="${DESTDIR}" \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_C_FLAGS_RELEASE:STRING="${CFLAGS}" \
-DMLIBDIR="${MLIBDIR}" \
|| return 1
make || return 1
cd ../..
done
for mod in ${mods[@]}; do
msg "Installing $mod to pkgdir..."
cd $srcdir/$mod/build
make install || return 1
done
rm -rf $pkgdir/usr/include
rm -rf $pkgdir/usr/bin
}
md5sums=('d37f3625844a7e99a21d19bd75deeb71'
'cdad827cc9a00746550024c57b14a4be'
'6b85fdf9573246e2ff88784d6848d8dd'
'42d8fa95c8d1ac7c11a347628e640f31')But pulseaudio recording doesn't really work for me. When simply using "-p" or "-p -a X" with X being a device like "alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor" from "pactl list | grep alsa_output" glc-play gets stuck after few seconds of playing the resulting file and glc-play -a 1 produces white noise. "-p -a alsa_output.pci-0000_00_1b.0.analog-stereo" simply doesn't have sound but glc-play works. Maybe I'm doing it wrong...?
฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz
Offline
Cdh: Maybe that fork would be better suited towards a separate pkgbuild, in case nullkey makes more updates to his, and we want to have options for either branch. I'll leave mine the way it is, but you can upload a separate PKGBUILD for the fork if you'd like ![]()
Offline
Maybe, but there hasn't been a commit to the actual code for two years... Seems unlikely to me.
฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz
Offline
Pages: 1