magiblot / tvision

A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
Other
2k stars 151 forks source link

Possible to Cross-Compile? #17

Closed sduensin closed 3 years ago

sduensin commented 3 years ago

I was hoping to cross-compile this for DOS (from Linux) using DJGPP (from https://github.com/andrewwutw/build-djgpp) but my CMake skills are practically non-existent. Is this possible without a ton of effort?

Thanks!

magiblot commented 3 years ago

Hi Scott!

I'm sorry to disappoint you, but no, this is not possible without a ton of effort. It's not because of CMake, but because of the source code: DOS support here has been inherited from the original Turbo Vision, which uses Borland-specific features and assembly. So currently the only way to compile for DOS is to use Borland C++.

https://github.com/set-soft/tvision does have DJGPP support, although you probably already know that port.

Cheers.

sduensin commented 3 years ago

I figured that was the case. I'd much rather have a modern TV than djgpp. I'll just have to automate compiling via DOSBox or something. Thanks again!

magiblot commented 3 years ago

You are welcome.

I'll just have to automate compiling via DOSBox or something.

I haven't been able to build this with dosemu2 or DOSBox. In order to build with Borland C++ I use a 32-bit Windows XP VM and store the repository in a shared folder.

DOS is the least tested platform in this port, so it may have regressions. If you find something that's not quite right, feel free to submit an issue.

Have fun!