Opened 9 years ago
Closed 7 years ago
#3889 closed defect (wontfix)
Allow both OM32 and OM64 to function on the same PC
Reported by: | massimo ceraolo | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | *unknown* | Version: | |
Keywords: | Cc: |
Description
A lot of us is currently making comparisons between 32bit and 64 bit of OM.
Some comparisons involve time measuremaments, that are to be performed on the same PC to be significant.
Because of this it would be useful to have on the same PC both versions.
Using Virtual machines does not help since they affect performance.
In the past I got the suggestion to do as follows:
- install a version (say on Openmodelica64)
- rename the folder (say Openmodelica64_)
- install the new version in a new folder (say Openmodelica32)
- rename the first folder again (say again to Openmodelica64).
This has worked for a while, but does not work any more.
In fact, when I run the 64 bit version, OM recalls something from the 32 bit one, and conflicts arise.
Is it possible to find a way, without spending too much time on this, to allow us to use both a 32bit and a 64 bit OM version on the same PC?
Change History (8)
comment:1 by , 9 years ago
Summary: | Allow OM32 and OM64 to cohesist on the same PC → Allow both OM32 and OM64 to function on the same PC |
---|
follow-up: 7 comment:2 by , 9 years ago
comment:3 by , 9 years ago
I'm guessing this procedure can be generalized to install any two (or more) OM versions side-by-side (e.g. 1.9.6 release and 1.10-dev-XXX)?
comment:4 by , 9 years ago
Adrian: Why not just remove the environment variables from the installer?
comment:5 by , 9 years ago
We could do that, but then we break some compatibility with other tools (MDT, OMPython) which search for the OPENMODELICAHOME.
comment:6 by , 9 years ago
Then perhaps we should not look for OPENMODELICAHOME if we detect a valid installation by just using the omc.exe and only use OPENMODELICAHOME as a hint for other tools?
comment:7 by , 9 years ago
I confirm that using the two bats work smoothly on my system.
I do not close the ticket just in case the developers want to find a solution that does not require users to manually set batch files.
Thanks!
Replying to adrpo:
The installer sets the OPENMODELICAHOME variable. If you remove it then it should be possible to run the different versions.
Alternatively you can make OMEdit32.bat and OMEdit64.bat which sets the OPENMODELICAHOME before running OMEdit:
OMEdit64.bat
set OPENMODELICAHOME=C:\Openmodelica64 %OPENMODELICAHOME%\bin\OMEditOMEdit32.bat
set OPENMODELICAHOME=C:\Openmodelica32 %OPENMODELICAHOME%\bin\OMEdit
comment:8 by , 7 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I guess Windows 32-bit will inevitably be obsolete, so there's hardly a chance that we can invest time on this issue.
Feel free to reopen it if you think it's still important for you.
The installer sets the OPENMODELICAHOME variable. If you remove it then it should be possible to run the different versions.
Alternatively you can make OMEdit32.bat and OMEdit64.bat which sets the OPENMODELICAHOME before running OMEdit:
OMEdit64.bat
OMEdit32.bat