-
Notifications
You must be signed in to change notification settings - Fork 299
/
README-BUILD-RELEASE.txt
78 lines (60 loc) · 2.76 KB
/
README-BUILD-RELEASE.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---------------------------------------------------------------------------
How to build the OpenModelica release on Windows using MSVC
---------------------------------------------------------------------------
Last update 2010-04-27 Adrian Pop, adrpo@ida.liu.se
The following step-by-step guides explain how to
build the OpenModelica release .msi file on Windows
using the Microsoft Visual Studio .NET 2008
-1. Checkout the sources from Subversion:
https://openmodelica.org/svn/OpenModelica/trunk -> trunk
user: anonymous
pass: none <- write none here
Checkout the VC7 directory from Subversion:
https://openmodelica.org/svn/OpenModelica/installers/VC7
into directory:
trunk\Compiler\VC7
IMPORTANT: VC7 HAS TO BE CHECKOUT into trunk\Compiler\VC7
as the Visual Studio projects are based on
relative paths.
00. Update the version number:
in trunk/Compiler/runtime/settings.c to "x.y.z"
in trunk/Examples/*.onb
in trunk/doc/*.doc + generate .pdfs
01. Please do all the steps in README-WIN32.txt
Also you need to build the simulation runtime from c_runtime
To do this you need to open MSYS terminal, go to trunk/c_runtime
say: make -f Makefile.omdev.mingw
02. Additional needed files:
- unpack trunk\Compiler\VC7\Setup\zips\mingw.tar.gz
-> to \trunk\build\MinGW
- take
https://openmodelica.org/svn/OpenModelica/installers/windows/VC7/Setup/zips/ModelicaLib.tar.gz
and unpack
-> to \turnk\build\ModelicaLibrary
- build trunk\OMShell then you will get a file:
\trunk\OMShell\Release\OMShell.exe
- build trunk\OMNotebook then you will get a file:
trunk\OMNotebook\OMNotebookQT4\Release\OMNotebook.exe
Also, you need to put these files in the directory:
trunk\OMNotebook\OMNotebookQT4\Release\
commands.xml, modelicacolors.xml, stylesheet.xml
OMNotebookHelp.onb, pltplot.jar (from trunk/Compiler/VC7/Setup/bin/ptplot.jar)
03. Update the version into:
- documentation
- *.onb files
- everywhere you might find it
04. Open the trunk/Compiler/VC7/omc/omc.snl
05. Build the project Ctrl+Shift+B
06. Open Setup, go to a file, right click on it and say->Properties Window
Then, click on Setup and in the Properties change:
ProductName, Title, Version to update version to x.y.z
07. Right Click in Setup choose View->"File System",
then go to Application Folder, RightClick -> Properties Window
change DefaultLocation to c:\OpenModelica[x.y.z]
08. Locate Uninstall.bat in the solution, edit it and replace the
number with the latest product upgrade code.
09. Right click on Setup and say Build
10. You get a Setup.msi into trunk\Compiler\VC7\Setup\Release
That's it,
Cheers,
Adrian Pop/