Talk:Build pano12 from sourcecode

From PanoTools.org Wiki
Jump to: navigation, search

Trying to build pano12 on Vista. I had to copy some .manifest files in the /bin directory to grant permission to run /bin/install. The ./configure for libpano gets stuck with this error:
checking for JPEG support ...
configure: jpeg home set to /usr/local
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... no
checking for JPEG library is version 6b or later... yes
checking if JPEG package is complete... no -- some components failed test
configure: error:

       the jpeg library must be installed on your system
but configure could not find it.

I can't figure out what is wrong .. Anyone an idea? Dedalus 00:40, 17 August 2008 (CEST)


building libpano13 under mingw

I've been trying to build libpano13, (with the last beta)

1- the compilation goes wrong on the libpng path include,

ln -s /mingw/lib/libpng.dll.a /mingw/lib/.libs/libpng.dll.

seems to fix the issue.

2- make complains about a few missing declarations

.libs/ColourBrightness.o:ColourBrightness.c:(.text+0x624): undefined reference to `_htons@4'
.libs/ColourBrightness.o:ColourBrightness.c:(.text+0x698): undefined reference to `_htons@4'
.libs/ColourBrightness.o:ColourBrightness.c:(.text+0x6aa): undefined reference to `_htons@4'
.libs/ColourBrightness.o:ColourBrightness.c:(.text+0x714): undefined reference to `_htons@4'


adding

LIBS = -lwsock32 

to the Makefile seems to fix it too.


3- make now complains

$ make
make  all-recursive
make[1]: Entering directory `/home/keby/libpano13-2.9.14'
Making all in m4
make[2]: Entering directory `/home/keby/libpano13-2.9.14/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/keby/libpano13-2.9.14/m4'
Making all in .
make[2]: Entering directory `/home/keby/libpano13-2.9.14'
/bin/sh ./libtool --mode=link --tag=CC gcc  -pipe -O2 -mms-bitfields -march=i686   -o libpano13.la -rpath /mingw//lib  -mwindows -avoid-version -no-undefined -export-symbols ./libpano13.def   filter.lo parser.lo queryfeature.lo correct.lo perspect.lo adjust.lo remap.lo lmdif.lo file.lo math.lo pan.lo PTDialogs.lo fftn.lo fourier.lo resample.lo optimize.lo morpher.lo Triangulate.lo seamer.lo hdrfile.lo rgbe.lo tiff.lo ZComb.lo jpeg.lo png.lo multilayer.lo sys_common.lo PTcommon.lo ColourBrightness.lo metadata.lo jpegicc.lo ptstitch.lo ptfeather.lo ptpicker.lo pteditor.lo  sys_ansi.lo bmp.lo    -L/mingw/lib -ljpeg -L/mingw/lib -lpng -L/mingw/lib -ltiff -L/mingw/lib -lz pano13.lo -lwsock32 
rm -fr  .libs/libpano13.dll.a .libs/libpano13.dll.def
if test "x`/bin/sed 1q ./libpano13.def`" = xEXPORTS; then cp ./libpano13.def .libs/libpano13.dll.def; else echo EXPORTS > .libs/libpano13.dll.def; cat ./libpano13.def >> .libs/libpano13.dll.def; fi
 gcc -shared .libs/libpano13.dll.def  .libs/filter.o .libs/parser.o .libs/queryfeature.o .libs/correct.o .libs/perspect.o .libs/adjust.o .libs/remap.o .libs/lmdif.o .libs/file.o .libs/math.o .libs/pan.o .libs/PTDialogs.o .libs/fftn.o .libs/fourier.o .libs/resample.o .libs/optimize.o .libs/morpher.o .libs/Triangulate.o .libs/seamer.o .libs/hdrfile.o .libs/rgbe.o .libs/tiff.o .libs/ZComb.o .libs/jpeg.o .libs/png.o .libs/multilayer.o .libs/sys_common.o .libs/PTcommon.o .libs/ColourBrightness.o .libs/metadata.o .libs/jpegicc.o .libs/ptstitch.o .libs/ptfeather.o .libs/ptpicker.o .libs/pteditor.o .libs/sys_ansi.o .libs/bmp.o .libs/pano13.o  -LD:/Progra~1/GnuWin32/lib -L/mingw/lib -ljpeg /mingw/lib/.libs/libpng.dll.a -ltiff -lz -lwsock32  -mms-bitfields -march=i686 -mwindows -o .libs/libpano13.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libpano13.dll.a
Cannot export AddStitchingMasks: symbol not defined
Cannot export CreatePSD: symbol not defined
Cannot export CreatePanorama: symbol not defined
Cannot export DLLInit@12: symbol not defined
Cannot export DispPrg@16: symbol not defined
Cannot export FlattenTIFF: symbol not defined
Cannot export InfoPrg@16: symbol not defined
Cannot export ReplaceExt: symbol not defined
Cannot export SetWindowOwner: symbol not defined
Cannot export TiffGetImageParameters: symbol not defined
Cannot export TiffSetImageParameters: symbol not defined
Cannot export VerifyTiffsAreCompatible: symbol not defined
Cannot export makeTempPath: symbol not defined
Cannot export readImage: symbol not defined
Cannot export writeImage: symbol not defined
.libs/file.o:file.c:(.text+0x783d): undefined reference to `_panoPPMRead'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x17): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x29): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x70): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x79): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xbc): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x285): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x807): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x819): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x862): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xab1): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xe97): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xea9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xee7): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xef9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xf37): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xf49): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xf90): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xf99): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xfd7): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0xfe9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1027): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1039): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1077): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1089): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x10d0): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x10d9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1117): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1129): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1172): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x134b): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1622): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x17b5): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1aa2): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1b34): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1dec): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x1ead): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x25b2): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x264a): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2832): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.texCreating library file: .libs/libpano13.dll.a
t+0x28d4): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2ab2): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2b54): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2d02): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2da4): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2f52): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x2ff4): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x31a0): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x31a9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x31e7): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x31f9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x3242): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x3322): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x367c): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x39ec): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x42f7): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x4309): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x4352): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x43f4): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x4597): undefined reference to `_wndOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x45a9): undefined reference to `_hDllInstance'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x45ec): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x472c): undefined reference to `_CenterDialog'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x4cc2): undefined reference to `_SetWindowOwner'
.libs/PTDialogs.o:PTDialogs.c:(.text+0x4e1c): undefined reference to `_CenterDialog'
collect2: ld returned 1 exit status
make[2]: *** [libpano13.la] Error 1
make[2]: Leaving directory `/home/keby/libpano13-2.9.14'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/keby/libpano13-2.9.14'
make: *** [all] Error 2

Now I don't know what to do exactly here.

esby 18:11, 5 February 2009 (CET)

Personal tools
Namespaces

Variants
Actions
Navigation
tools
Tools