Hi all,

Hugin's new opengl support got me drooling, and I couldn't find a
working windows binary in the usual places, so I tackled a 32-bit
cygwin/mingw compile (gcc -mno-cygwin) of hugin-2009.2.0 last week.
After a lot of fiddling it finally compiles and runs! It has no
dependencies on cygwin and uses native Windows controls. Stripped,
with docs, zipped, it takes up 26MB and runs directly out of the box
(no installer needed).

The current executable is able to use the new opengl and control point
visualizatoin support (very nice!) and generally seems to work.
Caveats:
- does not include Java support or a control point generator (didn't
try yet)
- a script syntax error prevents stitching (haven't debugged yet,
something about a target pattern missing '%'; hard to debug when the
referenced tmpfile gets deleted before the error pops up)
- during optimization it pops up messages about feathering and not
being able to open windows (is the latter because Java is missing?)

Other than the hassle of forcing different build managers to use gcc/g+
+ -mno-cygwin and setting the build triple to i686-pc-mingw when
possible, it took surprisingly few changes to get things working.
Below is a summary of changes; I have diffs against the original files
as well.

Some questions:
1. Is anyone interested in playing with the build I have? If the
stitch script error turns out to live in a plain text file it's fully
usable (and has not yet crashed on me).
2. Suggestions for better source versions to use? For example, I've
seen complaints about enblend and pano, and it looks like a
hugin-2009.4.0 rc appeared while I was getting 2.0 to compile.
3. Would the diffs help anyone else? I probably won't be able to
maintain this build for long, but ideally the patches bring us closer
to the ideal untar/configure/make/make install/ process. It looks like
there's a fair amount of activity over the last couple days in Windows
builds, but they don't seem to go the cygwin/mingw route

My apologies if I've duplicated someone's effort -- I didn't have much
internet access this week and wasn't following the list.

Regards,
Ryan

Package versions:
- exiv2-0.18.2 (source)
- openexr-1.6.1 (source)
- libpano13-2.9.14 (source)
- lcms-1.18 (source)
- jpeg-7 (source)
- glut-3.7.6-bin (binaries by Nate Robins)
- enblend-enfuse-3.2 (source)
- glew-1.5.1(source)
- tiff-3.9.1(source)
- zlib-1.2.3 (source)
- ilmbase-1.0.1 (source)
- wxWidgets-2.8.10 (source)
- expat-2.0.1 (source)
- boost-1_33_1 (source)
- assorted (standard) windows dlls
- the latest cygwin and a few other packages required to build

Configuration-related changes:
- open-exr had a false configure-time dependency on pthreads
- open-exr forgot to put $EXEEXT$ on a couple makefile entries
- libpano had a horribly out of date .def file (and configure didn't
remove java-related function names)
- libpano links against comdlg32.dll and lsw2_32.dll (htons, already
noted elsewhere)
- libpano tried to use sys_ansi.c instead of sys_win.c, didn't add bmp
support
- glew didn't originally have a way to override config.guess
- glew didn't have a way to override the install dir
- tiff only enabled opengl if x11 was available
- hugin wanted glew32s.lib instead of libglew32.dll.a, and hard coded
the search dir as well
- hugin - custom cmake modules hard-coded search paths for openexr,
exiv2 and glew (cmake's builtin boost-finder also needed a minor
tweak)
- ilmbase needed windows threading manually enabled
- wxwidgets had some broken strangeness involving wxHACK_BOOLEAN

Code changes:
- openexr-1.6.1/IlmImf/b44ExpLogTable.cpp needs to include OpenEXR/
half.h, not half.h
- libpano13-2.9.14/jpeg.c needs to include jpeglib.h later (possibly
obsolete)
- jpeg-7/jmorecfg.h needs to check for _BASETSD_H because cygwin gets
_BASETSD_H_ wrong
- jpeg-7/jconfig.cfg needs to check for __RPCNDR_H__     before defining
a boolean type
- glut-3.7.6-bin/glut.h needs to check for defined(__stdcall) before
disabling it
- hugin-2009.2.0/src/foreign/vigra/vigra/windows.h needs to include wx/
msw/winundef.h to avoid some nasty macro substitutions which cause
link failures later on
- hugin-2009.2.0/src/foreign/vigra/vigra/config.hxx changed dllimport
to dllexport so gcc wouldn't complain about imported functions having
definitions (probably the wrong way to fix problem)
- hugin-2009.2.0/src/foreign/ANN/ANN.h ditto with dllimport
- hugin-2009.2.0/src/hugin1/hugin/AutoCtrlPointCreator.cpp wxLogError
calls need to call c_str() on the result of wxString::Format to avoid
breaking vararg/POD rules
- hugin-2009.2.0/src/hugin1/hugin/CPImageCtrl.cpp moved the definition
of EVT_CPEVENT to CPEditorPanel.cpp to avoid link errors later on
- hugin-2009.2.0/src/hugin_base/vigra_ext/Interpolators.h removed
'typename' from a non-templated use of vigra::UInt8 (possibly
obsolete)
- hugin-2009.2.0/src/hugin_base/hugin_utils/utils.h re-enabled the ???
#ifdef __WXMSW__ block (but moved it further down in the file to the
second #ifdef __WXMSW__)
- hugin-2009.2.0/src/hugin_base/panotools/PanoToolsInterface.h check
for defined(NOMINMAX) before (re)defining it (annoying compile
warning, probably harmless)
- wxWidgets-2.8.10/include/wx/msw/winundef.h depended on macro
expansion order gcc doesn't like (neither does CodeWarrior, according
to the #ifdefs)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to