How I do enable vtg configure switch?

6 views
Skip to first unread message

h.yoneda

unread,
Dec 23, 2008, 2:49:13 AM12/23/08
to vtg-dev
Hi. I try to do using vtg on gedit.

1. svn checkout.
2. ./autogen.sh ~

xphoi@xphoi-laptop:~/Desktop/vtg$ ./autogen.sh --prefix=/home/
xphoi/.gnome2/gedit/plugins --datadir=/home/xphoi/.gnome2/gedit/
plugins

ok.
But it's not enable vtg...

---{ vtg 0.2.0 }---

prefix: /home/xphoi/.gnome2/gedit/plugins
sysconfdir: ${prefix}/etc
localstatedir: ${prefix}/var
C Compiler: gcc
CFLAGS: -g -O2
Enable gen-project: yes
Enable vsc library: yes
Enable vtg: no
Enable vsc-shell: no

Now type `make' to compile vtg
xphoi@xphoi-laptop:~/Desktop/vtg$

How I do enable vtg configure switch?

Andrea Del Signore

unread,
Dec 23, 2008, 3:32:54 AM12/23/08
to vtg...@googlegroups.com
Hi,

I think that some vtg dependencies are missing from your system and I
guess that gtksourcecompletion => 0.5.2 is the most probable one.

By default the configure script enable all the vtg components only if
the required dependencies are satisfied so you don't need to enable it
by hand.

Here you can find the list of libraries required to build Vtg:

http://code.google.com/p/vtg/wiki/Compile

The readline library is just required to build vsc-shell that isn't used
by the vtg plugin so if all you want is just the plugin you can skip
that.

Regards,
Andrea


h.yoneda

unread,
Dec 24, 2008, 2:09:07 AM12/24/08
to vtg-dev
Hi.

I try to resolve dependencies yesterday.
but my result, vtg switch is not on...

fellowing my step.
download and build install
1. http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.3.tar.gz
2. http://projects.gnome.org/gtksourceview/download.html 2.4.1.tar.gz
3. http://sourceforge.net/project/showfiles.php?group_id=212508 0.5.2
4. https://launchpad.net/ubuntu/hardy/+source/gnome-build/0.2.4-1
0.2.4.orig.tar.gz

xphoi@xphoi-laptop:~/Desktop/vtg$ ls /usr/lib/ |grep gnome-build
gnome-build-1.0

xphoi@xphoi-laptop:~/Desktop/vtg$ gedit --version
GNOME gedit 2.22.3

xphoi@xphoi-laptop:~/Desktop/vtg$ valac --version
Vala 0.5.3

xphoi@xphoi-laptop:~/Desktop/vtg$ ls /usr/lib/ |grep gtksourceview
libgtksourceview-1.0.a
libgtksourceview-1.0.so
libgtksourceview-1.0.so.0
libgtksourceview-1.0.so.0.0.0
libgtksourceview-2.0.a
libgtksourceview-2.0.la
libgtksourceview-2.0.so
libgtksourceview-2.0.so.0
libgtksourceview-2.0.so.0.0.0

xphoi@xphoi-laptop:~/Desktop/vtg$ ls /usr/lib/ |grep
gtksourcecompletion
libgtksourcecompletion-1.0.a
libgtksourcecompletion-1.0.la
libgtksourcecompletion-1.0.so
libgtksourcecompletion-1.0.so.1
libgtksourcecompletion-1.0.so.1.0.0

I lack any dependencies ?
Thanks for any advice.

Andrea Del Signore

unread,
Dec 24, 2008, 6:54:54 AM12/24/08
to vtg...@googlegroups.com
Hi,

that's quite strange. Can you send me the output of the pkg-config
command --modversion?

For example these are all the required dependencies to build vtg-plugin:

andrea@spavento:~$ pkg-config --modversion glib-2.0 gobject-2.0 gthread-2.0 gtk+-2.0 gedit-2.20 gtksourcecompletion-1.0 gnome-build-1.0 vala-1.0 gconf-2.0
2.18.3
2.18.3
2.18.3
2.14.5
2.22.3
0.5.2
2.24.1
0.5.3
2.24.0


The version numbers should be equal or great of this list (you can find in the configure.ac file):

GLIB_REQUIRED=2.12.0
GTHREAD_REQUIRED=2.16.0
GTK_REQUIRED=2.10.0
GEDIT_REQUIRED=2.22.0
GTKSOURCECOMPLETION_REQUIRED=0.5.2
VALA_REQUIRED=0.3.6
GNOME_BUILD_REQUIRED=2.23.90
GCONF_REQUIRED=2.22.0

Regards,
Andrea

h.yoneda

unread,
Dec 25, 2008, 3:21:29 AM12/25/08
to vtg-dev
Hi.

Following result
xphoi@xphoi-laptop:~$ pkg-config --modversion glib-2.0 gobject-2.0
gthread-2.0 gtk+-2.0 gedit-2.20 gtksourcecompletion-1.0 gnome-
build-1.0 vala-1.0 gconf-2.0
2.18.3
2.18.3
2.18.3
2.12.9 gtk+-2.0
2.22.3 gedit
0.5.0 gtksourcecompletion
0.2.4 gnome-build
0.5.3
2.22.0

I think that gtksourcecompletion < 0.5.2 and
GNOME_BUILD_REQUIRED < 2.23.90 are problem...

So I'll reinstall ubuntu and try to build&install those later.
thanks so much.

h.yoneda

unread,
Dec 25, 2008, 11:20:13 PM12/25/08
to vtg-dev
Hi.

I try do it again. but vtg configure switch is not on.

$ pkg-config --modversion glib-2.0 gobject-2.0 gthread-2.0 gtk+-2.0
gedit-2.20 gtksourcecompletion-1.0 gnome-build-1.0 vala-1.0 gconf-2.0
2.18.3
2.18.3
2.18.3
2.12.9
2.22.3
0.5.2
0.2.4 gnome-build
0.5.3
2.22.0

umm... GNOME_BUILD_REQUIRED < 2.23.90
My gnome-build is old? Or other reason?

Andrea Del Signore

unread,
Dec 26, 2008, 5:44:12 AM12/26/08
to vtg...@googlegroups.com
Hi Hayato,

I'm sorry but yes gnome-build version is the source of your problems.

What is your distribution?

If you want you can try to change the required version in my
configure.ac script and then rebuild.

Just change the line 32 from:

GNOME_BUILD_REQUIRED=2.23.90

to

GNOME_BUILD_REQUIRED=0.2.4

and then rerun ./autogen.sh

But to do so you have to compile vtg from the svn archive since
autogen.sh isn't included the the distributed tarball.

So you can get the source with the svn command:

svn checkout http://vtg.googlecode.com/svn/trunk/ vtg-read-only

Moreover I *can't* guarantee that vtg can work with gnome-build 0.2.4
since I only tested with 2.23.90

Have a nice day,
Andrea

Reply all
Reply to author
Forward
0 new messages