You are not logged in.

#1 2011-09-08 12:23:43

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

xournal++ from svn repository

Hi guys,

I tried to create a PKGBUILD for xournal++ (application mostly based on the current xournal programme) which is located in a svn repo at sourceforge. Therefore I orientated myself on the xournal PKGBUILD in the repo and the patched version in the AUR.

This is what I came up with:

# Contributor: Robert Orzanna <orschiro@googlemail.com>

pkgname=xournalpp-svn
_realname=xournalpp
pkgver=161
pkgrel=1
pkgdesc="The latest notetaking and sketching application build on the basis of xournal."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/xournal/"
license=('GPL')
depends=('libgnomecanvas>=2.30.1' 'ghostscript' 'shared-mime-info' 'poppler-glib>=0.14.0' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('subversion')
provides=('xournalpp')
install=xournal.install

_svntrunk="https://xournal.svn.sourceforge.net/svnroot/xournal/trunk/xournalpp"
_svnmod=xournalpp

build() {
   cd ${srcdir}

  #####
  msg "Getting sources..."
  if [ -d ${_svnmod}/.svn ]; then
    cd ${_svnmod} && svn up -r ${pkgver}
  else
    svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
    cd ${_svnmod}
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  #####
  cd "${srcdir}/${_realname}"
  ./configure --prefix=/usr
  make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install desktop-install
}

However the makepkg process terminates with this compilation error:

libtool: Version mismatch error.  This is libtool 2.2.6b Debian-2.2.6b-2ubuntu3, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b Debian-2.2.6b-2ubuntu3
libtool: and run autoconf again.
make[3]: *** [libcollab_la-Collaboration.lo] Error 63
make[3]: Leaving directory `/media/personal/robert/Pakete/xournal++/AUR/src/xournalpp/src/collab'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/personal/robert/Pakete/xournal++/AUR/src/xournalpp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/personal/robert/Pakete/xournal++/AUR/src/xournalpp'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I have libtool-2.4-4-x86_64 installed. Can this newer version cause the building problem?

I'm glad to receive some feedback on this.

Regards

Offline

#2 2011-09-08 13:07:37

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: xournal++ from svn repository

orschiro wrote:
libtool: Version mismatch error.  This is libtool 2.2.6b Debian-2.2.6b-2ubuntu3, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b Debian-2.2.6b-2ubuntu3
libtool: and run autoconf again.

You need to run aclocal and autoconf to regenerate the scripts to match your system prior to calling configure.

Offline

#3 2011-09-11 01:08:46

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: xournal++ from svn repository

Hi jakob,

Thanks for your advise. I added autoconf -i before   ./configure --prefix=/usr to the script but now I stumbe across the next error related to poppler.

In file included from ../control/../model/../pdf/popplerdirect/poppler/XojPopplerDocument.h:15:0,
                 from ../control/../model/Document.h:23,
                 from ../control/Control.h:22,
                 from Collaboration.cpp:2:
../control/../model/../pdf/popplerdirect/poppler/XojPopplerPage.h:22:36: fatal error: poppler/CairoOutputDev.h: No such file or directory
compilation terminated.
make[3]: *** [libcollab_la-Collaboration.lo] Error 1
make[3]: Leaving directory `/media/personal/robert/Pakete/xournal++/AUR/src/xournalpp/src/collab'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/personal/robert/Pakete/xournal++/AUR/src/xournalpp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/personal/robert/Pakete/xournal++/AUR/src/xournalpp'
make: *** [all] Error 2

One of the dependencies is poppler-glib. Could it be that this verison is too old? However there isn't any more recent version of it, nor in the official repos, nor in the AUR.

Regards

Offline

#4 2011-09-11 02:09:49

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: xournal++ from svn repository

Here is a bug that was filed about that missing header. Apparently, the program shouldn't be using that, so it's a problem with the software.

Offline

#5 2011-09-11 04:46:56

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: xournal++ from svn repository

Thanks jomasti. I completely overlooked the bug report. I contacted the developers of xournal++ for a statement on this.

Regards

Last edited by orschiro (2011-09-11 04:47:24)

Offline

#6 2011-09-14 13:06:00

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: xournal++ from svn repository

The source code was changed. The latest revision can be compiled without any errors.

Try out xournalpp yourself using the package in the AUR.

Regards

Last edited by orschiro (2011-09-14 13:06:23)

Offline

#7 2011-09-19 04:16:31

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: xournal++ from svn repository

During the building process I get the warnings below for which I didn't find any information on the web and how to deal with them.

Could somebody please briefly explain me if this is crucial or not?

This is the PKGBUILD

# Maintainer: Robert Orzanna <orschiro@googlemail.com>

pkgname=xournalpp-svn
_realname=xournalpp
pkgver=166
pkgrel=1
pkgdesc="The latest notetaking and sketching application build on the basis of xournal."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/xournal/"
license=('GPL')
depends=('libgnomecanvas>=2.30.1' 'ghostscript' 'shared-mime-info' 'poppler-glib>=0.14.0' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('subversion')
provides=('xournalpp')
conflicts=('xournal')
install=xournal.install

_svntrunk="https://xournal.svn.sourceforge.net/svnroot/xournal/trunk/xournalpp"
_svnmod=xournalpp

build() {
    cd ${srcdir}

    ##########################
    msg "Getting sources..."
    if [ -d ${_svnmod}/.svn ]; then
      cd ${_svnmod} && svn up -r ${pkgver}
    else
      svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
      cd ${_svnmod}
    fi

    msg "SVN checkout done or server timeout"
    msg "Starting make..."
  
    #########################
    cd "${srcdir}/${_realname}"
    autoreconf -i
    ./configure --prefix=/usr
    make
}

package() {
    cd "${srcdir}/${_realname}"
    make DESTDIR="${pkgdir}" install desktop-install
}
==> Starting make...
m4/python.m4:4: warning: underquoted definition of AM_CHECK_PYMOD
m4/python.m4:4:   run info '(automake)Extending aclocal'
m4/python.m4:4:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
m4/python.m4:4: warning: underquoted definition of AM_CHECK_PYMOD
m4/python.m4:4:   run info '(automake)Extending aclocal'
m4/python.m4:4:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal

Last edited by orschiro (2011-09-19 04:16:56)

Offline

Board footer

Powered by FluxBB