Compiling hugin with mingw (w2k)

Mike Runge mike at trozzreaxxion.net
Mon Sep 15 09:32:53 BST 2003


Hello guys,

I tried to compile hugin under w2k using the mingw environment and failed.
Here's a short describtion what I did so long:

- I installed MinGW-3.0.0-1.exe package
- I installed MSYS-1.0.9.exe package and told the installation routine where
to find mingw.
- I downloaded and extracted wxWindows-2.4.1
- I dropped the patch
- I started a msys shell and compiled wxWindows (msw, xrc) following the
excellent instructions of Pablo in windows_compile.txt (part of the hugin
tarballs)

All this worked well (no errors, but how can I verify that it worked fine?!)

Then I joined the hugin/src folder and started compile-mingw.sh and got the
following error message:
****************************
g++ -c  -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__
-I/c/dev/wxWindows-2.4.1/lib/mswd -I/c/dev/wxWindows-2.4.1/include
-I/c/dev/wxWindows-2.4.1/contrib/include -I/c/dev/wxWindows-2.4.1/src/regex
-I/c/dev/wxWindows-2.4.1/src/png -I/c/dev/wxWindows-2.4.1/src/jpeg
-I/c/dev/wxWindows-2.4.1/src/zlib -I/c/dev/wxWindows-2.4.1/src/tiff
-I/c/dev/wxWindows-2.4.1/contrib/include -Iinclude         -DSTRICT
-DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ -g -D__WXDEBUG__ -Wall    -o
Panorama/PanoImage.o Panorama/PanoImage.cpp
In file included from include/PT/Panorama.h:32,
                 from Panorama/PanoImage.cpp:17:
include/common/utils.h: In function `Target utils::lexical_cast(Source)':
include/common/utils.h:100: parse error before `}' token
In file included from Panorama/PanoImage.cpp:17:
include/PT/Panorama.h: In member function `virtual void 
   PT::PanoramaObserver::panoramaChanged(PT::Panorama&)':
include/PT/Panorama.h:87: parse error before `;' token
include/PT/Panorama.h: In member function `virtual void 
   PT::PanoramaObserver::panoramaImagesChanged(PT::Panorama&, const 
   PT::UIntSet&)':
include/PT/Panorama.h:99: parse error before `;' token
In file included from Panorama/PanoImage.cpp:19:
include/hugin/ImageCache.h: In member function `virtual void 
   RefCountNotifier<SUBJECT>::addRef(SUBJECT&)':
include/hugin/ImageCache.h:70: parse error before `;' token
include/hugin/ImageCache.h: In member function `virtual void 
   RefCountNotifier<SUBJECT>::removeRef(SUBJECT&)':
include/hugin/ImageCache.h:78: parse error before `;' token
include/hugin/ImageCache.h: In copy constructor `RefCountPtr<T, 
   REFCOUNTER>::RefCountPtr(const RefCountPtr<T, REFCOUNTER>&)':
include/hugin/ImageCache.h:120: parse error before `;' token
Panorama/PanoImage.cpp: In destructor `virtual PT::PanoImage::~PanoImage()':
Panorama/PanoImage.cpp:93: parse error before `}' token
Panorama/PanoImage.cpp: In member function `bool 
   PT::PanoImage::readImageInformation()':
Panorama/PanoImage.cpp:132: parse error before `}' token
make: *** [Panorama/PanoImage.o] Error 1
mv: cannot stat `hugin.exe': No such file or directory
****************************

The compile run shows parse errors and failed. The same problems I got trying
to compile hugin-20030912.tar.gz and hugin-20030914.tar.gz.
So it seems to be, that it is not a simple parse error. It seems like I have
done wrong something or that I miss some stuff?!

Any ideas?

Thanks for your help,
mike 


More information about the ptX mailing list