Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » State Machine code generation from Qompass
State Machine code generation from Qompass [message #1498456] Thu, 04 December 2014 12:18
Anantha Krishnan is currently offline Anantha KrishnanFriend
Messages: 26
Registered: April 2014
Junior Member
Hi,

I am trying to get C++ codegen out of a Qompass Papyrus model. On Ubuntu 10.14 under VmwarePlayer on Win8.1 Laptop.

I created a State Machine(as Owned Behaviour) under the Hello component of the Qompass Hello World example, and gave it just a single state. In transition from Initial1 to State1, I created an Effect as an Opaque Behaviour with a small cout...
I triggered a transition from State1 to FinalState1 with Any Receive Event - all.

Now I applied the Cotainer Rule StateMachineWCallEvents to the component Hello.

Created a new Deployment Plan for System, then Qompass designer>Generate Deployment models and code from Plan - the new C++ project was created.

But, when I try to Build the code, I get the following errors in compiling BString.cpp, other generated files till this compile without errors:

04:01:31 **** Build of configuration Debug for project HelloWorld_monoNode_SystemDepPlan2 ****
make all
Building file: ../root/statemachine/CallEventConfigurator.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/statemachine/CallEventConfigurator.d" -MT"root/statemachine/CallEventConfigurator.d" -o "root/statemachine/CallEventConfigurator.o" "../root/statemachine/CallEventConfigurator.cpp"
Finished building: ../root/statemachine/CallEventConfigurator.cpp

Building file: ../root/core/deployment/operatingSystems/Linux.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/deployment/operatingSystems/Linux.d" -MT"root/core/deployment/operatingSystems/Linux.d" -o "root/core/deployment/operatingSystems/Linux.o" "../root/core/deployment/operatingSystems/Linux.cpp"
Finished building: ../root/core/deployment/operatingSystems/Linux.cpp

Building file: ../root/core/deployment/architectures/StandardPC.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/deployment/architectures/StandardPC.d" -MT"root/core/deployment/architectures/StandardPC.d" -o "root/core/deployment/architectures/StandardPC.o" "../root/core/deployment/architectures/StandardPC.cpp"
Finished building: ../root/core/deployment/architectures/StandardPC.cpp

Building file: ../root/core/bindingHelpers/BindOperation.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/bindingHelpers/BindOperation.d" -MT"root/core/bindingHelpers/BindOperation.d" -o "root/core/bindingHelpers/BindOperation.o" "../root/core/bindingHelpers/BindOperation.cpp"
Finished building: ../root/core/bindingHelpers/BindOperation.cpp

Building file: ../root/core/bindingHelpers/LoopOperations.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/bindingHelpers/LoopOperations.d" -MT"root/core/bindingHelpers/LoopOperations.d" -o "root/core/bindingHelpers/LoopOperations.o" "../root/core/bindingHelpers/LoopOperations.cpp"
Finished building: ../root/core/bindingHelpers/LoopOperations.cpp

Building file: ../root/core/StdPorts/Cstart.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/StdPorts/Cstart.d" -MT"root/core/StdPorts/Cstart.d" -o "root/core/StdPorts/Cstart.o" "../root/core/StdPorts/Cstart.cpp"
Finished building: ../root/core/StdPorts/Cstart.cpp

Building file: ../root/core/ContainerServices/CallEvent_.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/ContainerServices/CallEvent_.d" -MT"root/core/ContainerServices/CallEvent_.d" -o "root/core/ContainerServices/CallEvent_.o" "../root/core/ContainerServices/CallEvent_.cpp"
Finished building: ../root/core/ContainerServices/CallEvent_.cpp

Building file: ../root/core/ContainerServices/EventPool.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/ContainerServices/EventPool.d" -MT"root/core/ContainerServices/EventPool.d" -o "root/core/ContainerServices/EventPool.o" "../root/core/ContainerServices/EventPool.cpp"
Finished building: ../root/core/ContainerServices/EventPool.cpp

Building file: ../root/core/ContainerServices/LifeCycle.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/ContainerServices/LifeCycle.d" -MT"root/core/ContainerServices/LifeCycle.d" -o "root/core/ContainerServices/LifeCycle.o" "../root/core/ContainerServices/LifeCycle.cpp"
Finished building: ../root/core/ContainerServices/LifeCycle.cpp

Building file: ../root/core/ContainerServices/Thread.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/core/ContainerServices/Thread.d" -MT"root/core/ContainerServices/Thread.d" -o "root/core/ContainerServices/Thread.o" "../root/core/ContainerServices/Thread.cpp"
Finished building: ../root/core/ContainerServices/Thread.cpp

Building file: ../root/OS_AL/Util/BString.cpp
Invoking: GCC C++ Compiler
g++ -DOS_Linux -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2" -I"/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"root/OS_AL/Util/BString.d" -MT"root/OS_AL/Util/BString.d" -o "root/OS_AL/Util/BString.o" "../root/OS_AL/Util/BString.cpp"
In file included from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/ProcessingResources/ProDesc.h:16:0,
from ../root/OS_AL/Util/BString.cpp:15:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/BString200.h:19:9: error: 'BString200200' does not name a type
typedef BString200200 BString200;
^
In file included from ../root/OS_AL/Util/BString.cpp:15:0:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/ProcessingResources/ProDesc.h:263:24: error: 'BString200' in namespace 'OS_AL::Util' does not name a type
static ::OS_AL::Util::BString200 m_zoneName;
^
In file included from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/ProcessingResources/Thread.h:19:0,
from ../root/OS_AL/Util/BString.cpp:16:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/BString50.h:19:9: error: 'BString5050' does not name a type
typedef BString5050 BString50;
^
In file included from ../root/OS_AL/Util/BString.cpp:16:0:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/ProcessingResources/Thread.h:306:17: error: 'BString50' in namespace 'OS_AL::Util' does not name a type
::OS_AL::Util::BString50 m_name;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/ProcessingResources/Thread.h: In member function 'void OS_AL::ProcessingResources::Thread::setName(const OS_AL::Util::BString&)':
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/ProcessingResources/Thread.h:364:2: error: 'm_name' was not declared in this scope
m_name = name;
^
In file included from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:16:0,
from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h:17,
from ../root/OS_AL/Util/BString.cpp:18:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/BString2000.h: At global scope:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/BString2000.h:19:9: error: 'BString20002000' does not name a type
typedef BString20002000 BString2000;
^
In file included from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:18:0,
from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h:17,
from ../root/OS_AL/Util/BString.cpp:18:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/BString500.h:19:9: error: 'BString500500' does not name a type
typedef BString500500 BString500;
^
In file included from /home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h:17:0,
from ../root/OS_AL/Util/BString.cpp:18:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:75:9: error: 'BString2000' does not name a type
inline BString2000 getMiddle() const;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:81:9: error: 'BString2000' does not name a type
inline BString2000& getMiddleRef();
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:132:9: error: 'BString50' does not name a type
root/OS_AL/Util/subdir.mk:36: recipe for target 'root/OS_AL/Util/BString.o' failed
static BString50& getHead();
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:193:2: error: 'BString50' does not name a type
BString50 m_mark;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:197:9: error: 'BString50' does not name a type
static BString50 m_head;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:201:2: error: 'BString500' does not name a type
BString500 begin;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:205:2: error: 'BString2000' does not name a type
BString2000 middle;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:217:8: error: 'BString2000' does not name a type
inline BString2000 Print::getMiddle() const {
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:225:8: error: 'BString2000' does not name a type
inline BString2000& Print::getMiddleRef() {
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h: In member function 'OS_AL::Util::Print& OS_AL::Util::Print::operator=(const OS_AL::Util::BString&)':
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:235:2: error: 'middle' was not declared in this scope
middle = str;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h: In member function 'OS_AL::Util::Print& OS_AL::Util::Print::operator=(const char*)':
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:245:2: error: 'middle' was not declared in this scope
middle = ccp;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h: In member function 'OS_AL::Util::Print& OS_AL::Util::Print::operator<<(const OS_AL::Util::BString&)':
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:255:2: error: 'middle' was not declared in this scope
middle << str;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h: In member function 'OS_AL::Util::Print& OS_AL::Util::Print::operator<<(const char*)':
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Util/Print.h:265:2: error: 'middle' was not declared in this scope
middle << ccp;
^
In file included from ../root/OS_AL/Util/BString.cpp:18:0:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h: At global scope:
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h:119:24: error: 'BString50' in namespace 'OS_AL::Util' does not name a type
static ::OS_AL::Util::BString50 m_traceMark;
^
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h: In static member function 'static void OS_AL::Tracing::Trace::setTraceMark(const OS_AL::Util::BString&)':
/home/pjakrishnan/pprsykndubntuws1/HelloWorld_monoNode_SystemDepPlan2/root/OS_AL/Tracing/Trace.h:147:2: error: 'm_traceMark' was not declared in this scope
m_traceMark = traceMark;
^
make: *** [root/OS_AL/Util/BString.o] Error 1

04:01:36 Build Finished (took 4s.703ms)



Could the team provide an augmented Hello World example that includes a simple state machine for HelloWorld component on the above lines pl.

Thanks.

Anantha Krishnan.
Previous Topic:Preferences functions
Next Topic:"private OCL"
Goto Forum:
  


Current Time: Sat Apr 27 00:56:39 GMT 2024

Powered by FUDForum. Page generated in 0.03838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top