>Hi all,
>I'm new to the sofia and hoped i could get some help with it.
>
>I successfully installed the sofia, and executed the sip-options and stunc
>provided by the sofia.
>( i installed the sofia on the default dir if its of any importance ).
>I've decided to move on and try to compile the "hello world" sample given at
>the wiki.
>i copied the hello.c file and Makefile ( added the tabs ), i put the files
>on a seperate folder and tried to compile it.
>
> For some reason i received the following compilation error when i try to
>compile it.
>
> ------
>[EMAIL PROTECTED] sipSample]# make all
>gcc `pkg-config sofia-sip-ua --cflags --libs` -DCALLER \
>-g -O0 -o hello-caller hello.c
>Package sofia-sip-ua was not found in the pkg-config search path.
>Perhaps you should add the directory containing `sofia-sip-ua.pc'
>to the PKG_CONFIG_PATH environment variable
>No package 'sofia-sip-ua' found
>hello.c:8:27: sofia-sip/nua.h: No such file or directory
>hello.c:10: parse error before '*' token
>hello.c:12: parse error before "event"
>hello.c: In function `main':
>hello.c:25: `su_root_t' undeclared (first use in this function)
>hello.c:25: (Each undeclared identifier is reported only once
>hello.c:25: for each function it appears in.)
>hello.c:25: `root' undeclared (first use in this function)
>hello.c:26: `nua_t' undeclared (first use in this function)
>hello.c:26: `nua' undeclared (first use in this function)
>hello.c: At top level:
>hello.c:66: parse error before "event"
>hello.c: In function `event_callback':
>hello.c:78: `event' undeclared (first use in this function)
>hello.c:78: `status' undeclared (first use in this function)
>hello.c:78: `phrase' undeclared (first use in this function)
>hello.c: At top level:
>hello.c:82: parse error before '*' token
>hello.c : In function `send_message':
>hello.c:84: `nua_handle_t' undeclared (first use in this function)
>hello.c:84: `handle' undeclared (first use in this function)
>hello.c:86: `nua' undeclared (first use in this function)
>make: *** [hello-caller] Error 1
>----
>its seems as if the sample doesnt know where to find the sofia stack libs.
>Since i installed sofia at the default location i didn't see any reason to
>change the Makefile / hello.c files.
>
>i would appreciate any help in order to try and figure out what my problem
>is ...
>Thanks,
>Yossi.

Please read the messages make gives to you. They aren't just messages but 
contain a description of the problem:

>Package sofia-sip-ua was not found in the pkg-config search path.
>Perhaps you should add the directory containing `sofia-sip-ua.pc'
>to the PKG_CONFIG_PATH environment variable

So if you've installed sofia-sip into /usr/local you need to 
run the command:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to