Author Topic: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?  (Read 4959 times)

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 367
  • Karma: +24/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #15 on: October 25, 2024, 07:15:13 am »
Attached is a forwarder that eliminates the need for the real 'netscape.exe'.

Unzip, then place the dummy 'netscape.exe' into either your Firefox or Seamonkey directory. You can invoke it from any directory using a f/q pathname (or you can add your FF/SM directory to the PATH).

When it starts, it will change to whatever directory it's in, then see if FF or SM is present. If so, the browser will be started; if not, it will terminate.

Lars

  • Hero Member
  • *****
  • Posts: 1367
  • Karma: +70/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #16 on: October 25, 2024, 02:07:51 pm »
The FI browser plugin largely cripples the capabilities of Feature Install.
For example, you are very limited in selecting/deselecting packages (for VAC 3.6.5 the only thing you can do is to install or not install the toolkit). Plus it is more of a hassle rather than help.

As Alex Taylor has presented, using FI via the command line (clifi.exe) is not too difficult and my REXX scripts make use of that. They even avoid the need for any manual interaction (apart from selecting/deselection of packages which I think is a fair enough reason for manual interaction).
The fixes also install via REXX scripts and FI is smart enough to find out what to update and where the original install is located.
« Last Edit: October 25, 2024, 02:10:13 pm by Lars »

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 398
  • Karma: +6/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #17 on: October 25, 2024, 02:09:36 pm »
There is zero need for Netscape when installing Feature Install based products. See my tutorials on the subject:

Part 1 describes using the WPS Install Objects. It actually uses VAC 3.65 as an example, so you can just install it using the example CXXVARS.RSP I listed. 

Part 2 describes how to use FI in CID or 'backend' mode so you don't need to mess with the Install Objects at all.

IMO Feature Install is actually quite a neat install backend once you take Netscape out of the picture, although there is a certain amount of caution involved when using any program that runs in the WPS process (as FI does).  I wrote a couple of replacement GUIs (generally in VX-REXX) for the FI backend to install specific products.  My HPFS386 installer is one such example: https://hobbesarchive.com/?detail=/pub/os2/util/system/HPFS386Installer_2009-04-04.zip

(FWIW I much prefer this approach over rewriting the whole install in something like WarpIN.)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #18 on: October 25, 2024, 09:58:14 pm »
Thanks for the feedback

Hi Martin,

If you are looking for a .wis example that modifies installed files, extract vboxadd.wis from the VirtualBox Additions wpi on your ArcaOS install media.

This .wis uses cube to do the file edits because cube is always installed by ArcaOS.  However, you can always write your own REXX script to do the edits.

Thanks Steven, I got the vboxadd.wis and just found out that I don't know a thing about cube. I guess I will like to look at  REXX sample.

I think I need something that does:
1) Opens the $(1)\bin\SETENV.CMD file
2) Find the "SET CXXMAIN=C:\programs\Ibmcxxo"
3) Replace the path for $(1)

(Where $(1) is the path that the user selected in the WarpIn installer GUI)

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #19 on: October 25, 2024, 10:41:44 pm »
Hello  Neil
While I don't know about VAC 3.6, I know you should use the one from OS/2 for VAC 3.08.

I just noticed that the thread title is misleading.  Should be "IBM C and C++ Compiler". I'm more focused to have an icc compiler installer instead of the VisualAge IDE.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Steven Levine

  • Newbie
  • *
  • Posts: 48
  • Karma: +10/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #20 on: October 28, 2024, 08:28:03 am »
Martin,

Cube is a REXX script.  However, if you really want to invent your own, a typical file read loop looks like:

/*=== DoReadFile(fileName) Read file and process code snippet ===*/

DoReadFile:
  parse arg fileName
  say 'Reading' fileName
  call stream fileName, 'C', 'OPEN READ'
  do while lines(fileName)

    line = linein(fileName)
    say line

  end /* while lines */

  call stream fileName, 'C', 'CLOSE'

  return

/* end DoReadFile */

You will need to add logic to find the drive letter in the set statement, replace the drive letter and rewrite the statement in the file.  Seems like a lot of work to me compared to reading the cube docs and figuring out how to change the vboxadd.wis line

         EXECUTE="CONFIGSYS|cube { CL #DEVICE=?:\OS2\BOOT\MOUSE.SYS# WITH #rem# (ALL } ?:\CONFIG.SYS (DLM #"

to do what you need.  The above changeline command changes the device statement to a rem.  You can modify this to find the set statement in setenv.cmd.  The result will be something like:

  EXECUTE="cube { CL #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(1)# } $(1):\bin\setenv.cmd (DLM #"

The above is untested, but should be close to what you need.




Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #21 on: October 28, 2024, 01:19:20 pm »
Thanks Steven.

You showed me that CUBE is very efficient to modify the config.sys. I will try to sample and read more about it to include it on the installer.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #22 on: October 28, 2024, 11:26:56 pm »
Hello

  EXECUTE="cube { CL #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(1)# } $(1):\bin\setenv.cmd (DLM #"

Thanks for the help. I'm trying to understand CUBE.

I run it on the command line, since WarpIn didn't showed me any log (or don't know where to see it).

Quote
[C:\IBMCXXO\BIN]cube { CL #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(
1)# } setenv.cmd (DLM #"
CUBE 3.0 applying  CL #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(1)#
 to setenv.cmd on 28 Oct 2024 14:32:54

>>>  CL #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(1)#
Changed line 2
  old: "SET CXXMAIN=C:\programs\Ibmcxxo"
  new: "SET CXXMAIN=$(1) SET CXXMAIN=C:\programs\Ibmcxxo"
OS/2 COMMAND CUBE ended. 1 changes applied

It seems it didn't replace "SET CXXMAIN=C:\programs\Ibmcxxo", it added all the line ""SET CXXMAIN=$(1) SET CXXMAIN=C:\programs\Ibmcxxo"

But this one worked for me (from the command line to test):
Quote
EXECUTE="cube { RS #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(1)# } setenv.cmd (DLM #"

But it works from the command line, not from the WarpIn installer. I need to check what else I'm missing.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

davidrg

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #23 on: October 28, 2024, 11:50:30 pm »
Hi Neil

By the way, what is the legal status of Visual Age C++?
It is "Abandonware" but I don't plan to make it public if I succeed, only the .WIS file and file structure for people to create their own.

Regards

Its a shame Arca Noae never negotiated anything about this with IBM. I'd gladly buy a copy if they could sell it to me - it would have made getting Kermit 95 for OS/2 going again so much easier if I could have used the original compiler Columbia used rather than having to switch to Open Watcom

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5079
  • Karma: +117/-1
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #24 on: October 29, 2024, 12:45:24 am »
Hi Neil

By the way, what is the legal status of Visual Age C++?
It is "Abandonware" but I don't plan to make it public if I succeed, only the .WIS file and file structure for people to create their own.

Regards

Its a shame Arca Noae never negotiated anything about this with IBM. I'd gladly buy a copy if they could sell it to me - it would have made getting Kermit 95 for OS/2 going again so much easier if I could have used the original compiler Columbia used rather than having to switch to Open Watcom

There are copies floating around the internet that you could download or you could ask here for a donation of the package.
IBM doesn't seem to care about this old software.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #25 on: October 29, 2024, 02:44:43 am »
Hello

Here it is the updated .wis file, but it is like cube is not executing, or not working when I run the install procedure.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Steven Levine

  • Newbie
  • *
  • Posts: 48
  • Karma: +10/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #26 on: October 29, 2024, 06:52:07 pm »
Sorry, my bad.  I remembered CL as ChangeLine, which it is not.  CL is an alias for CommentLine, which changes the matched line to a comment line.  Your REPSTRING should work.  Another option would be REPLINE.

Your REPSTRING looks correct to me.  What does the WarpIN log report it did?

Note that vboxadd.wis expects to run cube.exe, which is cube.cmd converted to an executable.  If you happen to have a copy of cube.cmd in the PATH, it may cause problems.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5022
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #27 on: October 30, 2024, 03:58:28 am »
Hello

I checked the log:

Code: [Select]
20:42:29.82 Created WPS object "Read Me", class "WPProgram", location "<WP_IBMC>", setup "EXENAME=e.exe;PARAMETERS=C:\ibmcxxo\readme.txt;OBJECTID=<IBMCReadme>;"
20:42:29.82 HOBJECT is 0x241BF
20:42:29.89 Executed "CMD.EXE /c cube { RS #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=C:\ibmcxxo# } C:\ibmcxxo:\bin\setenv.cmd (DLM #"

Install log closed.

It seems the issue was here "C:\ibmcxxo:\bin\setenv.cmd" with the extra colon. I removed it and seems to work as a I want.

Now it looks like:
Quote
EXECUTE="cube { RS #SET CXXMAIN=C:\programs\ibmcxxo# WITH #SET CXXMAIN=$(1)# } $(1)\bin\setenv.cmd (DLM #"

I will keep working the rest of the installer. Thanks Steven.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Lars

  • Hero Member
  • *****
  • Posts: 1367
  • Karma: +70/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #28 on: October 31, 2024, 01:04:59 am »
See here:

http://www.hobbesarchive.com/Home/Download?path=/Hobbes/pub/incoming/VAC_3-6-5_InstallFix_2024-10-31.zip

Once you copied the CD-ROM to a temp dir and dropped the ZIP over it, you just need to get the two Fixpak 2 files and drop them into the FIXPAK2 folder.
The main folder contains the main install REXX script, the FIXPAK2 folder contains the two REXX install scripts to install the 2 fixpak files.
« Last Edit: October 31, 2024, 01:07:32 am by Lars »

SoundChaser

  • Newbie
  • *
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Re: VisualAge C++ 3.6.5 (+ Fix2) - WarpIn or RPM?
« Reply #29 on: November 05, 2024, 09:44:49 pm »
In the spirit of welcoming back hobbyist developers who've been away for so long, wouldn't be worth it to summarize the necessary steps and perhaps have a decision tree of which toolset to use, which packages to download in a concise procedures?

a) porting from Linux/Unix? Use bww kLIBC + gcc
b) porting from DOS/Win16?
      MSC/MASM? Stick with it or migrate to Watcom (with link to the "right" one)
      Watcom? Stick to Watcom
      Borland? Migrate to Watcom if feasible
c) porting from Win32? Odin?! Which compiler?
d) Writing drivers? Watcom?
e) OS2 app using VACPP? use VAC 3.6.5fp2?

I think many developers may be put down by the friction of the toolset setup? I understand it can be part of the fun, but sometimes it's really in the way for getting things done. Hobbyist means time available to tinker is limited...