Difference between revisions of "Build pano12 from sourcecode MSVC"

From PanoTools.org Wiki
Jump to navigation Jump to search
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
Pano13 and its helper applications can be build 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/ it is probably possible to build panotools using this version as well.  
+
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 [http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en#filelist  msdn.microsoft.com] To configure the Visual Studio 2005 and platform SDK see [http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ msdn.microsoft.com]
  
 
== Installing required dependencies ==
 
== Installing required dependencies ==
Line 9: Line 9:
 
=== Compiling wxWidgets ===
 
=== Compiling wxWidgets ===
  
Download the wxWidgets source archive for Win32 (wxMSW) from [http://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
+
Download the wxWidgets source archive for Win32 (wxMSW) from [http://wxwidgets.org/downloads/ 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:
 
Start the MSVC command line shell (from the startmenu, Visual Studio, Tools, Command prompt), and change the directory to the wxWidgets directory:
Line 21: Line 21:
 
=== Install Java SDK ===
 
=== Install Java SDK ===
  
Download and install the Java SDK, 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 the Java SDK from [http://www.sun.com/download/ 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 ===
 
=== Download and install panotools ===
  
Get the sourcecode from the subversion repository, or download the latest pano13 source package. Open the libpano.sln file, and select the Release configuration in the toolbar. Press F7 to build the panotools programs
+
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.
 +
 
 +
[[Category:Tutorial:Nice to know]]

Revision as of 20:07, 21 March 2007

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.