Pieter hypothesis is that the src folder is hard coded. ;-)

On 13.4.2016 20:10, Kevin Sapper wrote:
Now you got me curious :)

The error message with commented license.xml should be:
$ gsl src/mlm_proto.xml
2016/04/13 20:04:48: GSL/4.1a/github Copyright (c) 1996-2011 iMatix Corporation
2016/04/13 20:04:48: gsl/4 I: Processing src/mlm_proto.xml...
2016/04/13 20:04:48: (zproto_codec_c.gsl 206) Can't open output file: ../include/mlm_proto.h

Which again happens because the current working directory is applied to all relative paths.


On Mi, Apr 13, 2016 at 7:58 , Matjaž Ostroveršnik <[email protected]> wrote:
I commented out the license file, but the same.

I am getting
GSL/4.1c Copyright (c) 1996-2016 iMatix Corporation
gsl/4 I: Processing src/mlm_proto.xml...
(zproto_lib.gsl 99) Undefined expression: class.load_file (...)


On 13.4.2016 19:50, Kevin Sapper wrote:
OK, I just thought a little bit harder ;)

src/mlm_proto.xml includes a second xml files: <include filename = "license.xml" />. Where filename is a relative path from the current working directory. Thus if you execute gsl from project root directory it is not able to find the src/license.xml.

But from project root you can run make code.

On Mi, Apr 13, 2016 at 7:44 , Matjaž Ostroveršnik <[email protected]> wrote:
Hi Kevin,

Thanks for fast reply. I believe it is not problem with tabs.
The same command in src folder succeeds, while one folder above, but with proper reference to the xml file it fails. My assumption is that gsl takes "instructions" from some default place, unless it is explicitly stated. And I do not know this place.;-)

Best regards

Matjaž

On 13.4.2016 19:36, Kevin Sapper wrote:

Hi Matjaž,

without being able to take a closer look now, GSL does not like tabs at the beginning of the line.

Am 13.04.2016 6:16 nachm. schrieb "Matjaž Ostroveršnik" <[email protected] <mailto:[email protected]>>:

    Hi veterans,

    I am trying to understand how gsl woks. Yes I read the
    instructions
    (https://github.com/imatix/gsl)

    command
    gsl mlm_proto.xml

    executed from malamute/src folder
    properly generates mlm_proto.c and mlm_proto.bnf in the
    current directory

    command
    gsl src/mlm_proto.xml

    executed from one folder above produces

    GSL/4.1c Copyright (c) 1996-2016 iMatix Corporation
    gsl/4 I: Processing src/mlm_proto.xml...
    (zproto_lib.gsl 99) Undefined expression: class.load_file (...)

    obviously gsl gets some additional input from files in current
    directory.
    1. Which files are those?
    2. Can I explicitly state where to take this file from?
    3. What the following command is supposed to do? (explanation
    of parameters)
               gsl -topdir:.. -zproject:1 -q mlm_proto.xml


    Thanks in advance

    Matjaž
    _______________________________________________
    zeromq-dev mailing list
    [email protected] <mailto:[email protected]>
    http://lists.zeromq.org/mailman/listinfo/zeromq-dev



_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev



_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev



_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to