Thanks, Kornel

On Sat, Sep 19, 2009 at 1:24 PM, Kornel Benko <Kornel.Benko@berlin.de> wrote:
Hi Thomas,
I could not resist to look into sources.

There is this in sys_ansi.c:54
       if( JavaUI ){
               JPrintError( toPrint );
...
blame gives me dmg 639, which means it was there since 27.7.2006.

The current source has some HAVE_JAVA conditionals so that Java is not required by default.

I see it now. If NOT JAVA we have to use javastub.c.

With that stub it compiles OK without Java, and it does link OK on Linux.  But on Windows there are a lot of Java APIs exported in the .def file for the DLL version of libpano13, which cause linker errors.  I can eliminate those by using a .def file version without those exports.  So the CMake script can select the appropriate .def according to HAVE_JAVA.

HOWEVER I still have problems with the .def exporting other undefined symbols:
1>Linking...
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol DLLInit
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol DispPrg
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol InfoPrg
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol SetWindowOwner
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFClose
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFGetField
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFOpen
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFReadDirectory
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFReadScanline
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFScanlineSize
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFSetDirectory
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFSetField
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFWriteDirectory
1>pano13vc_noJava.def : error LNK2001: unresolved external symbol TIFFWriteScanline
1>C:\Users\Public\HuginSDK\libpano13-build\Debug\pano13.lib : fatal error LNK1120: 14 unresolved externals
 
The TIFF ones actually are declared in the tiff headers, but presumably not in a way that makes them exportable as dll entry points (this using the wxWidgets distribution of libtiff for Windows).

About the other 4 I have no idea.  Does anyone know why they are a problem?

Regards, Tom