Charles Browne wrote:I'd like to be able to compile it the way H.G. Muller showed in the below post but I haven't been able to, I guess since this is Windows Me and he showed a way using Windows 2000. But I'm happy being able to do it with a cygwin.mak file.
http://www.open-aurec.com/wbforum/viewt ... 6854#31739
I've made some progress being able to compile Winboard the way that H.G. Muller showed in the above linked to post, the information that he supplied in the above post, he also included, along with a few more commands, in a read me file in his source files.
H.G.Muller in the above linked to post wrote:To share my acquired expertise for compiling under W2000 + Cygwin + gcc:
- Code: Select all
gcc -I. -I.. -O2 -mwindows -mno-cygwin -c *.c
windres --use-temp-file --include-dir .. windres.rc -O coff -o windres.o
gcc -mwindows -mno-cygwin *.o -lwsock32 -lwinmm -o winboard.exe
I was typing the number 0 where it reads -O2 and -O when I should have been typing the upper case letter O (0 and O looked similar in notepad, where I had copy and pasted the instructions). Where it reads windres.rc in the above instructions, it should be winboard.rc (it's only a typo). Winboard.rc is in the source files read me file version of the instructions.
I would think that I did have windres installed on my computer since I was compiling using the cygwin.mak file but after getting errors associated with windres while trying to compile, I did a search for it on my computer and I could not locate it. I did search engine searches to try and get an idea of what windres was and finally installed/reinstalled it by installing/reinstalling the "binutils" package through cygwin.
In the source files read me file version of the instructions H.G. Muller included a strip winboard.exe command. After searching and trying to get a wee bit of understanding of what the strip command was (trying to make sure I wasn't going to blow anything up) I also ran that.
This is what I used, in the order listed below:
- Code: Select all
gcc -I. -I.. -O2 -mwindows -mno-cygwin -c *.c
windres --use-temp-file --include-dir .. winboard.rc -O coff -o windres.o
gcc -mwindows -mno-cygwin *.o -lwsock32 -lwinmm -o winboard.exe
strip winboard.exe
The resultant compiled exe file compared to the cygwin.mak file compile was much smaller in size.
In my limited understanding of things I think others are most likely correct when they say that Windows ME isn't a good platform to compile on, but I'm happy with what has been done the last couple of days since I really expected total failure from the beginning.
I do have a question regarding the backend.c file for 4.3.14, and I will try to post that question in this thread later.