Hello Be forum,
It's been a while that I used the programming for Microstation J, I lost every configuration and now I need to recreate how to run the bmake:
I run the mstndevvars.bat
Then I type the bmake basic and I got an error that the ditemlib.dlo can't be found.
Does anyone can help in solve this error, I appreciate it very much.
--------------------------------------------------------------------The following is what I did in the shell command
Visual C++ product directory could not be found.Set nttools to Visual C++ product directory.Set LIB and INCLUDE appropriately.C:\Bentley\Program\MicroStation\mdl\examples\basic>bmake basicBentley Systems Make Utility. Version 8.03, Mar 29 2001Wed Feb 13 14:34:28 2013BMAKE: cannot find file C:\Bentley\Program\MicroStation\mdl\bin\mdl\library\ditemlib.dloBMAKE: call trace line: 83, C:\Bentley\Program\MicroStation\mdl\examples\basic\basic.mkeWed Feb 13 14:34:28 2013, elapsed time: 0:00C:\Bentley\Program\MicroStation\mdl\examples\basic>mlink basicMicroStation Development Language Linker 07.01.05### basic.mo: Could not open input file.Fatal error: abortingC:\Bentley\Program\MicroStation\mdl\examples\basic>
--------------------------------------------------------------------------
----------------------------------------------------------------------------My mstndevvars.bat file is like this:@echo offecho Visual C++ product directory could not be found.echo Set nttools to Visual C++ product directory.echo Set LIB and INCLUDE appropriately.set nttools=set LIB=C:\Bentley\Program\MicroStation\mdl\library\set INCLUDE=C:\Bentley\Program\MicroStation\mdl\include\set MS=C:\Bentley\Program\MicroStationset BMAKE_OPT=-I%MS%\mdl\include -I%MS%\jmdl\includeset PATH=%PATH%;%MS%;%MS%\mdl\bin;%MS%\jmdl\binset CLASSPATH=.;%MS%\jmdl\lib\classes.zip;%MS%\jmdl\lib\jmdlsdk.jar;%MS%\jmdl\lib\swingall.jar;%MS%\jmdl\lib\bentley.jar;%MS%\jmdl;%CLASSPATH%set MLINK_STDLIB=C:\Bentley\Program\MicroStation\mdl\library\builtin.dlo;C:\Bentley\Program\MicroStation\mdl\library\ditemlib.dloC:cd \Bentley\Program\MicroStation\mdl\examples\basic--------------------------------------------------------------------My mslocal.cfg is like this:MSDIR = C:/Bentley/Program/MicroStation/_USTN_WORKSPACEROOT : C:/Bentley/Workspace/%include $(MSDIR)config\msconfig.cfgMS = C:/Bentley/Program/Microstation/BMAKE_OPT = -I$(MS)/mdl/include -ddebug--------------------------------------------------------------------
Please clarify which version(s) of MicroStation you have installed. You mention MicroStation/J, but those error messages look like those from the MicroStation V8 version of the build tools.
Regards, Jon Summers LA Solutions
Yes I am working with Mstn J, I have both installed in this PC. MJ and V8i Select 3. I don't know if this is the reason why is not working?
Thanks
Samy Cad Coordinator
Unknown said: I am working with Mstn J, I have both installed in this PC. MJ and V8i Select 3
If you want to build an application for MicroStation/J, then you should use the mstndevvars.bat found in that version's \MDL folder tree. I think it's in the \MDL\jmdl sub-folder.
How about Windows environment variable MS? Is that defined? If defined, is it pointing at the MicroStation/J folder?
Yes you are right I am working with the mstndevvars.bat from the jmdl folder, which is the one I posted initailly.
Can you tell what is the text I need to add at the end of the executable shorcut to get the list of all system variables? I can not make it work. I tried: -ddebug. And it should give a text file with the whole list. That way you can see what I have. Thanks
attached is the full text from the msdebug.txt
[admin note: text "moved" to a file and attached to post]
Unknown said: What is the text I need to add at the end of the executable shorcut to get the list of all system variables?
Read this article about MicroStation command-line switches.
Unknown said:Here is the full text from the msdebug.txt
Prefer to attach large chunks of text as a file rather than copying to your post. Use the Advanced Reply Editor option to see a user interface tab that lets you attach files to a post.
To add to what Jon references regarding "MicroStation command-line switches", the ustation -debug article is a very good resource, too.
Samuel,
It looks like a path error in the build environment. The path to the library has an extra mdl\bin in it. Can you use the command "SET MS" (without the quotes) from the command prompt that you are using? Also when you build can you add -p to the bmake command to get the macros that are used during the bmake process. You can pipe this to a text file by using a command line that looks like this "bmake basic -p -ddebug >buildinfo.txt
thanks,
mark anderson [Bentley]
Visit me at https://communities.bentley.com/communities/other_communities/bentley_innovation/default.aspx
Thanks for helping in packing this file I didn't know how to do it before, now I Iknow it.
Hi Mark/Jon,
Thanks for all your fine time and help on this matter.
Should I SET MS at the system environment? or inside the mstndevvars.bat?
Hi Mark,
I just run the bat file again with the options you mentioned.
BAT file ? Now I am getting confused. MSTNDEVVARS.BAT should be run once when openning the command shell that you are going to build your application in. What I need to know is what is the environment in the command shell before you type BMAKE Basic. I want to see the value of MS and MSMDE from the previous posting the mdlLibs directory is set from MSMDE. If you are using some other batch file mode to compile applications you need to let us know what it is setting.