Solution: How to build on windows

73 views
Skip to first unread message

Dr. Arik Raffael Funke

unread,
Feb 24, 2011, 5:10:54 AM2/24/11
to mongoose-users
Hi,

this is in reply to my own question yesterday. The windows target of the
makefile of mongoose is broken. To build follow the following steps:

1. Install "Visual C++ Express"
2. Install "Windows SDK for Windows 7"

3. download cyassl

4. modify makefile as follows:
- set: VC= "C:\Program Files\Microsoft Visual Studio 10.0\VC"
- set: CYA= cyassl-1.8.0
(i.e. path to the cyassl library just downloaded)
- delete the leading "cl" in the line
CL= cl /MD /TC /nologo $(DBG) /Gz /W3 /DNO_SSL_DL
to read:
CL= /MD /TC /nologo $(DBG) /Gz /W3 /DNO_SSL_DL
- search for "$(CL)" and replace any occurrence with "cl $(CL)"
- add to the "CYAFL" parameter: /I $(CYA)\include\openssl
- add to the "LINK" parameter: /libpath:"C:\Program Files\Microsoft
SDKs\Windows\v7.1\Lib"

5. open the Windows SDK Command prompt and build:
- nmake cyassl
- nmake windows

Good luck.

Regards,
Arik

Reply all
Reply to author
Forward
0 new messages