Hi all! I've made an attempt to compile libpano13-2.9.17 in the mingw environment using the standard ./configure - make - make install approach. I struggled with it for a day but I didn't get it to go all the way. Here is what happened:
I started out by calling ./configure --with-java = /c/Programme/Java/jdk1.6.0_21 I took some time struggling with the libraries (built them all myself with mingw from recent versions) until it really found them all where it wanted them, but eventually it was happy and had everything together. Next I called make without arguments. Came up with these errors: gcc -shared .libs/libpano13.dll.def .libs/filter.o .libs/ parser.o .libs/queryf eature.o .libs/correct.o .libs/perspect.o .libs/adjust.o .libs/ remap.o .libs/lmd if.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/jpe g.o .libs/png.o .libs/multilayer.o .libs/sys_common.o .libs/ PTcommon.o .libs/Col ourBrightness.o .libs/metadata.o .libs/jpegicc.o .libs/ ptstitch.o .libs/ptfeathe r.o .libs/PaniniGeneral.o .libs/ptpicker.o .libs/pteditor.o .libs/ sys_ansi.o .li bs/bmp.o .libs/pano13.o -L/mingw/lib /mingw/lib/libjpeg.dll.a -L/usr/ local/lib -lpng /usr/local/lib/libtiff.dll.a -lz -mwindows -o .libs/ libpano13.dll -Wl,--i mage-base=0x10000000 -Wl,--out-implib,.libs/libpano13.dll.a Creating library file: .libs/libpano13.dll.a .libs/file.o: In function `panoImageRead': C:\msys\1.0\home\kfj\C\libpano13-2.9.17/file.c:2433: undefined reference to `pan oPPMRead' .libs/ColourBrightness.o: In function `OutputPhotoshopCurve': C:\msys\1.0\home\kfj\C\libpano13-2.9.17/ColourBrightness.c:412: undefined refere nce to `ht...@4' C:\msys\1.0\home\kfj\C\libpano13-2.9.17/ColourBrightness.c:432: undefined refere nce to `ht...@4' C:\msys\1.0\home\kfj\C\libpano13-2.9.17/ColourBrightness.c:433: undefined refere nce to `ht...@4' C:\msys\1.0\home\kfj\C\libpano13-2.9.17/ColourBrightness.c:443: undefined refere nce to `ht...@4' collect2: ld returned 1 exit status make[2]: *** [libpano13.la] Error 1 make[2]: Leaving directory `/home/kfj/C/libpano13-2.9.17' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kfj/C/libpano13-2.9.17' make: *** [all] Error 2 So I added an additional object file ppm.lo to the target am__objects_1 in Makefile (I think this was merely forgotten?!) and modified ColourBrightness.c to always use a macro for htons. Now that got me fair milage and libpano13.dll was made, plus plenty of other stuff in the .libs folder, but the make would run into further problems building stuff in the tools folder: gcc -g -O2 -o .libs/PTAInterpolate.exe PTAInterpolate.o -L/home/kfj/C/ libpano13 -2.9.17 /home/kfj/C/libpano13-2.9.17/.libs/libpano13.dll.a -L/mingw/ lib /mingw/l ib/libjpeg.dll.a -L/usr/local/lib -lpng -lz /usr/local/lib/ libtiff.dll.a -Wl,--r path -Wl,/usr/local/lib -Wl,--rpath -Wl,/mingw/lib PTAInterpolate.o: In function `main': C:\msys\1.0\home\kfj\C\libpano13-2.9.17\tools/PTAInterpolate.c:153: undefined re ference to `panoFileMakeTemp' C:\msys\1.0\home\kfj\C\libpano13-2.9.17\tools/PTAInterpolate.c:163: undefined re ference to `panoFileMakeTemp' C:\msys\1.0\home\kfj\C\libpano13-2.9.17\tools/PTAInterpolate.c:102: undefined re ference to `writeProject' collect2: ld returned 1 exit status make[2]: *** [PTAInterpolate.exe] Error 1 make[2]: Leaving directory `/home/kfj/C/libpano13-2.9.17/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kfj/C/libpano13-2.9.17' make: *** [all] Error 2 went into tools directory, edited Makefile to not make PTAInterpolate.exe # for now skip problematic targets KFJ # bin_PROGRAMS = panoinfo$(EXEEXT) PTAInterpolate$(EXEEXT) ... bin_PROGRAMS = panoinfo$(EXEEXT) \ ... more problems in tools directory: gcc -g -O2 -o .libs/PTmender.exe PTmender.o -L/home/kfj/C/ libpano13-2.9.17 /hom e/kfj/C/libpano13-2.9.17/.libs/libpano13.dll.a -L/mingw/lib -L/usr/ local/lib -lp ng -lz /mingw/lib/libjpeg.dll.a /usr/local/lib/libtiff.dll.a -Wl,-- rpath -Wl,/us r/local/lib -Wl,--rpath -Wl,/mingw/lib PTmender.o: In function `panoMenderDuplicateScriptFile': C:\msys\1.0\home\kfj\C\libpano13-2.9.17\tools/PTmender.c:87: undefined reference to `panoFileMakeTemp' collect2: ld returned 1 exit status make[2]: *** [PTmender.exe] Error 1 make[2]: Leaving directory `/home/kfj/C/libpano13-2.9.17/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kfj/C/libpano13-2.9.17' make: *** [all] Error 2 took that target out as well ... and so it went on. I couldn't get any but two of the targets in the tools folder to build. After having crippled the Makefile in tools to just contain the two targets that would work, I could run a make that would terminate without an error and subsequently run make install. That put the dll into /usr/local/bin, as well as the two .exes from the tools folder: -rwxr-xr-x 1 kfj Administratoren 37815 Sep 18 17:19 PToptimizer.exe -rwxr-xr-x 1 kfj Administratoren 1333092 Sep 18 19:01 pano13.dll -rwxr-xr-x 1 kfj Administratoren 32634 Sep 18 17:19 panoinfo.exe I am not really sure what to make of all this. Are the targets in the tools folder meant to be made like this? Am I missing something? Has anyone managed to do the job with mingw? I could do with a bit of help here... With regards KFJ -- You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx
