Re: [Vala] Vala Using Gnu Build Tools



Hi,

just to be really sure: have you rerun the autogen.sh script after the
configure.ac change?

What is the output of the pkg-config command?

$ pkg-config --cflags --libs --modversion libsoup-2.4

This is what I get in my system:
$ pkg-config --cflags --libs --modversion libsoup-2.4
2.30.2
-pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -pthread -lsoup-2.4
-lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0  

HTH,
        Andrea

On Mon, 2010-10-25 at 00:48 +0300, Çağlar wrote:
Oww snap :S ... You are right, but I still take an error when I
compiling main.c file

I add the line to Makefile.am

${project-uppercase-make-name}_VALAFLAGS = --pkg gtk+-2.0 --pkg
libsoup-2.4


And now The error comes from main.c file :


main.c:30: fatal error: libsoup/soup.h: There is no such a file or
folder
compilation terminated.


It's weird.



2010/10/24 Andrea Del Signore <sejerpz tin it>
        On Sun, 2010-10-24 at 20:24 +0300, Çağlar wrote:
        > Hey guys
        >
        >    I'm just a new learner vala and I'm using vtg (Vala
        Toolkit for Gedit).
        > VTG uses vala-gen-project to create a vala project and it
        uses autoconf
        > tools.
        >
        >    My problem is, when I add library referances such as
        libsoup-2.4 to my
        > project files, build tools doesn't accept it.
        >
        > Here is my *./configure | grep libsoup output *result :
        > ./configure: line 12164: libsoup-2.4: command not found
        >
        > Here is my configure.ac file library referances
        >
        > GLIB_REQUIRED=2.12.0
        > GTK_REQUIRED=2.18.0
        > SOUP_REQUIRED=2.4
        >
        > PKG_CHECK_MODULES(MNAKKODOSYA, glib-2.0 >= $GLIB_REQUIRED
        gobject-2.0 >=
        > $GLIB_REQUIRED gtk+-2.0 >= $GTK_REQUIRED, libsoup-2.4 >=
        $SOUP_REQUIRED)
        >
        
        
                                               ^^^^^^^^ that comma
        shouldn't be
        there I bet ;) !
        
        Ciao,
               Andrea
        
        
        
        



-- 
Çağlar Dursun


Tumblr : http://caglardursun.tumblr.com/
Blog     : http://caglardursun.blogspot.com/
Twitter  : http://twitter.com/caglardursun


Phone   :  +90 0505 780 72 76









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]