Re: [anjuta-list] Anjuta + Vala-plugin + Gee library
- From: Sébastien Granjoux <seb sfo free fr>
- To: fifre <fifre news free fr>
- Cc: anjuta-list gnome org
- Subject: Re: [anjuta-list] Anjuta + Vala-plugin + Gee library
- Date: Thu, 01 Nov 2012 09:02:18 +0100
Hello,
On 31/10/2012 11:33, fifre wrote:
I'm currently using Anjuta to develop a program in Vala. I use
autotools, but I do not know much how to use it (anjuta does the job for
me).
I need to use the library Gee. For this, I added the library, via the
"project" menu. This has added the following line in my configure.ac:
PKG_CHECK_MODULES (GEE gee-1.0)
I have also added --pkg gee-1.0 in my VALAFLAGS in the Makefile.am.
As I do not use object from Gee, the program compiles. When I use a
class provided by gee, the Vala compiler works well, but the C compiler
leaves me an error:
test.c: 25:17: fatal error: gee.h: No such file or directory
I succeeded in compiling the program manually (without using Configure
and make).
Did I miss something?
I don't think so but I have not written any program in Vala.
The error probably means that the C compiler doesn't get the right
directory in its include paths. These paths are given to the C compiler
on the command line with -I option.
All the magic of autotools is used to generated Makefile so you can
check in them to see if all options are present.
I remember that there is an issue in Vala is your build directory is not
the same that the source directory. I don't know if it is still true but
if it is your case you should try to select the project directory in the
Build->Configure Project->Build directory.
Regards,
Sébastien
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]