Build pano12 from sourcecode MSVC

From PanoTools.org Wiki
(Difference between revisions)
Jump to: navigation, search
m
 
(7 intermediate revisions by 3 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 ==
 
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.
 
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 ====
+
=== 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:\temp\wxWidgets-2.6. To do this, right click on '''My Computer''', select '''Properties''', switch to the '''Extended''' 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 pano13.dll and helper 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]]

Latest revision as of 20:07, 21 March 2007

Contents

[edit] 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

[edit] 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.

[edit] 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.

[edit] 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)

[edit] 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.

Personal tools
Namespaces

Variants
Actions
Navigation
tools
Tools