Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling VisualSC #2

Open
nirshem opened this issue Jun 5, 2012 · 5 comments
Open

Error while compiling VisualSC #2

nirshem opened this issue Jun 5, 2012 · 5 comments

Comments

@nirshem
Copy link

nirshem commented Jun 5, 2012

Hi David,
i just download last version of visualsc and QTCreator on windows 7 , i found the following errors while compiling:
c:\users\nirs\desktop\daviddrell-visualsc-7c111f2\scdatamodel\scstate.h:190: error: C2668: 'SCState::SCState' : ambiguous call to overloaded function
c:\users\nirs\desktop\daviddrell-visualsc-7c111f2\scdatamodel\scstate.h(57): could be 'SCState::SCState(bool)'
c:\users\nirs\desktop\daviddrell-visualsc-7c111f2\scdatamodel\scstate.h(55): or 'SCState::SCState(QObject *)'
while trying to match the argument list '(void)'
This diagnostic occurred in the compiler generated function 'void SCState::__dflt_ctor_closure(void)'

Many thanks

Nir

@daviddrell
Copy link
Owner

Nir, Sorry about that. I just pushed up some work I did in April. Hopefully you wont get the compiler error. The last work I did was under windows/mingw.
By the way, the xml file test_with_paths_6.scxml is the file the most represents the current state of the program. Let me know if you have any questions about the project state.
thanks
David

@nirshem
Copy link
Author

nirshem commented Jun 5, 2012

Hi David,

Thanks for your fast answer.

First let me thank you for your great project - its will give me a great boost to my hobby.

so my questions are:

  1. does the current code in the repository consist of a fix to mentioned error in compilation ?
  2. I really wonder with a small example (such hello world) of scxml state machine diagram which
    consist of integrated c++ function call (for examle in state a:on exist - i.e printf("bla bla" ) ) including a parameter
    which i can path to a slot which connect from the generated QT state machine. hope you got my point here :)
    My higher goal here is to work on your tool from a diagram level only than produce scxml file than convert it to QT state machine code ( .h file) than compile and run it - do you thing its possible from current stage of your editor ?

Many thanks,

Nir

@daviddrell
Copy link
Owner

Hi Nir,
Regarding the compilation issue: I did a clean build before I pushed this
morning and there were no compiler issues on my end. So hopefully that
will be the case for you.

Regarding question 2, I am not sure I understand. But if you are talking
about an state machine implementation, that work has not started yet.
Today, the project is simply an editor of scxml. If you want to work on a
state machine engine that instantiates itself from the scxml, that would
be great.
Someone already posted such a project in qtlabs some years ago. Perhaps
you can dig that up.

On the current tool, the main next task is finishing the graphics that
allow one to draw the state transition lines.

Let me know what you want to work on and I can give you some more specific
information.

thanks
David

Hi David,

Thanks for your fast answer.

First let me thank you for your great project - its will give me a great
boost to my hobby.

so my questions are:

  1. does the current code in the repository consist of a fix to mentioned
    error in compilation ?
  2. I really wonder with a small example (such hello world) of scxml state
    machine diagram which
    consist of integrated c++ function call (for examle in state a:on exist -
    i.e printf("bla bla" ) ) including a parameter
    which i can path to a slot which connect from the generated QT state
    machine. hope you got my point here :)
    My higher goal here is to work on your tool from a diagram level only than
    produce scxml file than convert it to QT state machine code ( .h file)
    than compile and run it - do you thing its possible from current stage of
    your editor ?

Many thanks,

Nir


Reply to this email directly or view it on GitHub:
#2 (comment)

@nirshem
Copy link
Author

nirshem commented Jun 5, 2012

Hi David,

Thanks for detailed answers.

Regarding number #2 - the issue is that i want to create a state machine using your tool and than convert it to scxml. from scxml there is the ability of qt to covert it using external tool to h file (that describe the scxml in qt scxml) - and than move toward compilation.

The problem i got is as follow:

first i used a year ago a tool from appache : http://commons.apache.org/scxml/ to create my state machine

but the problem was that when i tried to integrate in side my state machine (in appache editor) a c++ code it doesnt

compiled after i converted it to qt scxml.

In general my question is: how to integrate c++ code in scxml ?:)

This capability is availiable in other model tools like Rhapsody (uml and so) so the power of it is well understood - most of the time the programmer can leave in the state machine model and less in the code.

What do you think ?

thanks

Nir

By this

@daviddrell
Copy link
Owner

Hi Nir,

I am not sure this project is what you are looking for.

the intended model of this project is this:

graphic tool ---> scxml ----> code-engine
graphic tool <--- scxml <--- code-engine

In words: use the graphic tool to draw the state machine.
the graphic tool stores this in a xml but this xml includes both
state information as well as graphic information.

then push this xml file to the target platform. the target platform must
have code that reads the xml file and instantiates a machine that
implements what has been described in the xml.

For debugging, the target engine can generate an output xml that expresses
the actual path followed by the state machine during a particular
execution.
The state chart graphic tool can read this output and graphically represent
what paths were followed.

So far, my project is very early in development. At this time, it can
allow you to draw states and save them as xml, and also open xml and draw
them.
The drawing of state transitions is not complete. Currently there is no
code in the tool to allow you to define the code interfaces for handling
inputs and outputs from the machine. The intent is for people to be able
to create state machine engines for various target languages/operating
systems. None have been done so far. The first most obvious engine would
be the Qt engine I mentioned before.

Hopefully this clears it up for you.

David

Hi David,

Thanks for detailed answers.

Regarding number #2 - the issue is that i want to create a state machine
using your tool and than convert it to scxml. from scxml there is the
ability of qt to covert it using external tool to h file (that describe
the scxml in qt scxml) - and than move toward compilation.

The problem i got is as follow:

first i used a year ago a tool from appache :
http://commons.apache.org/scxml/ to create my state machine

but the problem was that when i tried to integrate in side my state
machine (in appache editor) a c++ code it doesnt

compiled after i converted it to qt scxml.

In general my question is: how to integrate c++ code in scxml ?:)

This capability is availiable in other model tools like Rhapsody (uml and
so) so the power of it is well understood - most of the time the
programmer can leave in the state machine model and less in the code.

What do you think ?

thanks

Nir

By this


Reply to this email directly or view it on GitHub:
#2 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants