Marcel Meerstetter
|
Rhapsody and QNX Momentics
|
Marcel Meerstetter
07/28/2009 11:02 AM
post34729
|
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
|
|
|
Andy Jin(deleted)
|
RE: Rhapsody and QNX Momentics
|
Andy Jin(deleted)
07/28/2009 11:24 AM
post34736
|
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
|
|
|
Marcel Meerstetter
|
Re: RE: Rhapsody and QNX Momentics
|
Marcel Meerstetter
07/28/2009 11:28 AM
post34737
|
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.
|
|
|
Andy Jin(deleted)
|
RE: RE: Rhapsody and QNX Momentics
|
Andy Jin(deleted)
07/28/2009 11:33 AM
post34739
|
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.
|
|
|
Marcel Meerstetter
|
Re: RE: RE: Rhapsody and QNX Momentics
|
Marcel Meerstetter
07/28/2009 11:47 AM
post34740
|
Re: RE: RE: Rhapsody and QNX Momentics
The export failed, so I just zipped up the whole project
Thanks for the help
Marcel
|
|
|
Andy Jin(deleted)
|
RE: RE: RE: Rhapsody and QNX Momentics
|
Andy Jin(deleted)
07/28/2009 12:16 PM
post34742
|
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
|
|
|
Marcel Meerstetter
|
Re: RE: RE: RE: Rhapsody and QNX Momentics
|
Marcel Meerstetter
07/28/2009 12:26 PM
post34744
|
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.
|
|
|
Andy Jin(deleted)
|
RE: RE: RE: RE: Rhapsody and QNX Momentics
|
Andy Jin(deleted)
07/28/2009 12:33 PM
post34745
|
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.
|
|
|
Marcel Meerstetter
|
Re: RE: RE: RE: Rhapsody and QNX Momentics
|
Marcel Meerstetter
07/28/2009 12:57 PM
post34747
|
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
|
|
|
Andy Jin(deleted)
|
Re: RE: RE: RE: Rhapsody and QNX Momentics
|
Andy Jin(deleted)
07/28/2009 1:03 PM
post34749
|
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?
|
|
|
Wanderson Melo
|
Re: RE: RE: RE: Rhapsody and QNX Momentics
|
Wanderson Melo
11/22/2010 2:43 PM
post75565
|
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!
|
|
|
Elena Laskavaia
|
Re: Rhapsody and QNX Momentics
|
Elena Laskavaia
11/22/2010 3:43 PM
post75572
|
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
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/22/2010 8:05 PM
post75591
|
Re: Rhapsody and QNX Momentics
Thanks for a response.
I'm attaching a ZIP file and you will can unzip.
Tks on more time.
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/24/2010 2:03 PM
post75857
|
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.
|
|
|
Elena Laskavaia
|
Re: Rhapsody and QNX Momentics
|
Elena Laskavaia
11/24/2010 2:11 PM
post75859
|
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
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/24/2010 2:05 PM
post75858
|
Re: Rhapsody and QNX Momentics
I'm sorry. I've attached the wrong file.
This is the correct.
|
|
|
Elena Laskavaia
|
Re: Rhapsody and QNX Momentics
|
Elena Laskavaia
11/24/2010 2:34 PM
post75865
|
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
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/24/2010 2:45 PM
post75867
|
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?
|
|
|
Elena Laskavaia
|
Re: Rhapsody and QNX Momentics
|
Elena Laskavaia
11/24/2010 2:59 PM
post75869
|
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
>
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/24/2010 3:22 PM
post75883
|
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...
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/24/2010 3:53 PM
post75895
|
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!
|
|
|
Wanderson Melo
|
Re: Rhapsody and QNX Momentics
|
Wanderson Melo
11/24/2010 4:24 PM
post75907
|
Re: Rhapsody and QNX Momentics
Now I found the erros in attached file.
See.
|
|
|
Elena Laskavaia
|
Re: Rhapsody and QNX Momentics
|
Elena Laskavaia
11/25/2010 11:26 AM
post75988
|
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
|
|
|
Elena Laskavaia
|
Re: Rhapsody and QNX Momentics
|
Elena Laskavaia
11/25/2010 11:01 AM
post75978
|
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
>
|
|
|
|