jhhoward / MicroWeb

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

Error in wmake #10

Closed SuperMaxusa closed 2 months ago

SuperMaxusa commented 2 years ago

Hello, I decided to try compile MicroWeb in DOSBox 0.74-3, but i getting this error: mw

How I can fix this error? OpenWatcom 1.9, target: DOS

Thanks for this project :)

SuperMaxusa commented 2 years ago

Windows 10: w

jhhoward commented 2 years ago

I haven't tried compiling in DOS so unsure why it is failing there.

For Windows, it looks like you don't have all of your environment variables configured for Watcom (as it is failing to include standard C header files)

If you look in the build.bat script, it sets the environment variables needed for compilation (assuming Watcom is installed at C:\WATCOM)

For reference these are the variables that are set: set PATH=c:\watcom\binnt;%PATH% set INCLUDE=c:\watcom\h set WATCOM=c:\watcom set EDPATH=c:\watcom\eddat set WIPFC=c:\watcom\wipfc set LIBDOS=c:\watcom\lib286\dos;c:\watcom\lib286

I believe the INCLUDE path is missing from your setup as this is where the compiler will need to look to find stdio.h, stlib.h, stdint.h etc

SuperMaxusa commented 2 years ago

I tried compiling on Windows XP SP3 x32 but OpenWatcom cannot find the source code. Also I tried write environment variables manually but it did not help. image

jhhoward commented 2 years ago

This looks strange because wmake is failing to find the compiler executable (wpp.exe). It should be located in c:\watcom\binnt

If you just try running wpp.exe from the command prompt without any arguments does it work? It should print all of the available command line options.

SuperMaxusa commented 2 years ago

I noticed that wpp.exe is installed only in the version for MS-DOS. Maybe because of this the problem? wpp

jhhoward commented 2 years ago

The binaries in the WATCOM\binw directory are the DOS versions. You will need to use the binaries in WATCOM\binnt if you are compiling in Windows. Compiling in DOS is currently not supported for various reasons.