You are not logged in.

#1 2013-11-25 23:23:27

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 79

[Solved] Trying to compile EmiClock

Hi,
I like to try to compile a program and since I've never done this before, I'm now stuck. I tried to make a pkgbuild script for aur which looks like this now and doesn't work yet:

pkgname=emiclock
pkgver=2.0.2_8.1
pkgrel=1
pkgdesc="Emi Clock"
arch=('i686' 'x86_64')
license=('distributable')
depends=('libice libsm libx11 libxaw libxext libxmu libxpm libxt glibc')
makedepends=('rpmextract')

source=(http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/src/$pkgname-${pkgver//_/-}.src.rpm)

# http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/x86_64/emiclock-2.0.2-8.1.x86_64.rpm
# http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/src/emiclock-2.0.2-8.1.src.rpm
# http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/i686/emiclock-2.0.2-8.1.i686.rpm
# http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/src/emiclock-2.0.2-8.1.src.rpm

md5sums=('36fce833c1767e1340736d59b53a429f')

build() {

# rpmextract.sh $pkgname-${pkgver//_/-}.src.rpm 2> /dev/null
# rpmextract.sh ${srcdir}$pkgname-${pkgver//_/-}.src.rpm
# tar -zxvf /src/emiclock-2.0.2.tar.gz

}


build() {
cd "${srcdir}/emiclock-2.0.2/emiclock-2.0.2"
./configure --prefix=/usr
xmkmf
make
make install
}

I tried to compile the program with:

xmkmf
make
make install

Then I get the following error code when trying to start:

Invalid MIT-MAGIC-COOKIE-1 keyError: Can't open display: :0.0

When I open /usr/bin/emiclock it with my commander, it will start the clock itself, but its unusable.

Thanks.

Last edited by alocacoc (2013-11-28 21:48:12)

Offline

#2 2013-11-26 03:26:24

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,977

Re: [Solved] Trying to compile EmiClock

That PKGBUILD is a mess, two build functions and no package function? make install ... to where?

Give me a few minutes with it.

Edit: try this one

pkgname=emiclock
_pkgver=2.0.2
_fedorapkgrel=8.1
pkgver=${_pkgver}_${_fedorapkgrel}
pkgrel=1
pkgdesc="A Cute Dressup Clock"
arch=('i686' 'x86_64')
url=("http://www.pegasoft.ca/emiclock.html")
license=('custom')
depends=('libxaw')
makedepends=('imake')
source=("http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/src/$pkgname-$_pkgver-$_fedorapkgrel.src.rpm")
md5sums=('36fce833c1767e1340736d59b53a429f')

build() {
  cd "$srcdir"
  bsdtar xf $pkgname-$_pkgver.tar.gz

  cd $pkgname-$_pkgver
  xmkmf
  make
}

package() {
  cd "$srcdir/$pkgname-$_pkgver"

  make DESTDIR="$pkgdir" install

  install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
  install -Dm644 COPYRIGHT.en "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT.en"
}

It works for me and seems to display correctly. If it doesn't for you, I'll need more info than "unusable".

Last edited by Scimmia (2013-11-26 04:03:38)

Offline

#3 2013-11-26 22:17:24

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 79

Re: [Solved] Trying to compile EmiClock

Thank you for cleaning up and fixing the pkgbuild. It installs well with your pkgbuild.

The behavior seems to be broken in the following points:
- I cannot move the clock directly with the mouse.
- The drop down menus cannot be chosen.
- There is no system tray icon + no task bar icon.

In /etc/X11/app-defaults/EmiClock it seems you can edit the menu entries itself.

Thank you again for fixing up the pkgbuild.

Offline

#4 2013-11-27 04:40:38

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,977

Re: [Solved] Trying to compile EmiClock

Alright, I tried it a bit and it does act kind of weird.
- How should you be able to move it? I can move it around with my WM's decorations, but clicking brings up the menu, not anything to move it around
- The drop down menus can be chosen for me, but not in a normal way. If I point to one and move off the side of the menu box, it opens.
- No .desktop file and no icon file mean no icon in a task bar. As for the systray, I don't use one, so I have no idea. I've been told the whole systray protocol is a mess, and this program would seem to predate that anyway.

We are dealing with software that hasn't been touched in 14 years, it doesn't surprise me that things don't work quite right.

Offline

#5 2013-11-27 20:33:00

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 79

Re: [Solved] Trying to compile EmiClock

You're right, its a program which is kind of old. As far as I know the clock from windows, you should be able to drag the clock with one mouse button and choose the menu with the other mouse button. You can also apply hover and it will get transparent when the mouse comes near. For this you need a tray icon to enter the settings again. All this works in wine actually, but I don't like to use wine.

I cannot enter any menu, like settings, I tried like you described.

I can set the position with the pager window in kde like you said.

I guess I'll now try to find a different source and try if it works better. I can now use the pkgbuild you edited for me with a different source.

Thanks again.

Offline

#6 2013-11-28 21:47:50

alocacoc
Member
From: Germany
Registered: 2013-06-27
Posts: 79

Re: [Solved] Trying to compile EmiClock

Version 1.0.4 behaves the same, I guess this is how the linux version is.

To enter the indiviual settings, you have to click the left mouse button, hold it pressed, move down to your entry, move mouse to the total left of the entry and then release the mouse button.

Compared to the windows version in wine, the linux version seems to have less dresses, the clock itself cannot be moved directly, only through the pager. The system tray icon can be put through KDE, but it won't let you access settings, just show and hide. There seems to be no hover feature in the linux version.

Overall the clock is quite complex to use with this behavior, it should just be there and hover when you approach with the mouse, like this the clock is always in the way and quite annoying.

It also depends which window manager you use, the menus actually work correctly in xfce and fluxbox, but not in kde.

Last edited by alocacoc (2013-11-30 00:44:07)

Offline

Board footer

Powered by FluxBB