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: Rhapsody 7.1 and windows long file names
Topic Summary:
Created On: 13-Jun-2007 07:33
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.
 13-Jun-2007 07:33
User is offline View Users Profile Print this message


colin mitchell

Posts: 3
Joined: 8-Nov-2006

I have just installed version 7.1 and left the installation path at default (C:\Program Files\Telelogic\...).

I have installed the QNX 6.3 adapter and tried to generate code.
Unfortunately, it now falls flat on its backside during linking because of the space in the path.

The problem is because Rhapsody seems to Autogenerate the '$OMContextMacros', which automatically expands OMROOT to the full path (with space). At the moment I cannot find anywhere to add an extra backslash-quote to OMROOT, which would expand correctly when the make file is generated, e.g. change $OMContextMacros to generate:
OMROOT="\"C:/Program Files/Telelogic/Rhapsody 7.1/Share\""

The QNX files use full paths to specify the location of the libraries. The Microsoft build files do not (as they set the environment path) so MS builds work.

The only solution I have (other than reinstall) is to change the rhapsody.ini file so that OMROOT is in short name format:
OMROOT="C:/PROGRA~1/TELELO~1/RHAPSO~1.1/Share"

Any suggestions before I put a support request in?

Thanks.
Report this to a Moderator Report this to a Moderator
 13-Jun-2007 08:36
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi Colin

Try editing your CPP_CG:NXNeutrinoGCC::MakefileContent property*, and replace the following line:

[CODE]$OMContextMacros[/CODE]with

[CODE]FLAGSFILE=$OMFlagsFile
RULESFILE=$OMRulesFile
OMROOT=[COLOR=Blue]"\"[/COLOR]$OMROOT[COLOR=Blue]\""[/COLOR]
CPP_EXT=$OMImplExt
H_EXT=$OMSpecExt
OBJ_EXT=$OMObjExt
EXE_EXT=$OMExeExt
LIB_EXT=$OMLibExt
INSTRUMENTATION=$OMInstrumentation
TIME_MODEL=$OMTimeModel
TARGET_TYPE=$OMTargetType
TARGET_NAME=$OMTargetName
$OMAllDependencyRule
TARGET_MAIN=$OMTargetMain
LIBS=$OMLibs
INCLUDE_PATH=$OMIncludePath
ADDITIONAL_OBJS=$OMAdditionalObjs
OBJS=$OMObjs[/CODE]You can read about this in the Rhapsody help, under (takes deep breath) "Rhapsody Properties ?> Properties by Subject and Metaclass ?> <lang>_CG ?> <lang>_CG::<Environment> ?> MakefileContent ?> Generated Macros"

If this works for you, you can make the change permanent (for all your projects) by adding your new MakefileContent property to your SiteC++.prp properties file.

I hope that helps. Let me know how you get on!

best regards,
Simon


*I've assumed you're using Rhapsody in C++ and QNXNeutrinoGCC, rather than QNXNeutrinoCW. If I've assumed wrong, you'll need to adjust my instructions!

-------------------------
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:56
User is offline View Users Profile Print this message


colin mitchell

Posts: 3
Joined: 8-Nov-2006

Simon,

thanks but I already tried that after consulting the help. OMROOT doesn't expand to the path, it simply gets put into the makefile as OMROOT="\"$OMROOT\"".

I assume that OMROOT is automatically expanded when generating $OMContextMacros, which is the point I need access to.

BTW, I am using the QNX6.3 files, not the older QNX integration. I have just noticed that for the older integration there is a script file that appears to substitute OMROOT with the actual path, but I have not used it.
Report this to a Moderator Report this to a Moderator
 3-Jul-2007 08:35
User is offline View Users Profile Print this message


Ian Turner

Posts: 25
Joined: 3-Feb-2006

Hi Colin,

I had a problem the reverse of yours! There is a property to place quotes around OMROOT and it was set to true, giving me problems, so I turned it off. Have you tried setting this property?

Regards,

Ian
Report this to a Moderator Report this to a Moderator
 19-Jul-2007 00:26
User is offline View Users Profile Print this message


Arto Kiremitdjian

Posts: 8
Joined: 3-Jan-2007

Simon's suggestion seems like the right approach, but with a minor change: Use
[INDENT]OMROOT=[COLOR=Blue]\"[/COLOR]$OMROOT[COLOR=Blue]\"[/COLOR][/INDENT]
instead of
[INDENT]OMROOT=[COLOR=Red]"[/COLOR][COLOR=Blue]\"[/COLOR]$OMROOT[COLOR=Blue]\"[/COLOR][COLOR=Red]"[/COLOR][/INDENT]
when modifying the MakeFileContent property to replace "$OMContextMacros". The goal is to wrap $OMROOT in just 1 pair of quotes.
Report this to a Moderator Report this to a Moderator
 20-Jul-2007 11:34
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi Colin

D'oh! Silly me. I meant to write:

[CODE]FLAGSFILE=$OMFlagsFile
RULESFILE=$OMRulesFile
OMROOT=[COLOR=Blue]"\"[/COLOR][COLOR=Red]$OMRoot[/COLOR][COLOR=Blue]\""[/COLOR]
CPP_EXT=$OMImplExt
H_EXT=$OMSpecExt
etc...
[/CODE]It's case sensitive!

Regarding Arto's post; I wasn't quite clear on your need specifically to insert [FONT=Courier New][COLOR=Blue]"\"[/COLOR][/FONT] and [FONT=Courier New][COLOR=Blue]\""[/COLOR][/FONT], but I decided to take it at face value...

If you only need to enclose in a single set of quotes, then the [FONT=Courier New]CPP_CG::<Env>:uoteOMROOT[/FONT] property is indeed your man, as Ian alludes, but this really does only work with [FONT=Courier New]$OMContextMacros[/FONT], not [FONT=Courier New]$OMRoot[/FONT].

Phew. I hope I've cleared up my error and made amends!

Cheers,
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
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.