Follow the instructions for setting up the development environment for building Windows applications.
Make sure that path to vcbuild.exe (something like C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages
) is in your PATH env variable.
The list of paths which should be in PATH env variable: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 9.0\VC\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\bin
Also check that the vcbuild path is shown in the rhobuild.yml file. The rhobuild.yml file is located in the Rhodes folder (example location: C:/RhoStudio/ruby/lib/ruby/gems/1.8/gems/rhodes-3.1.1
).
If you use Visual Studio 2008 :
env: paths: vcbuild: C:/Program Files/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe
If you use Visual Studio 2008 on 64-bit installations:
env: paths: vcbuild: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/vcpackages/vcbuild.exe
If you use Visual Studio 2010 : add path to msbuild
to rhobuild.yml
in rhodes folder:
env: paths: vcbuild: msbuild
To build and run the application issue command:
$ rake run:win32
*
To use rake run:win32 command, add to the PATH variable: <path-to-rhodes>\lib\extensions\openssl.so\ext\win32\bin (or <path-to-rhodes>\lib\extensions\openssl.so\ext\win32\msvc2008\bin if you use Visual Studio 2008) |
To clean all temporary and binary files execute command:
$ rake clean:win32
Download NSIS installer tool.
Add path to NSIS complier to ‘rhobuild.yml’ in rhodes folder:
On 32-bit platform:
env: paths: nsis: C:/Program Files/NSIS/makensis.exe
On 64-bit platform:
env: paths: nsis: C:/Program Files (x86)/NSIS/makensis.exe
To build installer bundle use command:
$ rake device:win32:production
There is separate rake command for Windows XP Embedded platform. To build installer bundle use command:
$ rake device:winxpe:production
After the build process is finished you can find the installer bundle named <application-name>-setup.exe
in <application-root>/bin/target/win32
folder.
Rholog.txt is placed in <rhodes folder>\platform\wm\bin\win32\rhodes\Debug\rho
If your application needs HTTPS, then you need to build the Qt libraries for Visual Studio 2008 with OpenSSL as described below:
C:\Qt\4.7.4-src
QTDIR
= C:\Qt\4.7.4
(this will be the installation folder for the compiled Qt libraries)PATH
variable: C:\Qt\4.7.4\bin
(it doesn’t matter that this folder does not exist yet)PATH
variable: <path-to-rhodes>\lib\extensions\openssl.so\ext\win32\msvc2008\bin
Open Visual Studio 2008 Command Prompt. This is accomplished using Start » All Programs » Microsoft Visual Studio 2008 » Visual Studio Tools » Visual Studio 2008 Command Prompt. Run in Visual Studio 2008 Command Prompt:
vcvarsall.bat x86 C:
To build Qt library run in the same command prompt:
cd \Qt\4.7.4-src configure -opensource -platform win32-msvc2008 -nomake examples -nomake demos -nomake docs -qt-libpng -qt-libjpeg -qt-libtiff -qt-libmng -qt-gif -openssl-linked -no-qt3support -prefix C:/Qt/4.7.4 -I
/lib/extensions/openssl.so/ext/win32/include -L /lib/extensions/openssl.so/ext/win32/lib > nmake > nmake install > nmake clean
Be aware that it will take a while to build the Qt libraries from sources (maybe few hours or so). Particularly the configure
command may run for a few minutes, and the nmake
command may run for a few hours.
Now when you build your application the usual way, the HTTPS protocol support will be enabled automatically.