Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Rhapsody and QNX Momentics: (24 Items)
   
Rhapsody and QNX Momentics  
Hello all,

I am using Momentics version 4.6.0 together with Rhapsody version 7.5. I was able to import a small demo project I 
created in Rhapsody into Momentics, open the rhapsody model, make changes to it, re-generate the code and compile it. 
However, I was unable to run the generated binary from within Momentics on my QNX Target (a virtual machine). 
I selected "run as" on the binary of rhapsody project and wanted to create a new configuration, however, when I want to 
select the project, the rhapsody project is not listed (see attached screen shot). Only QNX projects are listed.
How do I run the binary on the target? running it directly from momentics would be nice. Of course, if there is a way to
 mount the window folder on the qnx target (e.g. samba mount on linux) and stating the binary directly on the target 
would be ok too. 
Thank you for your help

Marcel
Attachment: Image create_run_configuration.png 31.36 KB
RE: Rhapsody and QNX Momentics  
Is your project imported from Rhapsody a C/C++ project? Is the binary
generated from this project a QNX target binary?

If possible, will you be able to attach your project to this post?

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Tuesday, July 28, 2009 11:03 AM
To: general-ide
Subject: Rhapsody and QNX Momentics

Hello all,

I am using Momentics version 4.6.0 together with Rhapsody version 7.5. I
was able to import a small demo project I created in Rhapsody into
Momentics, open the rhapsody model, make changes to it, re-generate the
code and compile it. However, I was unable to run the generated binary
from within Momentics on my QNX Target (a virtual machine). 
I selected "run as" on the binary of rhapsody project and wanted to
create a new configuration, however, when I want to select the project,
the rhapsody project is not listed (see attached screen shot). Only QNX
projects are listed.
How do I run the binary on the target? running it directly from
momentics would be nice. Of course, if there is a way to mount the
window folder on the qnx target (e.g. samba mount on linux) and stating
the binary directly on the target would be ok too. 
Thank you for your help

Marcel



_______________________________________________

General
http://community.qnx.com/sf/go/post34729
Re: RE: Rhapsody and QNX Momentics  
Yes, it is a Rhapsody C++ project. I think all the necessary files are included in the zip.
And yes, it also generated a QNX binary. I was able to manually transfer it to my QNX virtual machine and run it there.
Attachment: Compressed file TestWin.zip 71 KB
RE: RE: Rhapsody and QNX Momentics  
You attached archive file does not contain project definition files
which are important in troubleshooting your problem. Can you use the IDE
"Export" command to export the complete project?

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Tuesday, July 28, 2009 11:29 AM
To: general-ide
Subject: Re: RE: Rhapsody and QNX Momentics

Yes, it is a Rhapsody C++ project. I think all the necessary files are
included in the zip.
And yes, it also generated a QNX binary. I was able to manually transfer
it to my QNX virtual machine and run it there.
Re: RE: RE: Rhapsody and QNX Momentics  
The export failed, so I just zipped up the whole project

Thanks for the help

Marcel
Attachment: Compressed file TestWinAll.zip 1.53 MB
RE: RE: RE: Rhapsody and QNX Momentics  
From looking at your project, it's not a C++ project type.

Can you start by creating a new C++ project and then import your
Rhapsody project (without the .project file) to the new C++ project?

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Tuesday, July 28, 2009 11:47 AM
To: general-ide
Subject: Re: RE: RE: Rhapsody and QNX Momentics

The export failed, so I just zipped up the whole project

Thanks for the help

Marcel



_______________________________________________

General
http://community.qnx.com/sf/go/post34740
Re: RE: RE: RE: Rhapsody and QNX Momentics  
true, it is a Rhapsody C++ project not a QNX C++ project.
In Momentics I had selected Import -> Rhapsody -> Rhapsody Project. 

I have made a new QNX C++ project, but am not sure how to import the rhapsody project into the newly created project. If
 I select import, it will try to make a new project.
RE: RE: RE: RE: Rhapsody and QNX Momentics  
When you do import, select import from "Archive File" and use your first
attached archive file which does not contain the ".project" file.

You may have to fix up the make files because the path will be different
for all the source files.

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Tuesday, July 28, 2009 12:27 PM
To: general-ide
Subject: Re: RE: RE: RE: Rhapsody and QNX Momentics

true, it is a Rhapsody C++ project not a QNX C++ project.
In Momentics I had selected Import -> Rhapsody -> Rhapsody Project. 

I have made a new QNX C++ project, but am not sure how to import the
rhapsody project into the newly created project. If I select import, it
will try to make a new project.

Re: RE: RE: RE: Rhapsody and QNX Momentics  
Awesome! It worked. Thanks a lot.

Btw: Did you notice, that if you edit a state in the state chart diagram, the "delete" key does not function. only 
backspace 
Re: RE: RE: RE: Rhapsody and QNX Momentics  
Nice to know it works now.

I don't have Rhapsody so I can't open your diagram, but from your description could that be some settings in Rhapsody to
 disable the "Delete" key?
Re: RE: RE: RE: Rhapsody and QNX Momentics  
Marcel, Hello!

I'm trying a lot to do what you did but i can't.

I have a simple helloworld project made in Rhapsody and I wish to run and debug it Through Momentics IN Neutrino.

I have a project that i'm sending it with the compile erros in Momentics.

Basically, it doesn't find the Rhapsody Framework.

Please, Help-me.

Thanks!
Attachment: Text sent.rar 1.24 MB
Re: Rhapsody and QNX Momentics  
I cannot open it because I don't have rar but probably because you need to specify paths for this framework libraries 
and headers. Was it ported for qnx?

On 22/11/10 02:43 PM, Wanderson Melo wrote:
> Marcel, Hello!
> 
> I'm trying a lot to do what you did but i can't.
> 
> I have a simple helloworld project made in Rhapsody and I wish to run and debug it Through Momentics IN Neutrino.
> 
> I have a project that i'm sending it with the compile erros in Momentics.
> 
> Basically, it doesn't find the Rhapsody Framework.
> 
> Please, Help-me.
> 
> Thanks!
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75565
Re: Rhapsody and QNX Momentics  
Thanks for a response.

I'm attaching a ZIP file and you will can unzip.

Tks on more time.
Attachment: Text sent.zip 1.45 MB
Re: Rhapsody and QNX Momentics  
Hi All;

I've done the follow steps:

1 - I've installed the Rhapsody Platform plugin in Momentics;
2 - Created a HelloWorld Rhapsody project in Rhapsody perspective;
2 - Added a Eclipse configuration in this project;
3 - Create an IDE Project like QNX C++ PROJECT;
4 - Generate code from Rhapsody C++ project for this QNX C++ PROJECT;
5 - tryied to compile but erros were generated;
6 - Added include paths and the errors continued.

I've attached the screen with the actual situation. Please Help me! I've tryied to include many include paths to 
Rhapsody Framework but it doesn't work.
Attachment: Image CompileErrors.jpg 324.47 KB
Re: Rhapsody and QNX Momentics  
You include path is not right. For example if include is "oxf/oxf.h" include path should contain parent of directory "
oxf", not the directory itself.
I.e. .../Share/LangCpp



On 24/11/10 02:03 PM, Wanderson Melo wrote:
> Hi All;
> 
> I've done the follow steps:
> 
> 1 - I've installed the Rhapsody Platform plugin in Momentics;
> 2 - Created a HelloWorld Rhapsody project in Rhapsody perspective;
> 2 - Added a Eclipse configuration in this project;
> 3 - Create an IDE Project like QNX C++ PROJECT;
> 4 - Generate code from Rhapsody C++ project for this QNX C++ PROJECT;
> 5 - tryied to compile but erros were generated;
> 6 - Added include paths and the errors continued.
> 
> I've attached the screen with the actual situation. Please Help me! I've tryied to include many include paths to 
Rhapsody Framework but it doesn't work.
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75857
Re: Rhapsody and QNX Momentics  
I'm sorry. I've attached the wrong file.

This is the correct.
Attachment: Image CompileErrors.jpg 324.47 KB
Re: Rhapsody and QNX Momentics  
It is the same screenshot

On 24/11/10 02:05 PM, Wanderson Melo wrote:
> I'm sorry. I've attached the wrong file.
> 
> This is the correct.
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75858
Re: Rhapsody and QNX Momentics  
I'm sorry for my hurry.

I was wrong.

The last two screenshots are the same.

Do you have any idea what is the problem?
Re: Rhapsody and QNX Momentics  
??? I just explained. Wrong include path

On 24/11/10 02:45 PM, Wanderson Melo wrote:
> I'm sorry for my hurry.
> 
> I was wrong.
> 
> The last two screenshots are the same.
> 
> Do you have any idea what is the problem?
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75867
> 
Re: Rhapsody and QNX Momentics  
Elena;

Firstly, a curiosity: Are you Russian?

Second: But what is the right path? I've tried all paths to the Rhapsody Framework.

You now what file is there a OXF class?

Sorry for my ancious...
Re: Rhapsody and QNX Momentics  
Sorry for my inattention.

I had not seen his previous answer that talks about the parent directory. Sorry.

I'm trying to do your tip.

Thanks a Lotttttt!
Re: Rhapsody and QNX Momentics  
Now I found the erros in attached file.

See.
Attachment: Word ErrosAfterPathTip.doc 310 KB
Re: Rhapsody and QNX Momentics  
You have to find where is this oxfconfig.h and add path to it.
If it is not there it is probably generated config.

I don't even know if it possible to compile it with qnx...

On 24/11/10 04:24 PM, Wanderson Melo wrote:
> Now I found the erros in attached file.
> 
> See.
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75907
Re: Rhapsody and QNX Momentics  

On 24/11/10 03:22 PM, Wanderson Melo wrote:
> Elena;
> 
> Firstly, a curiosity: Are you Russian?
Yes
> 
> Second: But what is the right path? I've tried all paths to the Rhapsody Framework.
? The one that ends with LangCpp (because seems like it has oxf directory in it).

> 
> You now what file is there a OXF class?
Huh?

> 
> Sorry for my ancious...
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post75883
>