Author Topic: cross-os2emx  (Read 2792 times)

David McKenna

  • Hero Member
  • *****
  • Posts: 929
  • Karma: +39/-0
    • View Profile
Re: cross-os2emx
« Reply #15 on: March 15, 2026, 10:18:04 pm »
 I'm not a programmer, but this seems like a major accomplishment to make building complex apps for OS/2 (or any apps) faster and even possible because of the larger memory available. Thanks Mr. Ko! One thing I wonder: does this also mean that any dependencies a program needs to be built do not need to be first be ported to OS/2? For example, QTWebEngine needs node.js to be built. Would you just use the node.js in Linux and this new tool will output OS/2 binaries using that, or do all dependencies still need to be converted to OS/2 first.

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5725
  • Karma: +150/-1
    • View Profile
Re: cross-os2emx
« Reply #16 on: March 15, 2026, 11:48:08 pm »
Hi David. As far as I can see, it is going to depend on whether OS/2 specific features are needed. eg, Python or Perl would generally work but our ports have OS/2 stuff that a Linux build wouldn't have. Generally they could be added.
Don't know node.js but it might just work. I'm planning on trying to build Qt5 on Linux and see how far it gets.
Really, eventually we need an OS/2 node.js anyways as a bunch of stuff uses it.
There will be other OS/2 stuff that needs rebuilding on Linux, tried FFmpeg and the stock build died from no lxlite.
Rexx is another consideration, thinking of trying to build FF for a test, there's a REXX script where the build would have to be adjusted to use the sh version and I think a couple of batch files that might need converting. It also depends on Lxlite during the packaging step. Need to see if there's a Linux Pascal that will build a Linux lxlite.

David McKenna

  • Hero Member
  • *****
  • Posts: 929
  • Karma: +39/-0
    • View Profile
Re: cross-os2emx
« Reply #17 on: March 16, 2026, 12:26:33 am »
 Hey Dave,

  OK, so it might help with dependencies - great! I thought lxlite was not necessary, just a convenience, but maybe I'm wrong? I seem to remember Paul building stuff without it - just made the binaries bigger. Couldn't that be done inside OS/2 after the build?

Regards,

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5725
  • Karma: +150/-1
    • View Profile
Re: cross-os2emx
« Reply #18 on: March 16, 2026, 03:03:57 am »
Yes, it is easy enough not to use lxlite, just some makefile editing, and there's omfstrip or whatever it is called. Same with other things like REXX scripts, which might need porting to sh scripts or install Regina Rexx, which would still need minor makefile editing. Rexx.cmd becomes rexx.rx.
Need to differentiate between native and cross compiling some how to have some if else logic.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5725
  • Karma: +150/-1
    • View Profile
Re: Please test os2emx-cross-toolchain
« Reply #19 on: March 18, 2026, 05:33:52 am »
Hi Myung-Hun,

Thank you very much for this, it is ideal for me as I do most of my stuff under Ubuntu now, with OS/2 in a VirtualPC.
Will set it up and give it a try over the next week.

If you get a chance, try to build PMMail with this environment.

Where is the source?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5725
  • Karma: +150/-1
    • View Profile
Re: cross-os2emx
« Reply #20 on: March 18, 2026, 06:05:25 am »
Running ./cmake --version results in,
Code: [Select]
dave@dave-ThinkCentre-M910s:~/opt/os2emx/bin$ cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/home/dave/opt/os2emx/share/cmake-3.28
cmake version 3.28.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

And sure enough, there is only ~/opt/os2emx/share/cmake-3.31, along with sibling cmake directory.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5725
  • Karma: +150/-1
    • View Profile
Re: cross-os2emx
« Reply #21 on: March 18, 2026, 06:18:37 am »
Docview perhaps should be added to cross-os2emx to view inf files. Can you test if it works on your dist.