It is currently Mon Feb 06, 2012 3:36 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 10 posts ] 
Author Message
 Post subject: Problem building models in Rhapsody 7.3.
PostPosted: Mon Feb 23, 2009 8:55 am 

Joined: Tue Feb 17, 2009 2:58 pm
Posts: 5
Hi,
I am using Visual studio 2008, languages C and C++, Rhapsody version 7.3... I am not able to build any samples or models in here... the error I get is :
"Building ------------ Gui.exe ------------
Executing: "C:\Telelogic\Rhapsody\Share\etc\msmake.bat" Gui.mak rebuild
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
Gui.mak(93) : fatal error U1083: target macro '' expands to nothing
Stop."
I have modified the "msmake.bat" file and "Vcvars32_VisualStudio2005.bat" file and "vs2005_make.bat" to show the correct locations...
help me out with this...


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Feb 23, 2009 4:36 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Do you have QNX installed?

Try editing the msmake.bat file in <install>\share\etc to add this line

set MAKEFLAGS=

before it calls nmake.

e.g.
@echo off
if "%2"=="" set target=all
if "%2"=="build" set target=all
if "%2"=="rebuild" set target=clean all
if "%2"=="clean" set target=clean
set MAKEFLAGS=
call "C:\Rhapsody7.4\Share\etc\Vcvars32.bat" x86
echo ``nmake.exe
nmake /nologo /S /F %1 %target% %3 %4 %5 %6


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2009 12:43 am 

Joined: Tue Feb 17, 2009 2:58 pm
Posts: 5
No, i don't have QNX installed... Is it necessary to install QNX, when I already have Visual Studio 2008....?
I have added that line in "msmake.bat", but makes no worth... In fact, the batch file looks like this...
"@echo off
if "%2"=="" set target=all
if "%2"=="build" set target=all
if "%2"=="rebuild" set target=clean all
if "%2"=="clean" set target=clean
set MAKEFLAGS=
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\Vcvars32.bat" x86
echo ``nmake.exe
nmake /nologo /S /F %1 %target% MS_VER="2005" %3 %4 %5 %6"


any other solution...?


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2009 11:33 am 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
It's not necessary to install QNX but if you have it installed then the MAKEFLAGS environment variable gets adjusted.

2008 isn't supported out of the box and the GUIs in the samples are only good for VC6.
Have you followed the instructions for 7.4? They'll be the same for 7.3. http://www.rhapsody4you.org/rhapsody7-4 ... -t181.html

Can you get a simple ping pong example to build and run?


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2009 2:43 pm 

Joined: Tue Feb 17, 2009 2:58 pm
Posts: 5
No, I am not able to run even the Ping Pong sample...

I will tell u exactly the things I did...
-Installed Visual C++ 2008 Express edition
-Installed Rhapsody in Developement edition, with C, C++ languages and all plug ins selected.
-On Real Time OS Settings, I selected almost all Development Environments including Visual Studio 2005
-Installed Microsoft Platform SDK for Windows Server 2003 R2
-Unzipped the Adapter "VS2005ExpressRhapsody7.1.1Share.zip" in the installed directory and modified the batch files as mentioned here :

http://www.rhapsody4you.org/visual-c-2005-express-adapter-t47.html

-even modified the "msmake.bat" file as mentioned in the previous post...

Still, I am not able to build any models.....[/url]


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2009 4:09 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
I'm not familiar with VS 2008 Express edition. It looks a bit like you might be trying too hard.

I would suggest that if you are just looking for a free compiler to use with Rhapsody then cygwin is perhaps the easiest to get up and running.

Install it as per these instructions and then reinstall Rhapsody letting it detect cygwin.


Attachments:
File comment: Cygwin Set up
cygwin_installation_instructions.pdf [90.61 KiB]
Downloaded 118 times
Offline
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 2:20 pm 

Joined: Tue Feb 17, 2009 2:58 pm
Posts: 5
@Farquhar,

Hi,
This is not ending...
I tried Cygwin compiler and also Visual C++ 2005 edition, but in vain...
Rhapsody detected both Visual Studio 2005 and Cygwin Development environments, but the same error is appearing... not able to build a single model...
Should I change any settings in Rhapsody after installation..?


Offline
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 4:20 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Are you new to Rhapsody? If so you may not understand that you must select the compiler via the environment setting in your configuration.

Image


Offline
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 6:05 pm 

Joined: Tue Feb 17, 2009 2:58 pm
Posts: 5
Sorry, should have mentioned first... I am very new to the Rhapsody...
Its working under the Cygwin environment...
But, can't understand what's the problem with the Visual studio 2005, I have installed even the SDK platform...
anyway, thanks for your time...

If possible, can you please provide some Beginners Guide(an example) for building a Model(SysML modelling) in Rhapsody...


Offline
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 10:00 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
That's a good question. Where do I start to answer such a question though? It really depends on what you are trying to achieve when you 'model'.

I help people model as my job. I have lots of examples but it is really difficult to explain things to people if the example is not their's. I can show people what can be done in Rhapsody by showing my models but they can't seem to apply that to their problem. If they explain their problem then I often change the way they think about the problem as the model emerges. It's an iterative process.

If you really want to get help I would suggest you start by producing a first stab model with a Use Case with, say, 5 scenarios. If you like you could give a brief statement of intent for the system too. Keep it simple, e.g. perhaps you want to record times in a mini marathon. We could end up with a stopwatch. Make it something simple.

You can zip your model and post it. I, and perhaps others, will take a look and give you feedback via alterations. If you raise a support question in Rhapsody it gives you the option to add your model. Don't send the email but locate the .zip it produces. This is what you should post. Suggest you start a new thread though.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

cron

suspicion-preferred