sejerpz / vtg

Automatically exported from code.google.com/p/vtg
0 stars 0 forks source link

Cannot compile vtg #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
So i'm trying to compile vtg from svn with vala 0.7.1 and sourcecompletion
0.7.0, and I get this :

vbftest.c:23:36: erreur: am/vbfamprojectmanager.h : Aucun fichier ou
dossier de ce type
vbftest.c:24:32: erreur: vbfiprojectmanager.h : Aucun fichier ou dossier de
ce type
vbftest.c:27:24: erreur: vbfproject.h : Aucun fichier ou dossier de ce type
vbftest.c:29:23: erreur: vbfmodule.h : Aucun fichier ou dossier de ce type
vbftest.c:30:24: erreur: vbfpackage.h : Aucun fichier ou dossier de ce type
vbftest.c:31:27: erreur: vbfconfignode.h : Aucun fichier ou dossier de ce type
vbftest.c:32:22: erreur: vbfgroup.h : Aucun fichier ou dossier de ce type
vbftest.c:33:23: erreur: vbftarget.h : Aucun fichier ou dossier de ce type
vbftest.c:34:23: erreur: vbfsource.h : Aucun fichier ou dossier de ce type
vbftest.c:35:21: erreur: vbffile.h : Aucun fichier ou dossier de ce type
vbftest.c:36:25: erreur: vbfvariable.h : Aucun fichier ou dossier de ce type

(Aucun fichier ou dossier de ce type == File not found)

Did I miss something or the makefile is broken ?

Original issue reported on code.google.com by olivier....@gmail.com on 23 Apr 2009 at 12:37

GoogleCodeExporter commented 9 years ago
Yes the makefile was still in valac 0.6.x variant because I forgot to push my 
local
git repository when I updated the documentation page.

Now trunk should compile, but you have to start with a clean source tree:
./autogen.sh --prefix=your vtg install directory
rm */*.stamp
make clean
make

2009-04-19  Andrea Del Signore  <sejerpz@tin.it>

        * vbf/Makefile.am:
        * vsc/Makefile.am:
        * vtg/Makefile.am:

        updated to support the new vala 0.7.x include file generation schema

        * vbf/vbf-1.0.gir:
        * vbf/vbf-1.0.vapi:

        regenerated

svn rev. 297

Original comment by seje...@gmail.com on 23 Apr 2009 at 11:55

GoogleCodeExporter commented 9 years ago
Thanks for the quick fix !

Now I have another problem during the compilation but I'm not sure if it is 
your fault:

gcc -DHAVE_CONFIG_H -I. -I..  -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/vala-1.0  
-DPACKAGE_DATADIR=\""/usr/share/vtg"\" -include ../config.h -I ../vsc/    
-march=i686
-mtune=generic -O2 -pipe -MT vsccompletionshell.o -MD -MP -MF $depbase.Tpo -c -o
vsccompletionshell.o vsccompletionshell.c &&\
    mv -f $depbase.Tpo $depbase.Po
In file included from /usr/include/readline/readline.h:37,
                 from vsccompletionshell.c:27:
/usr/include/readline/rltypedefs.h:65: erreur: expected ‘)’ before ‘*’ 
token
In file included from vsccompletionshell.c:27:
/usr/include/readline/readline.h:416: erreur: expected ‘)’ before ‘*’ 
token
/usr/include/readline/readline.h:532: erreur: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/usr/include/readline/readline.h:533: erreur: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/usr/include/readline/readline.h:555: erreur: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
/usr/include/readline/readline.h:827: erreur: expected specifier-qualifier-list
before ‘FILE’

Apparently, a lot of people get this error. I've found a good explaination here 
:
http://savannah.gnu.org/bugs/?24315

Can you do something about it oe is it a bug with the readline bindings ?

Original comment by olivier....@gmail.com on 23 Apr 2009 at 7:58

GoogleCodeExporter commented 9 years ago
Hi,

while I try to track down where the problem is you can compile vtg without 
vsc-shell.

vsc-shell isn't required at all for vtg because it is only an external utility 
that I
made to test the completion library libvsc. It's also used to integrate libvsc 
with
other ide (see the work on monodevelop by Levi Bard)

So try to compile vtg after a:

./configure --disable-vsc-shell

Original comment by seje...@gmail.com on 25 Apr 2009 at 9:33

GoogleCodeExporter commented 9 years ago
Here is the relevant part of vsccompletionshell.c (shipped with 0.4.1, so 
presumably
the vala file was not used during the build process):

#include "vsccompletionshell.h"
#include <vscsymbolcompletion.h>
#include <vscparsermanager.h>
#include <stdio.h> <--- needed to later include readline/readline.h
#include <vscsymbolcompletionfilteroptions.h>
#include <vscsymbolcompletionresult.h>

Tracking this further, no mention of stdio exists in vsc/*.vala, nor in 0.4.1's
vsc/*.[ch]. Bizarre.

Original comment by michel.s...@gmail.com on 14 Jul 2009 at 8:07

GoogleCodeExporter commented 9 years ago
from svn.
some error:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -pthread -D_REENTRANT -DORBIT2=1
-I/usr/local/include/gtksourcecompletion-2.0 -I/usr/local/include/vala-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/gedit-2.20
-I/usr/include/gtksourceview-2.0 -I/usr/include/libxml2 -I/usr/include/gconf/2
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-DPACKAGE_DATADIR=\"/home/something/.gnome2/gedit/plugins/share/vtg\" -include
../config.h -I ../vsc -I ../vbf -g -O2 -MT vtgbracketcompletion.lo -MD -MP -MF
.deps/vtgbracketcompletion.Tpo -c vtgbracketcompletion.c  -fPIC -DPIC -o
.libs/vtgbracketcompletion.o
vtgbracketcompletion.c: In function 'vtg_bracket_completion_get_type':
vtgbracketcompletion.c:604: error: 'vtg_bracket_completion_type_id' undeclared 
(first
use in this function)
vtgbracketcompletion.c:604: error: (Each undeclared identifier is reported only 
once
vtgbracketcompletion.c:604: error: for each function it appears in.)
vtgbracketcompletion.c: In function 'vtg_bracket_completion_register_type':
vtgbracketcompletion.c:610: error: 'vtg_bracket_completion_type_id' undeclared 
(first
use in this function)

Original comment by sthots on 18 Jul 2009 at 1:18

GoogleCodeExporter commented 9 years ago
at comment #5 you have another issue not related with this bug, see:

http://code.google.com/p/vtg/issues/detail?id=75&can=1

and 

http://code.google.com/p/vtg/issues/detail?id=80&can=1

You have to upgrade your valac compiler in order to compile vtg.

Original comment by seje...@gmail.com on 18 Jul 2009 at 2:41

GoogleCodeExporter commented 9 years ago
Still no luck on this? MonoDevelop's Vala add-on requires vsc-shell, so 
currently it
cannot be built.

Original comment by Michael....@gmail.com on 21 Sep 2009 at 8:42

GoogleCodeExporter commented 9 years ago
Can you try the svn trunk? There the issue pointed on comment 4 should be fixed.

Beaware that to compile vtg you need the last stable vala release: 0.7.6

Original comment by seje...@gmail.com on 21 Sep 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Tried with 0.7.7 and vtg 0.6.0 and it works. Thanks!

Original comment by Michael....@gmail.com on 3 Oct 2009 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by seje...@gmail.com on 4 Oct 2009 at 11:35

GoogleCodeExporter commented 9 years ago

Original comment by seje...@gmail.com on 7 Feb 2010 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by seje...@gmail.com on 7 Feb 2010 at 3:29