Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Running the executable (Rhapsody 6.1)
Topic Summary:
Created On: 15-Jun-2007 12:25
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 15-Jun-2007 12:25
User is offline View Users Profile Print this message


Bjorn Carlson

Posts: 5
Joined: 22-Jan-2007

Hi folks,

I'm working on a project where we use Scons for building binaries. It builds all libs and executables in a separate directory. For example, a setup like this:
myProject/DefaultComponent/DefaultConfig/target.mak
would end up in a the directory
myProject/build/DefaultComponent/DefaultConfig/myProject/target.exe

...and Rhapsody can't find it. Does anybody know how to tell Rhapsody where the executable is? I've looked at the property InvokeExecutable and the keyword $executable, but I can't figure out how to use them.

Any advice is much appreciated.
Bjorn
Report this to a Moderator Report this to a Moderator
 15-Jun-2007 18:27
User is offline View Users Profile Print this message


Arto Kiremitdjian

Posts: 8
Joined: 3-Jan-2007

I think that the keyword $executable is based on the property 'ObjectsDirectory'. Try setting the value of that property to the path of the generated program, such as "myProject/build/DefaultComponent/DefaultConfig/myProject".
Report this to a Moderator Report this to a Moderator
 18-Jun-2007 08:05
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi Bjorn

Arto's suggestion has promise; I'd try that first, although be aware that changing the ObjectsDirectory property will probably change the content of your generated makefile, which may or may not be a problem.

Another couple of ideas that I'd consider:

[list]
[*]Modify the InvokeExecutable property to run a script that gets passed $executable and processes it into the real path to the exe.
[*]Modify your MakeFileContent property so that your generated makefile copies the executable back into Rhapsody's DefaultComponent\DefaultConfig directory after Scons has finished.
[/list]

best regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
 18-Jun-2007 08:52
User is offline View Users Profile Print this message


Bjorn Carlson

Posts: 5
Joined: 22-Jan-2007

Arto and Simon,
Thank you. I'll try your suggestions.

Bjorn
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.