Hi,
Thanks for the thanks and for the bug report :) I found the problem! Somewhere, in some revision we added by mistake a space in the OPENMODELICAHOME environment variable before running the share/omc/script/Compile.bat script. We didn't detect this because we (the developers) all have OMDev installed and Compile.bat looks for OMDev and uses that if present. As a quick fix you can overwrite: c:/OpenModelica1.5.0/share/omc/script/Compile.bat with the attached file (changing .txt to .bat). Note that this will work only if you have installed OpenModelica into: C:\OpenModelica1.5.0\ If you haven't install it there, just change the line in the Compile.txt: set OPENMODELICAHOME=C:\OpenModelica1.5.0\ to whatever installation path you gave. Of course, I'll push a fix in Subversion and when I generate a new nightly build you won't need to bother about this. Cheers, Adrian Pop/ On 2010-10-04 21:17, Carlos Antunes wrote:
Hello! First, I'd like to thank everyone that is involved in the creation of OpenModelica. I am trying to develop a model for a diode and ran into some problems with the tagged 1.5.0 release so I decided to give the nightly built release 6251 a try (I'm running Windows XP). Unfortunately, it seems that this release isn't even able to compile the models. First, I get a message that the simulation fails and when looking at output.log I am told that the executable isn't available (which it really isn't.) As I have just started using OpenModelica, I am uncertain on how to proceed to diagnose the problem. Thanks! Carlos Antunes
-- _____________________________________________________________________ Adrian Pop | PhD Open Source Modelica Consortium | Technical Coordinator Department of Computer Science | http://www.ida.liu.se/~adrpo Linköping University | phone:+46 76 2343499/+46 13 285781 S-581 83 Linköping, Sweden | fax: +46 13 142231 OSMC & LiU/IDA/PELAB | office: 3B:478
@echo off REM Clear all environment variables that may interfere during compile and link phases. set GCC_EXEC_PREFIX= set CPLUS_INCLUDE_PATH= set C_INCLUDE_PATH= set LIBRARY_PATH= set OLD_PATH=%PATH% REM Declare OPENMODELICAHOME without spaces. set OPENMODELICAHOME=C:\OpenModelica1.5.0\ set MINGW="%OPENMODELICAHOME%\MinGW" REM If OMDEV is set, use MinGW from there instead of OPENMODELICAHOME REM It is not certain that release OMC is installed if not %OMDEV%a==a set MINGW=%OMDEV%\tools\MinGW pushd "%MINGW%\bin" >%1.log 2<&1 set PATH="%CD%;%MinGW%\libexec\gcc\mingw32\3.4.5\";%PATH% popd %MinGW%\bin\mingw32-make -f %1.makefile >>%1.log 2<&1 set RESULT=%ERRORLEVEL% set PATH=%OLD_PATH% set OLD_PATH= exit /B %RESULT%
