Building Autopano SIFT-C 2.5.1
Succeeded in building Autopano SIFT-C 2.5.1 in a rather simple way
after (a long time) studying the Hugin SDK (MSVC 2008) in the WIKI and
a lot of trial and error.
I only have doubt about the quality of the build. Here are my steps
till now.
I'm not experienced in building, but gave it a try. Most steps done
according this WIKI page.
See <
http://wiki.panotools.org/Hugin_SDK_(MSVC_2008)>
Needed only as described in the WIKI under Autopano-SIFT-C the 3
dependencies that are in the HUGIN SDK, Visual Studio and CMake.
a) MS Visual Studio Express 2008.
Download page:<
http://www.microsoft.com/express/Downloads/>
You have to download VisualC++ 2008 Express edition.
b) Cmake 2.8.2 <
http://www.cmake.org/files/v2.8/cmake-2.8.2-win32-
x86.zip>
You can download an installer too
<
http://www.cmake.org/files/v2.8/cmake-2.8.2-win32-x86.exe>
c) Hugin SDK
<
http://hugin.panotools.org/sdk/MSVC/Hugin-SDK-20090509-win32.exe>
d) Autopano-SIFT-C-2.5.1.tar.gz
<
http://sourceforge.net/projects/hugin/files/autopano-sift-C/autopano-
sift-C-2.5.1/autopano-sift-C-2.5.1.tar.gz/download>
1 First install VisualC++ 2008 express edition.
2 Extract or installl CMake 2.8.2
3 From the Hugin SDK extract only
a)libpano
b)libxml2-2.7.3
c)wxWidgets-2.8.10
To folder D:\SDKHome.
(I use this naming for easy comparision with the WIKI page.)
The other folders are not necessary for building Autopano-SIFT-C.
In the SDK are Autopano-SIFT-C binaries, but that is version is 2.5.0.
4 Extract Autopano-SIFT-C-2.5.1.tar.gz to D:\SDKHome.
5 Rename folder to Autopano-SIFT-C-Trunk
6 Start CMake GUI(In folder...CMake\bin)
7 browse to folder D:\SDKHome\Autopano-SIFT-C-Trunk as source.
8 browse to folder D:\SDKHome\and add Autopano-SIFT-C.
A dialogue asks to create that folder. click yes
A dialogue appears for selecting the generator.
select Use default native compilers and select Visual Studio 9 2008.
CMake prepares the configuration and you see every line in red.
Everything is found except the SVN number.
Imho no objection, because it was a straight download of the latest
stable version and not via Tortoise.
This year there has been no updates for Autopano-SIFT-C.
9 Click configure. The red backgound is gone.
10 Generate. Everything is generated. Close CMake.
11 Go to folder D:\SDKHome\Autopano-SIFT-C and open autopano-sift-
C.sln.
Visual studio starts.
12 Select Release in Solution Configuration pull-down menu, and then
choose Build > Build Solution.
It builds ALL, but one file fails.
13 Select project INSTALL in Solution Explorer, and then choose Build
> Project Only > Build Only INSTALL
Then install is build.
14 Close Visual C++ 2008 Express Edition.
Now Autopano-SIFT-C resides in folder D:\SDKHome\Autopano-SIFT-C
\install.
In folder bin are the CPG's, both the 1 step(Autopano-SIFT-C) and 2
step(autopano and getkeys) and in the folder share the manuals.
You only need to keep those 2 folders in folder Autopano-SIFT-C.
However when checking the logs in the Autopano-SIFT-C folder there is
one folder with warnings, the Libsift\release folder.
8 lines with warning:conversion from 'double' to 'float', possible
loss of data
3 lines with warning:signed/unsigned mismatch.
Further the package folder fails to build. the log file says it
misses:
Performing Post-Build Event...
CPack Error: Cannot find NSIS registry value. This is usually caused
by NSIS not being installed. Please install NSIS from
http://nsis.sourceforge.net
CPack Error: Cannot initialize the generator NSIS
Project : error PRJ0019: A tool returned an error code from
"Performing Post-Build Event..."
Tested the 1 step and 2 step generators and both worked. Only did it
with 2 images.
I'm only wondering if this build is correct and not corrupted by the
warnings and the fail of the package folder or that I'm doing
something wrong during the build. this because the size of autopano-
sift-C.exe is 1243kB and the downloaded version of autopano-SIFT-C.exe
is 1019kB
Can experienced builders compilers advise me if this build is
correct?.
Kind regards,
Henk Tijdink