![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
Hi Colin
Try editing your CPP_CG: ![]() [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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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>: ![]() 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 |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
Rhapsody 7.1 and windows long file names
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.