Build pano12 from sourcecode MSVC

From PanoTools.org Wiki
Revision as of 07:43, 15 December 2006 by Jwatters (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Building panotools for Windows using Microsoft Visual Studio

Pano13 and its helper applications can be build using Microsoft Visual Studio. For the following instructions, Visual Studio .NET 2003 was used. A free version of Visual Studio 2005 is available on http://msdn.microsoft.com/vstudio/express/ if using this version to build panotools you also need Microsoft® Windows Server 2003 Platform SDK msdn.microsoft.com To configure the Visual Studio 2005 and platform SDK see msdn.microsoft.com

Installing required dependencies

Building panotools requires some external libraries, such as libz, libtiff, libpng and libjpeg. Compiling them all by hand is quite cumbersome, an easier way is to download a wxWidgets source package and compile that. Note that wxWidgets itself is not required by panotools, we just use it because of the bundled libraries.

Compiling wxWidgets

Download the wxWidgets source archive for Win32 (wxMSW) from wxwidgets.org/downloads, and extract it to some folder on your harddrive. Create an environment variable named WXWIDGETS_HOME that points to the wxWidgets-xxxx directory, for example C:\source\wxWidgets-2.8.0 To do this, right click on My Computer, select Properties, switch to the Extended or Advanced tab, press the Environment Variables button and create a new enviroment variable with the proper title and locaction

Start the MSVC command line shell (from the startmenu, Visual Studio, Tools, Command prompt), and change the directory to the wxWidgets directory:

 cd wxWidgets folder
 cd build\msw
 nmake -f makefile.vc BUILD=release UNICODE=0 SHARED=0 RUNTIME_LIBS=static

After some time, building will be finished.

Install Java SDK

Download and install the Java SDK from sun.com/download, and create an environment variable JDK_HOME that points to the root directory of the JDK (most likely C:\Program Files\j2sdk1.5 or similar)

Download and install panotools

Get the sourcecode from the subversion repository, or download the latest pano13 source package http://sourceforge.net/projects/panotools/ Open the libpano.sln file, and select the Release configuration in the toolbar. Press F7 to build the panotools programs.