Building Sh on Windows

From ShWiki

(Difference between revisions)
Revision as of 15:42, 28 March 2006
Mcpxlwqjja (Talk | contribs)

← Previous diff
Current revision
Francois (Talk | contribs)
Reverted edit of Mcpxlwqjja, changed back to last version by Francois
Line 1: Line 1:
-<div style="height:1px;overflow:auto">torino hotel - [http://torino26.tripod.com torino hotel] american airline reservation - [http://amairres.tripod.com american airline reservation] american airline reservation - [http://amairres.host.sk american airline reservation] disneyland ticket discount - [http://disneylandtd.tripod.com disneyland ticket discount] disneyland ticket discount - [http://tik7.galeon.com/ disneyland ticket discount] torino hotel - [http://tori2006.galeon.com/ torino hotel] southwest airline fare - [http://sairfar.tripod.com southwest airline fare] torino hotel - [http://torino.host.sk torino hotel] </div>+==Using Visual Studio==
 + 
 +To build Sh on Windows, you need '''Visual Studio .NET''' or later.
 + 
 +Get all of the zip files from the [http://www.libsh.org/download.php Download] page.
 + 
 +# Unzip libsh-VERSION.zip into your working folder
 +# Unzip libsh-VERSION-win32deps.zip into your working folder
 +# Open the libsh-VERSION/win32/Sh.sln solution file and press F7 (Build solution)
 + 
 +To build [[Shrike]], first install Sh as described above, then do the following:
 + 
 +# Unzip shmedia-VERSION.zip into your working folder
 +# Unzip shrike-VERSION.zip into your working folder
 +# Unzip shrike-VERSION-win32deps.zip into your working folder
 +# Open the shrike-VERSION/win32/shrike.sln solution file and press F7 (Build solution)
 + 
 +If you can't run the Shrike shaders that use a texture, make sure you set your working directory (in the Visual Studio project options) to "Debug" or "Release" so that the relative paths make sense.
 + 
 +Therefore, if you install and unzip everything, your working folder should contain the following subfolders:
 + 
 +[[Image:Source_folder.gif]]
 + 
 +==Frequently Reported problems==
 + 
 +These are tips to build [[Sh]] programs successfully on Windows, based on the problems that some users have reported.
 + 
 +===Make sure you compile with RTTI enabled===
 + 
 +[[Sh]] requires RTTI to be enabled in projects that use it. In MSVC:
 + Project properties -> C/C++ -> Language -> Enable Run-Time Type Info

Current revision

Using Visual Studio

To build Sh on Windows, you need Visual Studio .NET or later.

Get all of the zip files from the Download page.

  1. Unzip libsh-VERSION.zip into your working folder
  2. Unzip libsh-VERSION-win32deps.zip into your working folder
  3. Open the libsh-VERSION/win32/Sh.sln solution file and press F7 (Build solution)

To build Shrike, first install Sh as described above, then do the following:

  1. Unzip shmedia-VERSION.zip into your working folder
  2. Unzip shrike-VERSION.zip into your working folder
  3. Unzip shrike-VERSION-win32deps.zip into your working folder
  4. Open the shrike-VERSION/win32/shrike.sln solution file and press F7 (Build solution)

If you can't run the Shrike shaders that use a texture, make sure you set your working directory (in the Visual Studio project options) to "Debug" or "Release" so that the relative paths make sense.

Therefore, if you install and unzip everything, your working folder should contain the following subfolders:

Image:Source_folder.gif

Frequently Reported problems

These are tips to build Sh programs successfully on Windows, based on the problems that some users have reported.

Make sure you compile with RTTI enabled

Sh requires RTTI to be enabled in projects that use it. In MSVC:

Project properties -> C/C++ -> Language -> Enable Run-Time Type Info