I have found the explanation for the error about "install(TARGETS pano13 LIBRARY DESTINATION lib)" .
Apparently for Windows you have to either specify destinations for all of LIBRARY, ARCHIVE, and RUNTIME (the preferred way) or for none of them (which works but doesn't put dlls with the executables).  With that change, CMake configures successfully and creates working MSVC projects.

BUT there is still a problem for me:
set( pano13_res
    pano13.rc
    pano13vc.def
)

which leads to:
1>Linking...
1>pano13vc.def : error LNK2001: unresolved external symbol DLLInit
1>pano13vc.def : error LNK2001: unresolved external symbol DispPrg
1>pano13vc.def : error LNK2001: unresolved external symbol InfoPrg
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CExtract
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CGetImageHeight
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CGetImageRow
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CGetImageWidth
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CInsert
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CLoadImage
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CSaveImage
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CSetImageHeight
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CSetImageRow
1>pano13vc.def : error LNK2001: unresolved external symbol Java_pteditor_CSetImageWidth
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CAlignPoint
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CCallOptimizer
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CCreateProject
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetCP_1n
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetCP_1t
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetCP_1x
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetCP_1y
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetControlPointCount
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetHfov
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetImageCount
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetImageFormat
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetImageHeight
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetImageName
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetImageRow
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetImageWidth
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetIndex
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetPitch
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetRoll
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetTR_1i
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetTR_1v
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetTriangleCount
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CGetYaw
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CLaunchAndSendScript
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CLoadImage
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CLoadProject
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CReduce
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CSaveProject
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CSetCP
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CSetControlPointCount
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CSetImageName
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CSetTR
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CSetTriangleCount
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CShowScript
1>pano13vc.def : error LNK2001: unresolved external symbol Java_ptutils_CTriangulate
1>pano13vc.def : error LNK2001: unresolved external symbol SetWindowOwner
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFClose
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFGetField
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFOpen
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFReadDirectory
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFReadScanline
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFScanlineSize
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFSetDirectory
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFSetField
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFWriteDirectory
1>pano13vc.def : error LNK2001: unresolved external symbol TIFFWriteScanline
1>C:\Users\Public\HuginSDK\libpano13-build\Debug\pano13.lib : fatal error LNK1120: 58 unresolved externals

I don't have a working Java SDK, and don't include the Java headers while compiling -- that seems OK .  But this .res file is assuming I do.
I don't know if the TIFFxxxx symbols really represent real errors either.
However just omitting the .res file leads to a bunch of different link errors, which do include those tifflib symbols.

So in short I am still not able to build the full dll form of libpano13 on Windows using MSVC.  Any suggestions?

Regards, Tom

On Fri, Sep 18, 2009 at 10:36 PM, Thomas Sharpless <tksharpless@gmail.com> wrote:
Well I guess your script really does require a newer CMake, now I get...
tommy@HPubu:~/hugin-et-al/libpano13$ cmake .
-- Found TIFF: /usr/include
-- Found JPEG: /usr/include
-- Found PNG: /usr/include
CMake Error: Error in cmake code at
/home/tommy/hugin-et-al/libpano13/CMakeLists.txt:221:
FILE does not recognize sub-command STRINGS
Current CMake stack:
[1]    /home/tommy/hugin-et-al/libpano13/CMakeLists.txt
-- svnversion = /usr/bin/svnversion
-- Configuring done
tommy@HPubu:~/hugin-et-al/libpano13$

But after installing CMake 2.6 all builds OK.  Apparently without any reference to WxWidgets, though that is installed here.

So I am going to change that line 26 to require CMake 2.6...

Regards, Tom


On Fri, Sep 18, 2009 at 10:22 PM, Thomas Sharpless <tksharpless@gmail.com> wrote:
The current CMakelists.txt also fails on my Ubuntu Linux system because I have a version 2.4.7 of CMake, which requires that "if(some expression)" be closed with "endif(some expression)", and you have used "endif()" in numerous places.  I suppose recent CMake versions allow that.

My solution will be to insert the required expressions and commit, unless you feel that a more recent CMake version is really required to get the build to work -- in which case  you should change line 26, "cmake_minimum_required(VERSION 2.4)".

Cheers, Tom



On Fri, Sep 18, 2009 at 10:01 PM, Thomas Sharpless <tksharpless@gmail.com> wrote:
Hey Kornel

The latest line you added to CMakelists.txt,
"install(TARGETS pano13 LIBRARY DESTINATION lib)"
breaks my Windows build, as the name "lib" is not resolved.

It would probably be best to make these install instructions conditional on Linux.  On Windows there is no good way to install from a makefile; however it would be nice to put a simulated "install" directory tree inside the build tree created by CMake, as the Hugin scripts do.

Regards, Tom



2009/9/18 Kornel Benko <Kornel.Benko@berlin.de>
Am Freitag 18 September 2009 schrieb dmg:

> Hi Kornel,
>
> Why don't you commit the changes, to test your svn write access?
>
> --dmg
Because I am used to discuss patches before commiting.
But OK, I have a patch, which is not breaking anything. It additionally handles the manual
installation.
Will try, but let me check first.


Kornel
--
Kornel Benko
Kornel.Benko@berlin.de

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
PanoTools-devel mailing list
PanoTools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/panotools-devel