Skip to content

Commit 8e8061c

Browse files
committed
Doc update to latest dependencies & how to compile with free VS2008 Express
- using latest free VS2008 compiler & SDK 7.0 - compiling wxWidgets to compile with newer MS tools via command line - latest tested versions of OpenSSL + wxWidgets
1 parent b915bb2 commit 8e8061c

File tree

1 file changed

+59
-19
lines changed

1 file changed

+59
-19
lines changed

INSTALL-WIN32.md

+59-19
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ Frequently Asked Questions
9292

9393
A: The SMP version of Erlang needs features in the Visual Studio 2005.
9494
Can't live without them. Besides the new compiler gives the Erlang
95-
emulator a ~40% performance boost(!)
95+
emulator a ~40% performance boost(!). Alternatively you can build Erlang
96+
successfully using the free (proprietary) Visual Studio 2008 Express
97+
edition C++ compiler.
9698

9799
* Q: Can/will I build a Cygwin binary with the procedure you describe?
98100

@@ -208,20 +210,15 @@ Frequently Asked Questions
208210

209211
* (Buy and) Install Microsoft Visual studio 2005 and SP1 (or higher)
210212

211-
* Get and install Sun's JDK 1.4.2
213+
* Alternatively install the free MS Visual Studio 2008 Express [msvc++]
214+
and the Windows SDK [32bit-SDK] or [64bit-SDK] depending on the Windows
215+
platform you are running.
212216

213-
* Get and install NSIS 2.01 or higher (up to 2.30 tried and working)
217+
* Get and install Sun's JDK 1.4.2
214218

215-
* Get and install OpenSSL 0.9.7c or higher
219+
* Get and install NSIS 2.01 or higher (up to 2.46 tried and working)
216220

217-
* Get and unpack wxWidgets-2.8.9 or higher to `/opt/local/pgm` inside
218-
cygwin.
219-
* Open `/cygwin/opt/local/pgm/wxWidgets-2.8.9/build/msw/wx.dsw`
220-
* Enable `wxUSE_GLCANVAS`, `wxUSE_POSTSCRIPT` and
221-
`wxUSE_GRAPHICS_CONTEXT` in `include/wx/msw/setup.h`
222-
* Build all unicode release (and unicode debug) packages
223-
* Open `/cygwin/opt/local/pgm/wxWidgets-2.8.9/contrib/build/stc/stc.dsw`
224-
* Build the unicode release (and unicode debug) packages
221+
* Get and install OpenSSL 0.9.7c or higher (up to 1.0.0a tried & working)
225222

226223
* Get the Erlang source distribution (from
227224
<http://www.erlang.org/download.html>) and unpack with Cygwin's `tar`.
@@ -363,6 +360,15 @@ Well' here's the list:
363360
your `PATH` to allow the environment to find mc.exe. The next Visual Studio
364361
(2010) is expected to include this tool.
365362

363+
Alternatively install the free MS Visual Studio 2008 Express [msvc++] and
364+
the Windows SDK [32bit-SDK] or [64bit-SDK] depending on the Windows
365+
platform you are running, which includes the missing mc.exe message
366+
compiler.
367+
368+
[msvc++]: http://download.microsoft.com/download/E/8/E/E8EEB394-7F42-4963-A2D8-29559B738298/VS2008ExpressWithSP1ENUX1504728.iso
369+
[32bit-SDK]: http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDK_EN_DVD.iso
370+
[64bit-SDK]: http://download.microsoft.com/download/2/E/9/2E911956-F90F-4BFB-8231-E292A7B6F287/GRMSDKX_EN_DVD.iso
371+
366372
* Sun's Java JDK 1.5.0 or higher. Our Java code (jinterface, ic) is
367373
written for JDK 1.5.0. Get it for Windows and install it, the JRE is
368374
not enough. If you don't care about Java, you can skip this step, the
@@ -401,9 +407,10 @@ Well' here's the list:
401407
on the `Related` link and then on the `Binaries` link (upper right
402408
corner of the page last time I looked), you can then reach the
403409
"Shining Lights Productions" Web site for Windows binaries
404-
distributions. Get the latest or 0.9.7c if you get trouble with the
405-
latest. It's a nifty installer. The rest should be handled by
406-
`configure`, you needn't put anything in the path or anything.
410+
distributions. Get the latest 32-bit installer, or use 0.9.7c if you get
411+
trouble with the latest, and install to C:\OpenSSL which is where the
412+
Makefiles are expecting to find it. It's a nifty installer. The rest should
413+
be handled by `configure`, you needn't put anything in the path or anything.
407414

408415
If you want to build openssl for windows yourself (which might be
409416
possible, as you wouldn't be reading this if you weren't a
@@ -422,18 +429,51 @@ Well' here's the list:
422429
release (2.9.\* is a developer release which currently does not work
423430
with wxErlang).
424431

425-
Install or unpack it to `DRIVE:/PATH/cygwin/opt/local/pgm`
432+
Install or unpack it to `DRIVE:/PATH/cygwin/opt/local/pgm`.
426433
Open from explorer (i.e. by double clicking the file)
427-
`C:\cygwin\opt\local\pgm\wxMSW-2.8.10\build\msw\wx.dsw`
434+
`C:\cygwin\opt\local\pgm\wxMSW-2.8.11\build\msw\wx.dsw`
428435
In Microsoft Visual Studio, click File/Open/File, locate and
429-
open: `C:\cygwin\opt\local\pgm\wxMSW-2.8.10\include\wx\msw\setup.h`
436+
open: `C:\cygwin\opt\local\pgm\wxMSW-2.8.11\include\wx\msw\setup.h`
430437
enable `wxUSE_GLCANVAS`, `wxUSE_POSTSCRIPT` and `wxUSE_GRAPHICS_CONTEXT`
431438
Build it by clicking Build/Batch Build and select all unicode release
432439
(and unicode debug) packages.
433440

434-
Open `C:\cygwin\opt\local\pgm\wxMSW-2.8.10\contrib/build/stc/stc.dsw`
441+
Open `C:\cygwin\opt\local\pgm\wxMSW-2.8.11\contrib/build/stc/stc.dsw`
435442
and batch build all unicode packages.
436443

444+
If you are using Visual C++ 9.0 or higher (Visual Studio 2008 onwards) you
445+
will also need to convert and re-create the project dependencies in the new
446+
.sln "Solution" format.
447+
448+
* Open VSC++ & the project `wxMSW-2.8.11\build\msw\wx.dsw`, accepting the
449+
automatic conversion to the newer VC++ format and save as
450+
`\wxMSW-2.8.11\build\msw\wx.sln`
451+
452+
* right-click on the project, and set up the project dependencies for
453+
`wx.dsw` to achieve the below build order
454+
455+
jpeg, png, tiff, zlib, regex, expat, base, net, odbc, core,
456+
gl, html, media, qa, adv, dbgrid, xrc, aui, richtext, xml
457+
458+
Build all unicode release (and unicode debug) packages either from the
459+
GUI or alternatively launch a new prompt from somewhere like Start ->
460+
Programs -> Microsoft Visual C++ -> Visual Studio Tools -> VS2008 Cmd Prompt
461+
and cd to where you unpacked wxMSW
462+
463+
pushd c:\wxMSW*\build\msw
464+
vcbuild /useenv /platform:Win32 /M4 wx.sln "Unicode Release|Win32"
465+
vcbuild /useenv /platform:Win32 /M4 wx.sln "Unicode Debug|Win32"
466+
467+
Open VSC++ & convert `C:\wxMSW-2.8.11\contrib\build\stc\stc.dsw` to
468+
`C:\wxMSW-2.8.11\contrib\build\stc\stc.sln`
469+
470+
* build the unicode release (and unicode debug) packages from the GUI or
471+
alternatively open a VS2008 Cmd Prompt and cd to where you unpacked wxMSW
472+
473+
pushd c:\wxMSW*\contrib\build\stc
474+
vcbuild /useenv /platform:Win32 /M4 stc.sln "Unicode Release|Win32"
475+
vcbuild /useenv /platform:Win32 /M4 stc.sln "Unicode Debug|Win32"
476+
437477
* The Erlang source distribution (from <http://www.erlang.org/download.html>).
438478
The same as for Unix platforms. Preferably use tar from within Cygwin to
439479
unpack the source tar.gz (`tar zxf otp_src_%OTP-REL%.tar.gz`).

0 commit comments

Comments
 (0)