OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: mauro on January 10, 2020, 03:47:58 pm

Title: Odin on Warp 4.52 virtualbox
Post by: mauro on January 10, 2020, 03:47:58 pm
Hi all, I've installed Odin 0.9 and all packages called "Odin" in ANPM  (netlabs repository) and I think all went well, no issues, no error and a folder "Odin" appeared un the desktop.
But I cannot run a win32 installer, just tried Paint Shop Pro 7 which was an XP (win32) version , and I get the message "cannot find file: check to ensure the path and filename are correct".
Maybe I missed something.  I've also installed XWorkplace and XSystray
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Laurence Pithie on January 10, 2020, 04:11:50 pm
The odin-win32k package is no longer supported and isn't recommended for general use. The supported method is to use the pe program to launch the windows executable. pe <windowsprog>. Having said that the installer dies complaing about disk space requirements in install.ini when I tried that.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Martin Iturbide on January 10, 2020, 05:22:49 pm
Hi Mauro

Please let me know your experience with Paint Shop Pro 7 to also include it on the OS2World wiki (Odin Compatible Applications (https://www.os2world.com/wiki/index.php/Odin_Compatible_Applications#Graphics)), or maybe create a page for it.

Regards
Title: Re: Odin on Warp 4.52 virtualbox
Post by: ivan on January 10, 2020, 05:28:15 pm
Hi mauro,

The 'not enough disk space' is caused by you having too large a partition that you are trying to install it in.  Remember back in XP days hard disks were quite small so the program installer checked for enough space and the calculations don't work with larger disks.

The best way to get round that problem is to copy a working install and transplant it to where you want it 'some disk\odin\program files' as an example.

The other thing, as Laurence pointed out is to use PE.exe to run the program.  While I don't have Paint Shop Pro 7 installed I do have IrfanView running under odin without any problems using a program object (see attached).
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 11, 2020, 10:48:43 am
Hi mauro,

The 'not enough disk space' is caused by you having too large a partition that you are trying to install it in.  Remember back in XP days hard disks were quite small so the program installer checked for enough space and the calculations don't work with larger disks.

The best way to get round that problem is to copy a working install and transplant it to where you want it 'some disk\odin\program files' as an example.

The other thing, as Laurence pointed out is to use PE.exe to run the program.  While I don't have Paint Shop Pro 7 installed I do have IrfanView running under odin without any problems using a program object (see attached).

Hi Ivan, there is no error message about disk space, I'm getting the "cannot find file: check to ensure the path and filename are correct" error message to my attempts of running win 32 software (XP).  However my virtual machine partition size is 5 Gb, not too much I believe.
Thanks
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 11, 2020, 10:50:08 am
The odin-win32k package is no longer supported and isn't recommended for general use. The supported method is to use the pe program to launch the windows executable. pe <windowsprog>. Having said that the installer dies complaing about disk space requirements in install.ini when I tried that.

Hi Laurence, this is interesting, I'll look for it and try.
Thanks
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 11, 2020, 10:55:45 am
Hi Mauro

Please let me know your experience with Paint Shop Pro 7 to also include it on the OS2World wiki (Odin Compatible Applications (https://www.os2world.com/wiki/index.php/Odin_Compatible_Applications#Graphics)), or maybe create a page for it.

Regards
Hi Martin, I'll be glad to do it if I ever succeed to make win32 apps work in OS2.  Meantime can tell that PSP7 is my favourite graphyc editor and I'm using it also in Windows 10.  Found no other application for image editing so complete/fast/friendly, not even its next versions
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 11, 2020, 03:47:43 pm
The odin-win32k package is no longer supported and isn't recommended for general use. The supported method is to use the pe program to launch the windows executable. pe <windowsprog>. Having said that the installer dies complaing about disk space requirements in install.ini when I tried that.

Hi Laurence, this is interesting, I'll look for it and try.
Thanks

Hi Laurence, in fact I followed your suggestion using pe.exe to launch the PSP7 Windows installer in a command line and, after Setup program has began to work, it ends like you described, complaining of insufficient disk space ("please increase the disk space requisite in Setup.ini and try again")
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Dave Yeo on January 11, 2020, 05:23:22 pm
Hi Mauro, it is probably a flaw in the installer, it uses a signed long and when there is more then 2GB's of free space, the program thinks it is a negative number. Try on a partition smaller then 2GB. The limit might be 4GB before overflow in which case less then 4GB would work.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 11, 2020, 05:55:37 pm
Hi Mauro, it is probably a flaw in the installer, it uses a signed long and when there is more then 2GB's of free space, the program thinks it is a negative number. Try on a partition smaller then 2GB. The limit might be 4GB before overflow in which case less then 4GB would work.

thank you Dave, if this is the matter I'll give up, it is more important for me working in an OS2 with a good amount of space available rather than reduce partition size for some win32 application which I could also use outside of it, and maybe more confortably.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: ivan on January 11, 2020, 07:55:38 pm
Hi mauro,

Out of curiosity I 'borrowed' PSP 7 from a friend (I copied the PSP7 directory from his notebook) and set it up to run with ODIN.  Trying to start it I got an error message saying that a DLL was missing.  Copied the DLL from the notebook (XP) and PSP still will not run.

I think we may be out of luck trying to run this with ODIN.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Dave Yeo on January 11, 2020, 08:52:08 pm
There's ftp://hobbes.nmsu.edu/pub/windows/psp311.zip (http://ftp://hobbes.nmsu.edu/pub/windows/psp311.zip) which IIRC does run on Odin. Untested here. Other versions might also be worth trying
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 11, 2020, 09:24:36 pm
Hi mauro,

Out of curiosity I 'borrowed' PSP 7 from a friend (I copied the PSP7 directory from his notebook) and set it up to run with ODIN.  Trying to start it I got an error message saying that a DLL was missing.  Copied the DLL from the notebook (XP) and PSP still will not run.

I think we may be out of luck trying to run this with ODIN.

I'm finding error message for missing file/dll by running every win32 executable software (both standalone and installer).
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Doug Clark on January 12, 2020, 12:23:27 am
mauro,

I assume you have run the ODIN/Win32 HELLOWORLD.exe program to test that ODIN is running - or in this case not running - and are still getting the message about missing file/DLL

If you install the debug package and run it with WIN32LOG=1  you will probably see which specific DLL or file is missing in the log files.  ODIN generates LOTS of messages in the log files, but if you look through them you will see the file that cannot be loaded.

The debug package looks to be available on ANPM

It is been awhile since I used the debug package. I believe I installed it from *.wpi or *.zip package. I also seem to remember that I installed it in a separate director(s) and adjusted the LIBPATH statement to switch between production and debug.  You may or may not be able to do that with ANPM. If you don't want to overwrite your normal package find a ZIP or WarpIN package  for debug and use that.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Dave Yeo on January 12, 2020, 02:51:16 am
One potential problem with Odin is that the only love it has got for a long time has been Bitwise when porting Java, Flash and such and they didn't have time or motivation to worry about running other software.
It might be better to install an older Odin zip, setup BEGINLIBPATH and LIBPATHSTRICT and go that way.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 12, 2020, 11:13:13 am
mauro,

I assume you have run the ODIN/Win32 HELLOWORLD.exe program to test that ODIN is running - or in this case not running - and are still getting the message about missing file/DLL

Hi Doug, no I did not know and haven't tried to run it, is it already included in the Odin installation?

Quote
If you install the debug package and run it with WIN32LOG=1  you will probably see which specific DLL or file is missing in the log files.  ODIN generates LOTS of messages in the log files, but if you look through them you will see the file that cannot be loaded.
The debug package looks to be available on ANPM

I've installed with ANPM the debug package and any other package having Odin in its title
Quote

It is been awhile since I used the debug package. I believe I installed it from *.wpi or *.zip package. I also seem to remember that I installed it in a separate director(s) and adjusted the LIBPATH statement to switch between production and debug.  You may or may not be able to do that with ANPM. If you don't want to overwrite your normal package find a ZIP or WarpIN package  for debug and use that.

Ok, suppose I succeed to understand what dll is missing (also if this is different from the PSP7 installation error claiming a disk space issue which I believe cannot be solve), does it state the right path where to add the dll ?

Thank you
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 12, 2020, 11:27:56 am
There's ftp://hobbes.nmsu.edu/pub/windows/psp311.zip (http://ftp://hobbes.nmsu.edu/pub/windows/psp311.zip) which IIRC does run on Odin. Untested here. Other versions might also be worth trying

"page not found"
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Tom on January 12, 2020, 12:02:10 pm
There's ftp://hobbes.nmsu.edu/pub/windows/psp311.zip (http://ftp://hobbes.nmsu.edu/pub/windows/psp311.zip) which IIRC does run on Odin. Untested here. Other versions might also be worth trying

"page not found"

Use https://hobbes.nmsu.edu/download/pub/windows/psp311.zip instead

(I used the search function for psp311)
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 12, 2020, 05:02:58 pm
mauro,

I assume you have run the ODIN/Win32 HELLOWORLD.exe program to test that ODIN is running - or in this case not running - and are still getting the message about missing file/DLL

Hi Doug, no I did not know and haven't tried to run it, is it already included in the Odin installation?

Quote
If you install the debug package and run it with WIN32LOG=1  you will probably see which specific DLL or file is missing in the log files.  ODIN generates LOTS of messages in the log files, but if you look through them you will see the file that cannot be loaded.
The debug package looks to be available on ANPM

I've installed with ANPM the debug package and any other package having Odin in its title
Quote

It is been awhile since I used the debug package. I believe I installed it from *.wpi or *.zip package. I also seem to remember that I installed it in a separate director(s) and adjusted the LIBPATH statement to switch between production and debug.  You may or may not be able to do that with ANPM. If you don't want to overwrite your normal package find a ZIP or WarpIN package  for debug and use that.

Ok, suppose I succeed to understand what dll is missing (also if this is different from the PSP7 installation error claiming a disk space issue which I believe cannot be solve), does it state the right path where to add the dll ?

Thank you
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 12, 2020, 05:18:28 pm
There's ftp://hobbes.nmsu.edu/pub/windows/psp311.zip (http://ftp://hobbes.nmsu.edu/pub/windows/psp311.zip) which IIRC does run on Odin. Untested here. Other versions might also be worth trying

"page not found"

Use https://hobbes.nmsu.edu/download/pub/windows/psp311.zip instead

(I used the search function for psp311)

Thank you, I've downloaded and installed it with no problems, but it runs with WinOS2 (16 bit), nothing to do with Odin and win 32 bit applications
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Doug Clark on January 21, 2020, 01:30:10 am
Mauro,

I have attached a zip file with a couple of small simple Win32 apps you can use to test ODIN. They are in testw32.zip. Unzip them into a directory, and run them with PE.EXE, e.g.

PE THRDDEMO.EXE

PE  FONTDRAW.EXE

I have also attached ODINZPP.ZIP, which contains the HELLOWORLD.EXE I mentioned.  It has been a while since I installed ODIN, so I went back and found the app and ran it on my machine.
ODINAPP.ZIP is actually designed to distribute some microsoft DLLs that cannot be distributed without an application - hence the HELLOWORLD.EXE app. The zip package contains the app and the DLLs, and an installation program. If you can run the installation program then ODIN is working, since the install program (SETUP.EXE) is  a WIN32 program.

The problem I had in running HELLOWORLD.EXE is it doesn't run very well. Sometimes it starts but nothing shows up - the main window is invisible. I had to restart the desktop in order to get the window to display.

I installed the debug version using ANPM in order to see if I could get the same output I remember getting before. I haven't tracked that down yet - but I will post when I conclude that attempt.  I did notice that both the "normal" version of ODIN and the debug version are available through RPM/ANPM.  As you know the regular version is libodin.386 and the debug is odin-debuginfo.i686  (I don't see the libodin.i386 in the list of available packages on ANPM - but it does show up with a YUM LIST *ODIN*    I don't know it I am missing it in the list or there is a bug in the ANPM GUI.

Title: Re: Odin on Warp 4.52 virtualbox
Post by: Dave Yeo on January 21, 2020, 03:00:05 am
I think odin-debug just contains the debug symbols for using in a debugger or exceptq.
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 21, 2020, 09:02:19 pm
Mauro,

I have attached a zip file with a couple of small simple Win32 apps you can use to test ODIN. They are in testw32.zip. Unzip them into a directory, and run them with PE.EXE, e.g.

PE THRDDEMO.EXE

PE  FONTDRAW.EXE

I have also attached ODINZPP.ZIP, which contains the HELLOWORLD.EXE I mentioned……….

Hi Doug, thank you for the test files provided.  By reading the given suggestions I decided meantime to downgrade the Odin version to the 0.8.9, said to be more reliable.
I could finalize the helloworld.exe installation (the application just consists in a white empty window with its program menu, isn't it?) and  both THRDDEMO.EXE and FONTDRAW.EXE successfully run after PE execution command. So I think it mostly works, even if Paint Shop Pro 7 still shows the insufficient disk space error message which interrupts the installation. I knew that not all of the win32 apps can be successfully handled by Odin, or at least they would need appropriate fixing solutions, it should be a dll providing matter above all
Title: Re: Odin on Warp 4.52 virtualbox
Post by: Sandra Asja Eickel on January 21, 2020, 09:38:24 pm
The insufficient disk space problem means usually, that the program is using a signed 32bit value and the free space modulo 4GB is between 2 and 4 GB, which causes the value to be treated as negative. This can be fixed be filling up the hard disk. For DOS programs there is a tool that reports always less than 2GB.

Greetings
Sandra-Asja
Title: Re: Odin on Warp 4.52 virtualbox
Post by: mauro on January 22, 2020, 10:27:05 pm
The insufficient disk space problem means usually, that the program is using a signed 32bit value and the free space modulo 4GB is between 2 and 4 GB, which causes the value to be treated as negative. This can be fixed be filling up the hard disk. For DOS programs there is a tool that reports always less than 2GB.

Greetings
Sandra-Asja

Hi Sandra, thanks for the indications. I've tried both the situation of free disk space less than 2 Gb and more than 4 Gb, nothing worked, insufficient disk space warning in PSP7 installation still appears