This is an option, yes: shipping the generated C files would remove the
dependency to the Antlr executable.
We might be able to place a git hook to do that, I'll discuss with the
other guys here to see if they are up to it.

On the other hand, you can't do the dependency trick with make easily,
since when you check out through git you basically have a pristine setup.
We would have to do something like md5 the .g files and only trigger Antlr
when the md5 has changed. I'm not aware of a simple way to do that.

Cheers

*Guillaume BIENKOWSKI*

*http://www.belledonne-communications.com/
<http://www.belledonne-communications.com/>*

*sip:[email protected] <sip%[email protected]>*

On Tue, Sep 16, 2014 at 2:54 PM, Gelonida G <[email protected]> wrote:

>  Perhaps this might be a constructive suggestion.
>
> Many people like to compile linphone, quite some of them (probably more
> than 90%)
> have absolutely no interest in recompiling the SIP grammar.
>
>
> Wouldn't it be possible to change the source repositroy and the make files
> such, that:
> - the files generated by antlr are part of the repository.
> - the dependencies were setup such, that the antlr-generated files would
> be recompiled ONLY
>  if the source files of the grammar changed.
>
>
> This would allow the majority of the users to recompile linphone without
> having to install java and antlr.
> and allow the ones trying to change the sip grammar to still recompile it
> if they have installed java/antlr
>
> Whether this is something automatic, whether there is a separate
> repository for the gnerated grammar files, whether
> this is a command line switch during the ./configure phase or whether done
> differently wouldn't matter, but the idea of being able to compile
> linphone even if antlr / java is not installed sounds to be a good idea.
>
> When I first tried to compile linphone (under windows) I needed quite some
> time till my first successful build.
> (Also tricky to keep all dependencies always up to date)
>
> I still didn't succeed to build linphone on Linux. There was always one
> package that wasn't the right version.
>
>
>
> On 09/16/2014 12:24 PM, BIENKOWSKI Guillaume wrote:
>
> Hello Sylvain,
>
>  This is not a joke at all. The SIP protocol is (like all network
> protocols) based on a "formal grammar", which is described in an IETF RFC
> here: https://www.ietf.org/rfc/rfc3261.txt
> I would suggest you read this RFC from start to end and possibly some
> related materials: http://en.wikipedia.org/wiki/Formal_grammar
>
>  Writing a protocol parser is not as simple as it seems, and ANTLR is a
> tool that eased the work tremendously (on top of making it reliable and
> testable).
> Also, Java is required for COMPILATION, and not for RUNTIME (you'll see
> that installing belle-sip from your favorite package manager in linux
> doesn't pull the entire Java runtime).
>
>  There are plenty of other alternatives to ANTLR, some of them not even
> in interpreted languages:
> http://en.wikipedia.org/wiki/Comparison_of_parser_generators
> Finally, let me remind you that bellesip and linphone are open source
> projects, and if you want to keep your computer Java-free, feel free to
> propose a patch removing the Java dependency.
>
>  Cheers,
>
>  *Guillaume BIENKOWSKI*
>
> *http://www.belledonne-communications.com/
> <http://www.belledonne-communications.com/> *
>
> *sip:[email protected] <sip%[email protected]> *
>
> On Tue, Sep 16, 2014 at 11:36 AM, Sylvain BERTRAND <
> [email protected]> wrote:
>
>>
>> Is that a joke? You need to install java and java software to
>> compile a linphone stack?? Please remove all non-C components
>> from your SDK (at least for the C/GTK+ client SDK).
>>
>> SIP grammar?? What is happening to this protocol?? It's supposed
>> to be minimal and simple.
>>
>
>
> _______________________________________________
> Linphone-users mailing 
> [email protected]https://lists.nongnu.org/mailman/listinfo/linphone-users
>
>
>
> _______________________________________________
> Linphone-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/linphone-users
>
>
_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to