jhhoward / MicroWeb

DOS Web browser for 8088 class machines
GNU General Public License v2.0
436 stars 31 forks source link

cant compile in FreeDOS or GNU/Linux #27

Open sparky4 opened 2 months ago

sparky4 commented 2 months ago

dos needs lfn and GNU/Linux needs / not \

jhhoward commented 2 months ago

I've tried getting things to compile in DOS before but also have a problem with the limit of how many arguments can be passed to the linker. I would probably have to change things to build to library modules and then link the modules instead of trying to link all of the files.

Are you able to share where you are getting an error that a \ is being used instead of / for Linux? Is it makefile, somewhere in the source itself etc

iguessthislldo commented 2 months ago

I've been trying to get MicroWeb compiled in Linux as well because I wanted to see if I could add support for Tandy Graphics. I've also been trying to use the Open Watcom v2 fork, but that's a separate set of issues. The error I get from the unmodified Makefile is:

Error(F38): (src\MicroWeb.cpp) does not exist and cannot be made from existing files
Error(E02): Make execution terminated

https://github.com/jhhoward/MicroWeb/blob/b7f68d8c0471ac8de68096070cd58db2f04cb544/Makefile#L34

This path actually has two problems on Linux, one is the path separator and the other is the actual file is named Microweb.cpp, not MicroWeb.cpp. There's at least one other case-sensitive issue here:

https://github.com/jhhoward/MicroWeb/blob/b7f68d8c0471ac8de68096070cd58db2f04cb544/src/VidModes.h#L5

where the file's real name is DataPack.h. There might be more path issues, but I still haven't gotten Open Watcom v2 to complete the build yet.

chabala commented 2 months ago

I was able to compile with Watcom 1.9 in linux with some small tweaks, but I have not gotten around to making a PR for them.