You are not logged in.

#1 2011-02-26 10:49:51

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

trying to install comical....

I'm trying to install the comical comic reader, but I keep getting an error from make....

This is the error:

ComicalApp.cpp: In member function ‘virtual bool ComicalApp::OnInit()’:
ComicalApp.cpp:63:17: error: invalid use of incomplete type ‘struct wxIcon’
/usr/include/wx-2.8/wx/gdicmn.h:35:28: error: forward declaration of ‘struct wxIcon’
make[1]: *** [ComicalApp.o] Error 1
make[1]: Leaving directory `/home/meskarune/abs/comical/src/comical-0.8/src'
make: *** [src/ComicalApp.o] Error 2

And the makepkg I'm working with is this one:

# Maintainer: Dolores Portalatin <meskarune@gmail.com>

pkgname=comical
pkgver=0.8
pkgrel=1
pkgdesc="Comic book reader that opens cbr and cbz archives"
arch=('i686' 'x86_64')
url="http://comical.sourceforge.net/"
license=('GPL')
groups=()
depends=('wxgtk')
makedepends=()
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=(F5808E28FD5A2A3D21B59CDAD10ECA3D)

build() {
  cd $srcdir/$pkgname-$pkgver
  make || return 1
  make DESTDIR=$pkgdir install || return 1
}

I have all the dependancies installed, and I'm not entirely sure how to fix the wxicon error... Any help would be greatly appreciated


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#2 2011-02-26 23:14:01

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: trying to install comical....

Offline

#3 2011-03-01 07:42:39

Meskarune
Member
From: Helsinki, Finland
Registered: 2009-03-21
Posts: 361
Website

Re: trying to install comical....

Thanks alot. This is the new PKGBUILD I have now:

# Maintainer: Dolores Portalatin <meskarune@gmail.com>

pkgname=comical
pkgver=0.8
pkgrel=1
pkgdesc="Comic book reader that opens cbr and cbz archives"
arch=('i686' 'x86_64')
url="http://comical.sourceforge.net/"
license=('GPL')
groups=()
depends=('wxgtk')
makedepends=()
source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz http://kambing.ui.ac.id/gentoo-portage/media-gfx/comical/files/comical-0.8-wxGTK-2.8.patch)
noextract=()
md5sums=(F5808E28FD5A2A3D21B59CDAD10ECA3D 4510063CD2ED0BA5683B6ADE771B0120)

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p1 -i $srcdir/comical-0.8-wxGTK-2.8.patch || return 1
  install -d $pkgdir/usr/local/bin/$pkgname/
  make || return 1
  cp -r $pkgdir/usr/local/bin/$pkgname/ /usr/local/bin/
  make DESTDIR=$pkgdir install || return 1
}

It downloads and installs just fine now. But I want this to automatically make a .desktop entry as well. (the installer doesn't add those things itself) How would I go about doing that? Thanks smile


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#4 2011-03-03 21:58:41

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,852

Re: trying to install comical....

you will have to create one.

.desktop files are installed in /usr/share/applications, use an existing one and edit it.

Note : the icon mentioned in the .desktop file needs to be in a specific location to be found, /usr/share/pixmaps is one of the locations.

once you have created the .desktop file, add it to the source and md5sums arrays in PKGBUILD .
before you upload the package to AUR, check that the .desktop file is included in the tarball.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2011-04-16 00:20:36

Dizzy1
Member
Registered: 2011-04-16
Posts: 13

Re: trying to install comical....

Thanks for the pkgbuild file.

Offline

Board footer

Powered by FluxBB