Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- small typos fixed git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9773 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
1 changed file
with
110 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,111 @@ | ||
/* | ||
* RCS: $Id | ||
*/ | ||
--------------------------------------------------------------------------- | ||
How to build the OpenModelica release on Windows using NSIS | ||
--------------------------------------------------------------------------- | ||
The following step-by-step guides explain how to | ||
build the OpenModelica setup file on Windows | ||
using the Nullsoft Scriptable Insall System(NSIS) | ||
NOTE: for checkout of any of the SVN directories you will need this user/pass: | ||
user: anonymous | ||
pass: none <- write none here | ||
00. Checkout the sources from Subversion: | ||
https://openmodelica.org/svn/OpenModelica/trunk -> trunk | ||
Checkout the OpenModelicaSetup directory from Subversion: | ||
https://openmodelica.org/svn/OpenModelica/installers/windows/OpenModelicaSetup | ||
into directory: | ||
\trunk\Compiler\OpenModelicaSetup | ||
IMPORTANT: OpenModelicaSetup HAS TO BE CHECKOUT into \trunk\Compiler\OpenModelicaSetup | ||
since the installer script uses the relative paths. | ||
01. Update the version number: | ||
in trunk/Compiler/runtime/config.h to "x.y.z" | ||
in trunk/Examples/*.onb | ||
in trunk/doc/*.doc + generate .pdfs | ||
02. Please do all the steps in README-OMDev-MINGW.txt | ||
use: make clean testlog | ||
zip trunk\testsuite directory into trunk\testsuite.zip! | ||
03. Additional needed files: | ||
- take qtlibs from: | ||
https://www.ida.liu.se/~adrpo/omc/omdev/qtlibs/ | ||
unpack it, point it by environment variable QTHOME | ||
- svn checkout https://openmodelica.ida.liu.se/svn/OpenModelica/installers/windows/OMDev/tools/mingw | ||
-> to \trunk\build\MinGW | ||
REMOVE MinGW\lib\mlton | ||
REMOVE MinGW\share\doc\mlton | ||
ZIP MinGW\doc\*.* to MinGW\doc\doc.zip and delete them | ||
ZIP MinGW\info\*.* to MinGW\info\info.zip and delete them | ||
ZIP MinGW\man\*.* to MinGW\man\man.zip and delete them | ||
Note that this step will have to be repeated starting from svn checkout | ||
again if anything has changed in svn MinGW directory since last build. | ||
- build OMShell, OMNotebook, OMPlot, OMOptim, OMPlotWindow using Qt SDK | ||
into $OMDev\tools\OMTools\bin | ||
- update $OMDev\tools\OMTools\qtdlls with the newest from Qt SDK! | ||
04. Update the version into: | ||
- documentation | ||
- *.onb files | ||
- everywhere you might find it | ||
05. Download and install NSIS 2.46 from http://nsis.sourceforge.net/Main_Page | ||
06. Open the file \trunk\Compiler\OpenModelicaSetup\OpenModelciaSetup.nsi | ||
Change the version number everywhere. | ||
Save the changes. | ||
Close the file. | ||
07. Right click \trunk\Compiler\OpenModelicaSetup\OpenModelciaSetup.nsi and choose Compile NSIS Script. | ||
A dialog will show up showing the compilation details. | ||
08. You get a OpenModelica.exe into \trunk\Compiler\OpenModelicaSetup | ||
Copy it to a release folder with name: | ||
OpenModelica-revision-NUMBER.exe | ||
09. Generate files in a release folder: | ||
See an example here: | ||
http://build.openmodelica.org/omc/builds/windows/nightly-builds/ | ||
- Below, all NUMBER is the Subversion revision number | ||
- OpenModelica-revision-NUMBER.exe | ||
+ from OpenModelica.exe | ||
- OpenModelica-revision-NUMBER-ChangeLog.txt | ||
+ from Show log on subversion, until the first revision, i.e. | ||
in TortoiseSVN: un-check "Hide unrelated changed paths" and | ||
"Stop on copy/rename" and click "Show All". | ||
- OpenModelica-revision-NUMBER-README.txt | ||
+ write the new important stuff here | ||
- OpenModelica-revision-NUMBER-testsuite-trace.txt | ||
+ from trunk\testsuite\testsuite-trace.txt | ||
Push the new build into: | ||
http://build.openmodelica.org/omc/builds/windows/nightly-builds/ | ||
if you have the rights :) and move the old one into: | ||
http://build.openmodelica.org/omc/builds/windows/nightly-builds/older | ||
10. TEST, TEST AND TEST! | ||
- Perfectly would be on a machine with NO VS, NO OMDEV, CLEAN WINDOWS! | ||
- Uninstall your current OpenModelica! | ||
- Delete/backup all your files from c:\OpenModelica[x.y.z] | ||
- Unset environment variable OMDEV (change its name to NOOMDEV) | ||
+ this is needed to make sure no files are missing from | ||
C:\OpenModelica[x.y.z]\MinGW and compilation/simulation | ||
works fine | ||
- Install the new OpenModelica | ||
- test OMShell, OMNotebook, OMEdit, OMPlot*, OMOptim | ||
11. Be extremely proud and glad, you made it! :) | ||
12. Don't forget to re-set NOOMDEV env. var back to OMDEV :) | ||
13. Contact us (OpenModelica@ida.liu.se) or me Adeel Asghar [adeel.asghar@liu.se] | ||
with any comments, suggestions or problems regarding this document! | ||
/* | ||
* RCS: $Id$ | ||
*/ | ||
|
||
--------------------------------------------------------------------------- | ||
How to build the OpenModelica release on Windows using NSIS | ||
--------------------------------------------------------------------------- | ||
|
||
|
||
The following step-by-step guides explain how to | ||
build the OpenModelica setup file on Windows | ||
using the NullSoft Scriptable Install System(NSIS) | ||
|
||
NOTE: for checkout of any of the SVN directories you will need this user/pass: | ||
user: anonymous | ||
pass: none <- write none here | ||
|
||
00. Checkout the sources from Subversion: | ||
https://openmodelica.org/svn/OpenModelica/trunk -> trunk | ||
|
||
Checkout the OpenModelicaSetup directory from Subversion: | ||
https://openmodelica.org/svn/OpenModelica/installers/windows/OpenModelicaSetup | ||
into directory: | ||
\trunk\Compiler\OpenModelicaSetup | ||
IMPORTANT: OpenModelicaSetup HAS TO BE CHECKOUT into \trunk\Compiler\OpenModelicaSetup | ||
since the installer script uses the relative paths. | ||
|
||
01. Update the version number: | ||
in trunk/Compiler/runtime/config.h to "x.y.z" | ||
in trunk/Examples/*.onb | ||
in trunk/doc/*.doc + generate .pdfs | ||
|
||
02. Please do all the steps in README-OMDev-MINGW.txt | ||
use: make clean testlog | ||
zip trunk\testsuite directory into trunk\testsuite.zip! | ||
|
||
03. Additional needed files: | ||
- take qtlibs from: | ||
https://www.ida.liu.se/~adrpo/omc/omdev/qtlibs/ | ||
unpack it, point it by environment variable QTHOME | ||
- svn checkout https://openmodelica.ida.liu.se/svn/OpenModelica/installers/windows/OMDev/tools/mingw | ||
-> to \trunk\build\MinGW | ||
REMOVE MinGW\lib\mlton | ||
REMOVE MinGW\share\doc\mlton | ||
ZIP MinGW\doc\*.* to MinGW\doc\doc.zip and delete them | ||
ZIP MinGW\info\*.* to MinGW\info\info.zip and delete them | ||
ZIP MinGW\man\*.* to MinGW\man\man.zip and delete them | ||
Note that this step will have to be repeated starting from svn checkout | ||
again if anything has changed in svn MinGW directory since last build. | ||
|
||
- build OMShell, OMNotebook, OMPlot, OMOptim, OMPlotWindow using Qt SDK | ||
into $OMDev\tools\OMTools\bin | ||
- update $OMDev\tools\OMTools\qtdlls with the newest from Qt SDK! | ||
|
||
04. Update the version into: | ||
- documentation | ||
- *.onb files | ||
- everywhere you might find it | ||
|
||
05. Download and install NSIS 2.46 from http://nsis.sourceforge.net/Main_Page | ||
|
||
06. Open the file \trunk\Compiler\OpenModelicaSetup\OpenModelciaSetup.nsi | ||
Change the version number everywhere. | ||
Save the changes. | ||
Close the file. | ||
|
||
07. Right click \trunk\Compiler\OpenModelicaSetup\OpenModelciaSetup.nsi and choose Compile NSIS Script. | ||
A dialog will show up showing the compilation details. | ||
|
||
08. You get a OpenModelica.exe into \trunk\Compiler\OpenModelicaSetup | ||
Copy it to a release folder with name: | ||
OpenModelica-revision-NUMBER.exe | ||
|
||
09. Generate files in a release folder: | ||
See an example here: | ||
http://build.openmodelica.org/omc/builds/windows/nightly-builds/ | ||
- Below, all NUMBER is the Subversion revision number | ||
- OpenModelica-revision-NUMBER.exe | ||
+ from OpenModelica.exe | ||
- OpenModelica-revision-NUMBER-ChangeLog.txt | ||
+ from Show log on subversion, until the first revision, i.e. | ||
in TortoiseSVN: un-check "Hide unrelated changed paths" and | ||
"Stop on copy/rename" and click "Show All". | ||
- OpenModelica-revision-NUMBER-README.txt | ||
+ write the new important stuff here | ||
- OpenModelica-revision-NUMBER-testsuite-trace.txt | ||
+ from trunk\testsuite\testsuite-trace.txt | ||
Push the new build into: | ||
http://build.openmodelica.org/omc/builds/windows/nightly-builds/ | ||
if you have the rights :) and move the old one into: | ||
http://build.openmodelica.org/omc/builds/windows/nightly-builds/older | ||
|
||
10. TEST, TEST AND TEST! | ||
- Perfectly would be on a machine with NO VS, NO OMDEV, CLEAN WINDOWS! | ||
- Uninstall your current OpenModelica! | ||
- Delete/backup all your files from c:\OpenModelica[x.y.z] | ||
- Unset environment variable OMDEV (change its name to NOOMDEV) | ||
+ this is needed to make sure no files are missing from | ||
C:\OpenModelica[x.y.z]\MinGW and compilation/simulation | ||
works fine | ||
- Install the new OpenModelica | ||
- test OMShell, OMNotebook, OMEdit, OMPlot*, OMOptim | ||
|
||
11. Be extremely proud and glad, you made it! :) | ||
|
||
12. Don't forget to re-set NOOMDEV env. var back to OMDEV :) | ||
|
||
13. Contact us (OpenModelica@ida.liu.se) or me Adeel Asghar [adeel.asghar@liu.se] | ||
with any comments, suggestions or problems regarding this document! | ||
|
||
Adeel Asghar. |