Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 383

Error in Bmake while compiling

$
0
0

Hello!

I’m new to MDL programming, would You please help me  to solve this problem:

When try to compile the mstimage.cmd with BMAKE, I get next error message:

 

C:\MK_dev\mstimage_code>set MS="C:\Program Files (x86)\Bentley\PowerDraft V8i (S

ELECTseries)"

C:\MK_dev\mstimage_code>call "C:\Program Files (x86)\Bentley\PowerDraft V8i (SEL

ECTseries)"\PowerDraft\mdl\bin\mstndevvars.bat

C:\MK_dev\mstimage_code>REM To not see this information echo to the screen

C:\MK_dev\mstimage_code>REM set ECHO as an environment variable in your system c

onfiguration.

C:\MK_dev\mstimage_code>REM For more information see the MicroStation SDK README.

C:\MK_dev\mstimage_code>REM ** SET MS **

C:\MK_dev\mstimage_code>set msdrive=

C:\MK_dev\mstimage_code>set mssource=

C:\MK_dev\mstimage_code>SET MS=

C:\MK_dev\mstimage_code>for %I in ("") do set MS=%~sI

C:\MK_dev\mstimage_code>set MS=

C:\MK_dev\mstimage_code>IF "." == "." goto USAGE_Error

#-----------------------------------------------------------------------

# ERROR: Bad parameter

# Usage = MSTNDEVVARS.BAT [MicroStation dir] [MicroStation SDK dir]

# e.g. C:\Windows\system32\cmd.exe /x /k "C:\Program Files\Bentley\MicroStation\

mdl\bin\mstndevvars.bat C:\Program Files\Bentley\MicroStation\ C:\Program Files\

Bentley\MicroStationSDK\"

#-----------------------------------------------------------------------

C:\MK_dev\mstimage_code>GOTO end

C:\MK_dev\mstimage_code>bmake -a c:\prj\_mstimage\mstimage_pgm.ma

'bmake' is not recognized as an internal or external command,

operable program or batch file.

 

C:\MK_dev\mstimage_code>pause

Press any key to continue . . .

 

 

mstimage.cmd code is:

set MS="C:\Program Files (x86)\Bentley\PowerDraft V8i (SELECTseries)"

call %MS%\PowerDraft\mdl\bin\mstndevvars.bat

bmake -a c:\prj\_mstimage\mstimage_pgm.ma

pause

mstndevvars.bat code is:

@ECHO ON
@IF NOT "%ECHO%." == "." ECHO %ECHO%
REM To not see this information echo to the screen
REM set ECHO as an environment variable in your system configuration.
REM For more information see the MicroStation SDK README.

REM ** SET MS **
set msdrive=%~d1
set mssource=%~p1
SET MS=%msdrive%%mssource%
for %%I in ("%MS%") do set MS=%%~sI
IF "%MS%." == "." goto USAGE_Error


REM MDLTOOLS is the location of the MDLSDK
set mdltoolsdrive=%~d2
set mdltoolspath=%~p2
set mdltools=%mdltoolsdrive%%mdltoolspath%
for %%I in ("%mdltools%") do set mdltools=%%~sI
REM make the internal settings work.
set toolspath=%mdltools%mdl\bin\
set MSMDE=%mdltools%

REM Provide required values for bmake layered build policy machinery.
set USE_LAYERED_POLICY=1
set PolicyFileNamesMki=$(MSMDE)mdl/include/MdlSdkPolicyFileNames.mki
set PolicyFileMapMki=$(MSMDE)mdl/include/MdlSdkPolicyFileMap.mki

REM ** Setup the compiler **
if defined VS80COMNTOOLS GOTO MdlSetup
@ECHO #-----------------------------------------------------------------------
@ECHO # Warning: Compiler Setup error
@ECHO # VS80COMNTOOLS not defined. That should have been set when the
@ECHO # .NET 2005 compiler was installed. You will not be able to do
@ECHO # any native C, C++ or C# development using the default compiler
@ECHO # for MicroStation.
@ECHO #-----------------------------------------------------------------------

:MdlSetup
set BMAKE_OPT=-I%mdltools%mdl\include
set PATH=%MS%;%mdltools%mdl\bin\;%PATH%
set MLINK_STDLIB=%mdltools%mdl\library\builtin.dlo %mdltools%mdl\library\BentleyDgn.dlo %mdltools%mdl\library\toolsubs.dlo

rem Create the following folders if they do not exist
if not exist %MS%mdl\objects. mkdir %MS%mdl\objects
if not exist %MS%mdl\reqdobjs. mkdir %MS%mdl\reqdobjs
if not exist %MS%mdl\rscobj. mkdir %MS%mdl\rscobj

cd /d %msmde%

GOTO end

:USAGE_Error
@ECHO #-----------------------------------------------------------------------
@ECHO # ERROR: Bad parameter
@ECHO # Usage = MSTNDEVVARS.BAT [MicroStation dir] [MicroStation SDK dir]
@ECHO # e.g. %comspec% /x /k "C:\Program Files\Bentley\MicroStation\mdl\bin\mstndevvars.bat C:\Program Files\Bentley\MicroStation\ C:\Program Files\Bentley\MicroStationSDK\"
@ECHO #-----------------------------------------------------------------------
GOTO end

:CompilerSetup_Error
@ECHO #-----------------------------------------------------------------------
@ECHO # ERROR: Compiler Setup error
@ECHO # VCINSTALLDIR not defined. That should have been set when the
@ECHO # vsvars32.bat was run.
@ECHO #-----------------------------------------------------------------------

:end



Viewing all articles
Browse latest Browse all 383

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>