Hello,
I have a problem with building my ma file. I have installed 3 MicroStation versions on my Pc. 8.5, XM and V8i. I have a Solution in Visual Studio 2010 with three build configurations for the three MicroStation Versions. I start the bmake with an mki file that sets some paths and includes the buildversion.mki, mdl.mki and my depends.mke. For V8i everything seems to be ok and I get the ma. For both others there is something strange. The _makeFilePath seems to be missing so that there are problems when resolving the makros. Here is the output from the console:
Macro: Debug=1Macro: BMAKE_ARGS=-IC:\PROGRA~2\Bentley\080502~1.70\Program\MICROS~1\mdl\include - IC:\PROGRA~2\Bentley\080502~1.70\Program\MICROS~1\jmdl\include -v -dDebug=1 mdl8_5_2_70.mkiMacro: mdl8_5_2_70.mki__debug_1_=(none)Bentley Systems Make Utility. Version 08.11.00.06, Sep 5 2007 Thu Apr 21 15:27:38 2011Macro (mdl8_5_2_70.mki:0): %=$%Macro (mdl8_5_2_70.mki:0): $%=$%Macro (mdl8_5_2_70.mki:0): %=$%Macro (mdl8_5_2_70.mki:0): $%=$%Macro (mdl8_5_2_70.mki:0): winNT=(none)Macro (mdl8_5_2_70.mki:0): MSBuildVersion=200Macro (mdl8_5_2_70.mki:0): TaskMultiTargetingToolsVersion=2.0Macro (mdl8_5_2_70.mki:0): _X86_=(none)Macro (mdl8_5_2_70.mki:0): _MakeFileSpec=mdl8_5_2_70.mkiMacro (mdl8_5_2_70.mki:0): _MakeFileName=mdl8_5_2_70Macro (mdl8_5_2_70.mki:0): _MakeFileExt=.mkiMacro (mdl8_5_2_70.mki:0): _MakeFile=mdl8_5_2_70.mkiMacro (mdl8_5_2_70.mki:0): _bmake=bmakeMacro (mdl8_5_2_70.mki:0): _bmake_V08=1
I don't know what is wrong because with V8i there is an _MakeFilePath. Even if I set it in my mki file it resolves the macros but won't compile. Has anyone experienced the same? It doesn't matter if I start bmake from console or out of my VS2010 Environment.
ThanksMarcel
Marcel Pradel said:I start the bmake with an mki file that sets some paths
Is environment variable MS defined correctly? MS should point to the folder where ustation.exe is located.
If you are using a common build environment for different versions of MicroStation you should adjust MS for each version.
Variable MSMDE should also point to the correct location of the Bentley build tools, by default \MicroStation\mdl\bin.
Regards, Jon Summers LA Solutions
Thank you Jon,
I tried it with another MicroStation SDK and got a good result even without defining MS.
Bentley Systems Make Utility. Version 08.05.01.19, Aug 31 2004 1> Thu Apr 28 14:39:03 2011 1> Macro (mdl8_5_1_25.mki:0): %=$% 1> Macro (mdl8_5_1_25.mki:0): $%=$% 1> Macro (mdl8_5_1_25.mki:0): %=$% 1> Macro (mdl8_5_1_25.mki:0): $%=$% 1> Macro (mdl8_5_1_25.mki:0): winNT=(none) 1> Macro (mdl8_5_1_25.mki:0): _X86_=(none) 1> Macro (mdl8_5_1_25.mki:0): _MakeFileSpec=D:\projects\proj1\mdl8_5_1_25.mki 1> Macro (mdl8_5_1_25.mki:0): _MakeFilePath=D:\projects\proj1\
This is the output in VS2010. I can build the ma on a workstation where no MicroStation is installed. I only copy all the files under mdl directory and add the appropriate toolsubs.dll and rmgrsubs.dll to the bin directory.
Any other idea why there is no _MakeFilePath with some versions of bmake utility?
Thanks a lot
Marcel