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 massimo ceraolo, 9 years ago

Summary: Allow OM32 and OM64 to cohesist on the same PCAllow both OM32 and OM64 to function on the same PC

comment:2 by Adrian Pop, 9 years ago

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\OMEdit

OMEdit32.bat

set OPENMODELICAHOME=C:\Openmodelica32
%OPENMODELICAHOME%\bin\OMEdit

comment:3 by Christoph <buchner@…>, 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 Martin Sjölund, 9 years ago

Adrian: Why not just remove the environment variables from the installer?

comment:5 by Adrian Pop, 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 Martin Sjölund, 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?

in reply to:  2 comment:7 by massimo ceraolo, 9 years ago

I confirm that using the two bats works 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\OMEdit

OMEdit32.bat

set OPENMODELICAHOME=C:\Openmodelica32
%OPENMODELICAHOME%\bin\OMEdit
Version 0, edited 9 years ago by massimo ceraolo (next)

comment:8 by Francesco Casella, 7 years ago

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.