Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Build OpenModelica with ODEV on Windows

Build OpenModelica with ODEV on Windows

When I try to build OM with OMDEV package, there are many errors!  I'll paste the error messages and try to fixed those errors step by step, and also hope get your help.

NO.1 OM's OMPlot application use qwt library but it's not included in omdev package, so it's should be installed with pacman:
       $ pacman -S mingw-w64-i686-qwt-qt5 mingw-w64-x86_64-qwt-qt5
   
        This command will install qwt include file into msys/mingw32/include/qwt and msys/mingw64/include/qwt. the include path of qwt should be changed from build/include/omplot/qwt to the right path or just copy the whole qwt folder from msys subfolder to omplot.

       And also the link library parameters -lomqwt and -lomqwtd should be changed to -llibqwt and -llibqwtd

trace.txt

Edited by: LIWenhui - May-31-16 00:48:31

Re: Build OpenModelica with ODEV on Windows

Or you should call the makefiles and build the shipped qwt version.

Re: Build OpenModelica with ODEV on Windows

Where could I find the shipped qwt  vserion? GitHub or OM website?

Re: Build OpenModelica with ODEV on Windows

The qwt sources are inside OMPlot!

If you start OMDev\tools\msys\mingw64_shell.bat and do:

Code:


git clone https://github.com/OpenModelica/OpenModelica --recursive
cd OpenModelica
make -f Makefile.omdev.mingw qtclients

it should build all the Qt clients.

Re: Build OpenModelica with ODEV on Windows

No.2  undefined reference to `SystemImpl_tmpTick'

build/System.o: In function `omc_System_tmpTick':
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\boot/build/System.c:1029: undefined reference to `SystemImpl_tmpTick'
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\boot/build/System.c:1029: undefined reference to `SystemImpl_tmpTick'
build/ErrorExt.o: In function `omc_ErrorExt_addMessage':
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\boot/build/ErrorExt.c:240: undefined reference to `Error_addMessage'
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\boot/build/ErrorExt.c:240: undefined reference to `Error_addMessage'
build/ErrorExt.o: In function `omc_ErrorExt_updateCurrentComponent':
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\boot/build/ErrorExt.c:262: undefined reference to `ErrorImpl__updateCurrentComponent'
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\boot/build/ErrorExt.c:262: undefined reference to `ErrorImpl__updateCurrentComponent'
D:/Workplace/Modelica/OpenModelica/OMCompiler/Compiler/runtime/libomcruntime-boot.a(Error_omc.boot.o): In function `c_add_message':
D:\Workplace\Modelica\OpenModelica\OMCompiler\Compiler\runtime/errorext.cpp:393: undefined reference to `omc_Error_getCurrentComponent'
collect2.exe: error: ld returned 1 exit status
Makefile.common:184: recipe for target '/d/Workplace/Modelica/OpenModelica/build/lib/omc/libOpenModelicaCompiler.dll' failed
make[5]: *** [/d/Workplace/Modelica/OpenModelica/build/lib/omc/libOpenModelicaCompiler.dll] Error 1
make[5]: Leaving directory '/d/Workplace/Modelica/OpenModelica/OMCompiler/Compiler/boot'
Makefile.common:57: recipe for target 'bootstrap-from-tarball' failed
make[4]: *** [bootstrap-from-tarball] Error 2
make[4]: Leaving directory '/d/Workplace/Modelica/OpenModelica/OMCompiler/Compiler/boot'
Makefile.common:14: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/d/Workplace/Modelica/OpenModelica/OMCompiler/Compiler/boot'
Makefile.omdev.mingw:520: recipe for target 'omc-bootstrapped' failed
make[2]: *** [omc-bootstrapped] Error 2
make[2]: Leaving directory '/d/Workplace/Modelica/OpenModelica/OMCompiler'

real    5m6.478s
user    0m5.657s
sys     0m11.012s
Makefile.omdev.mingw:322: recipe for target 'omc' failed
make[1]: *** [omc] Error 2
make[1]: Leaving directory '/d/Workplace/Modelica/OpenModelica/OMCompiler'
Makefile.omdev.mingw:37: recipe for target 'omc' failed
make: *** [omc] Error 2

Re: Build OpenModelica with ODEV on Windows

Hi,

Can you do in the mingw64_shell.bat terminal?

Code:


> export OPENMODELICAHOME="d:\\Workplace\\Modelica\\OpenModelica\\build\\"
> make -f Makefile.omdev.mingw qtclients > trace.txt 2>&1

and paste trace.txt file here.

Do you follow this readme?
https://github.com/OpenModelica/OMCompi … v-MINGW.md

Cheers,
Adrian Pop/

Re: Build OpenModelica with ODEV on Windows

adrpo wrote:


Hi,

Can you do in the mingw64_shell.bat terminal?

Code:


> export OPENMODELICAHOME="d:\\Workplace\\Modelica\\OpenModelica\\build\\"
> make -f Makefile.omdev.mingw qtclients > trace.txt 2>&1

and paste trace.txt file here.

Do you follow this readme?
https://github.com/OpenModelica/OMCompi … v-MINGW.md

Cheers,
Adrian Pop/


Re: Build OpenModelica with ODEV on Windows

After re-git the OM source from GitHub, I could build OM success by omdev. But It's crashed and caused blue-screen when I tried run OM built in 64bit! After a rebuild in mingw32 and there's an error of too many heap sections when loading modelica library. 

The attachment is a screen copy of oml loading  error.

Edited by: LIWenhui - May-30-16 03:05:32
There are 0 guests and 0 other users also viewing this topic
You are here: