You are not logged in.

#1 2009-03-03 15:16:17

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

anjuta problem

Well i've been looking for an IDE for a long time and i finally decided to try anjuta.I've previously been working mainly on scite and i miss one of its features.You could see the + and - signs in this screenshot http://www.scintilla.org/SciTEImage.html .They are quite useful as far as long programmes are concerned so i'd like to ask if there is similar feature in anjuta and how to turn it on if possible?Thanks in advance!

Offline

#2 2009-03-03 16:38:49

jamesbannon
Member
From: Paisley, Scotland
Registered: 2008-10-24
Posts: 50

Re: anjuta problem

Code folding is only supported with the Scintilla editor widget, rather than gtksourceview. I don't know what's happened with the Arch binary version as the Scintilla widget used to be there by default. Maybe needs a rebuild with different configure options? If someone could advise, I'd be grateful.

Also, it might be possible to try the sourceview completion from the AUR. This needs libgtksourceview2. Again, a rebuild of the app would be required to take advantage of the code folding add-on.

Offline

#3 2009-03-04 12:00:39

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: anjuta problem

could someone help ?

Offline

#4 2009-03-04 23:29:19

jamesbannon
Member
From: Paisley, Scotland
Registered: 2008-10-24
Posts: 50

Re: anjuta problem

OK, I have tried a few experiments & got code-folding to work with the Scintilla widget. Here's how:

1) Use the AUR version for anjuta beta.
2) Make sure you get the dependencies right. I checked all the dependencies & build all the AUR stuff prior to installing in case the versions conflicted. As you already have Anjuta on, you need to remove it + libglade and glade. This is because the beta version uses glade-beta & not the one from the standard repositories.

I was unable to get the completion for the gtksourceview widget to work, even though I installed the correct stuff from AUR.

I have no idea why the Scintilla editor widget is missing from the standard build. Perhaps a dev could answer that one? It should be available by default.

Offline

#5 2009-03-21 03:33:39

jamesbannon
Member
From: Paisley, Scotland
Registered: 2008-10-24
Posts: 50

Re: anjuta problem

Message to Insane Boy in response to your question on AUR: Yes, code folding works. Use the Scintilla editing widget as opposed to the Gtksourceview widget when editing files. It compiles by default.

Offline

#6 2009-03-21 16:03:22

gborzi
Member
From: Sicilia
Registered: 2009-03-18
Posts: 102

Re: anjuta problem

I have solved the same problem, i.e. missing Scintilla editor, by repackaging anjuta version 2.24.2. I took the anjuta directory from ABS and added "--enable-plugin-scintilla" in PKGBUILD to configure options. Also I solved the problem of the missing valgrind plugin, if someone is interested I can give the fix.


Giuseppe Borzi' - Registered Linux user #34028

Offline

#7 2009-03-22 19:27:12

jamesbannon
Member
From: Paisley, Scotland
Registered: 2008-10-24
Posts: 50

Re: anjuta problem

That would be good.

Offline

#8 2009-03-22 23:07:05

gborzi
Member
From: Sicilia
Registered: 2009-03-18
Posts: 102

Re: anjuta problem

Hello Jamesbannon,
the problem with valgrind is that in order to build the plugin, development files for binutils need to be available in the system. Actually they are available, but the configure script fails to detect them. configure detects the presence of a library by writing a bit of code that contains a call to a library function and compiling and linking this code against the library. For binutils the check is (from configure.in)

AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
   valgrind="no",
  -liberty)

i.e. it checks for the bfd_get_error function in libbfd. If the check is successful it sets PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic", otherwise it set valgrind to "no". The last argument of AC_CHECK_LIB is a library that needs to be linked too for the check to work, and here is the problem. When linking against libbfd you need libiberty and libz, just run ldd /usr/lib/libbfd-2.19.1.20090205.so to see this. So the above snippet from configure.in needs to be changed to

AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -lz -Wl,-Bdynamic"],
   valgrind="no",
  [-liberty -lz])

and configure needs to be regenerated with autoconf. Here are my modified PKGBUILD

# $Id: PKGBUILD 22230 2008-12-23 13:26:43Z andyrtr $
# Mantainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Harley Laue <losinggeneration@yahoo.com>

pkgname=anjuta
pkgver=2.24.2
pkgrel=2
pkgdesc="Anjuta Integrated Development Environment (IDE)"
arch=('i686' 'x86_64')
license=('GPL')
depends=('autogen>=5.9.5' 'devhelp>=0.21' 'gnome-build>=2.24.1' 'vte>=0.17.4' 'graphviz>=2.20.3' 'subversion>=1.5.4' 'gtksourceview2>=2.4.1' 'glade>=3.5.4' 'libglade>=2.6.3' 'libxslt>=1.1.24' 'desktop-file-utils')
makedepends=('gnome-doc-utils>=0.14.1' 'autoconf>=2.61')
url="http://anjuta.sourceforge.net/"
install=anjuta.install
source=(ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.24/${pkgname}-${pkgver}.tar.bz2 configure.in.diff)
options=('!libtool' '!emptydirs')
md5sums=('d1db75bc1c8d4ab4c9d180767e24e39a' '148a4429bbac5d43193315bb02032f43')

build() {
  cd "${srcdir}/anjuta-${pkgver}"
  patch -Np0 -i $startdir/src/configure.in.diff || return 1
  autoconf
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --enable-plugin-subversion --enable-plugin-glade \
    --enable-plugin-class-inheritance --enable-plugin-valgrind \
    --enable-plugin-sourceview --enable-plugin-scintilla --disable-gtk-doc \
    --enable-debug --disable-scrollkeeper || return 1
  make || return 1
  make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1
   
  install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
  gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas || return 1
  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}

and the patch

--- configure.in.orig   2008-11-24 15:10:28.000000000 +0100
+++ configure.in        2009-03-21 16:19:52.485799982 +0100
@@ -462,9 +462,9 @@
        valgrind="yes"
 fi
 
-AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -Wl,-Bdynamic"],
+AC_CHECK_LIB(bfd, bfd_get_error, [PLUGIN_VALGRIND_LIBS="-Wl,-Bstatic -lbfd -liberty -lz -Wl,-Bdynamic"],
    valgrind="no",
-  -liberty)
+  [-liberty -lz])
 
 AC_SUBST(PLUGIN_VALGRIND_LIBS)
 AM_CONDITIONAL(HAVE_PLUGIN_VALGRIND, [test x$valgrind = xyes])

anjuta.install is the same as found in ABS.

Regards.

Last edited by gborzi (2009-03-23 00:41:44)


Giuseppe Borzi' - Registered Linux user #34028

Offline

#9 2009-03-23 00:59:09

jamesbannon
Member
From: Paisley, Scotland
Registered: 2008-10-24
Posts: 50

Re: anjuta problem

Thanks. I'll try that.

Offline

#10 2009-03-25 05:06:37

jamesbannon
Member
From: Paisley, Scotland
Registered: 2008-10-24
Posts: 50

Re: anjuta problem

Thanks gborzi. Worked a treat. All I had to do was to generate an md5 sum for the configure,in patch and put it into PKGBUILD. Once I did that, everything went smoothly.

Offline

Board footer

Powered by FluxBB