You are not logged in.
Hello!
I want to compile the wmchargemon-0.3.tar.gz but I getting errors:
$ make
gcc -O2 -ldockapp -lm wmchargemon.c -o wmchargemon
wmchargemon.c:20:21: fatal error: dockapp.h: No such file or directory
#include <dockapp.h>
^
compilation terminated.
<builtin>: recipe for target 'wmchargemon' failed
make: *** [wmchargemon] Error 1
I got an answer on the other forum that I need to install libdockapp-dev. But I cannot compile even this in arch
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu failed
Is it a way to make them work in arch?
Last edited by Andy_Crowd (2014-03-16 22:20:53)
Help to make Arora bug free!!
日不落 | Year 2081 | 笑傲江湖 | One more a really good book in my collection the Drystoll.
Offline
Perhaps you'll succeed by installing libdockapp from the AUR: https://aur.archlinux.org/packages/libdockapp/
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I have done it alredy, not working
Help to make Arora bug free!!
日不落 | Year 2081 | 笑傲江湖 | One more a really good book in my collection the Drystoll.
Offline
gcc wmchargemon.c -o wmchargemon -O2 -lm `pkg-config --cflags --libs dockapp`
Still the same?
Offline
Yes, still the same
$ gcc wmchargemon.c -o wmchargemon -O2 -lm `pkg-config --cflags --libs dockapp`
Package dockapp was not found in the pkg-config search path.
Perhaps you should add the directory containing `dockapp.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dockapp' found
/tmp/ccxELIdF.o: In function `set_label':
wmchargemon.c:(.text+0x610): undefined reference to `DAGetDisplay'
wmchargemon.c:(.text+0x646): undefined reference to `XCopyArea'
wmchargemon.c:(.text+0x6d9): undefined reference to `DAGetDisplay'
wmchargemon.c:(.text+0x71a): undefined reference to `XCopyArea'
wmchargemon.c:(.text+0x721): undefined reference to `DADisplay'
wmchargemon.c:(.text+0x726): undefined reference to `XFlush'
wmchargemon.c:(.text+0x74f): undefined reference to `DAGetDisplay'
wmchargemon.c:(.text+0x788): undefined reference to `XCopyArea'
wmchargemon.c:(.text+0x7a3): undefined reference to `DAGetDisplay'
wmchargemon.c:(.text+0x7d9): undefined reference to `XCopyArea'
wmchargemon.c:(.text+0x7e0): undefined reference to `DADisplay'
wmchargemon.c:(.text+0x7f3): undefined reference to `XFlush'
/tmp/ccxELIdF.o: In function `main':
wmchargemon.c:(.text.startup+0x68): undefined reference to `DAParseArguments'
wmchargemon.c:(.text.startup+0x77): undefined reference to `DASetExpectedVersion'
wmchargemon.c:(.text.startup+0x96): undefined reference to `DAInitialize'
wmchargemon.c:(.text.startup+0xa8): undefined reference to `DASetCallbacks'
wmchargemon.c:(.text.startup+0xaf): undefined reference to `DADisplay'
wmchargemon.c:(.text.startup+0xeb): undefined reference to `DAMakePixmapFromData'
wmchargemon.c:(.text.startup+0x10a): undefined reference to `DAMakePixmapFromData'
wmchargemon.c:(.text.startup+0x129): undefined reference to `DAMakePixmapFromData'
wmchargemon.c:(.text.startup+0x148): undefined reference to `DAMakePixmapFromData'
wmchargemon.c:(.text.startup+0x167): undefined reference to `DAMakePixmapFromData'
/tmp/ccxELIdF.o:wmchargemon.c:(.text.startup+0x186): more undefined references to `DAMakePixmapFromData' follow
/tmp/ccxELIdF.o: In function `main':
wmchargemon.c:(.text.startup+0x2c0): undefined reference to `DAShow'
wmchargemon.c:(.text.startup+0x333): undefined reference to `DADisplay'
wmchargemon.c:(.text.startup+0x33d): undefined reference to `XNextEvent'
wmchargemon.c:(.text.startup+0x347): undefined reference to `DAProcessEvent'
wmchargemon.c:(.text.startup+0x34e): undefined reference to `DADisplay'
wmchargemon.c:(.text.startup+0x353): undefined reference to `XPending'
wmchargemon.c:(.text.startup+0x382): undefined reference to `DASetPixmap'
wmchargemon.c:(.text.startup+0x39a): undefined reference to `DASetPixmap'
wmchargemon.c:(.text.startup+0x3c9): undefined reference to `DASetPixmap'
wmchargemon.c:(.text.startup+0x3f6): undefined reference to `DASetPixmap'
collect2: error: ld returned 1 exit status
What means with "PKG_CONFIG_PATH environment variable" and how to use it?
I have those installed:
$ sudo find /usr/ | grep -i dockapp
/usr/lib/libdockapp.so.2.0.0
/usr/lib/libdockapp.so
/usr/lib/libdockapp.so.2
/usr/include/dockapp.h
$
This does not help either:
export PKG_CONFIG_PATH=/usr/lib:/usr/include:$(pwd)
Looks like mission impossible ....
I think that it needs to be patched before compiling in Arch... but who can and willing to do that?
Last edited by Andy_Crowd (2014-02-21 17:58:59)
Help to make Arora bug free!!
日不落 | Year 2081 | 笑傲江湖 | One more a really good book in my collection the Drystoll.
Offline
pkgname=wmchargemon
pkgver=0.3
pkgrel=1
pkgdesc=""
arch=("i686" "x86_64")
url=""
license=()
depends=()
makedepends=("libdockapp")
source=("ftp://209.172.32.214/stable/rpms/misc-tarballs/wmchargemon-0.3.tar.gz")
md5sums=("0f262f9e263b4f4b94064e078a03fc36")
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's/-O2 -ldockapp -lm/-O2 -ldockapp -lm -lX11/g' Makefile
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
mkdir "$pkgdir/usr"
mkdir "$pkgdir/usr/bin"
make PREFIX="$pkgdir/usr" install
}
Can you try this PKGBUILD?
$ makpkg -si
Last edited by ○ ● ○ (2014-02-21 21:32:13)
Offline
I wouldn't try ^^ that pkgbuild.
No value for url=
and ftp from a numbered ip address.
Could be a lot more transparent imo.
You're just jealous because the voices only talk to me.
Offline
I wouldn't try ^^ that pkgbuild.
No value for url=
and ftp from a numbered ip address.
Could be a lot more transparent imo.
That was just a test PKGBUILD I wrote to see whether the build process can be fixed. That IP address is a mirror I found online and I did actually try it before letting anyone else have it.
Regardless, it is up to you to decide whether you want or do not want to take the risk.
Offline