Sunday, May 15, 2011

building hugin: error: expected class-name before '{' token


I've got the below error when trying to build hugin. As it turned out my wxWidgets were compiled without Drag&Drop support, even when I supplier --enable-dnd to the configure script.
It's because --with-x11 does not support it.

To find out if dnd is really enabled use
$ grep wxUSE_DRAG_AND_DROP /pat/to/build/dir/lib/wx/include/*/wx/setup.h
#define wxUSE_DRAG_AND_DROP 1


[ 64%] Building CXX object src/hugin1/icpfind/CMakeFiles/icpfindlib.dir/AutoCtrlPointCreator.cpp.o
cd /home/test/packages/BUILD/hugin-2010.4.0/build/src/hugin1/icpfind && /usr/gcc/4.5/bin/g++   -Dicpfindlib_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -D_REENTRANT -pthreads -O2 -g -fPIC -I/home/test/packages/BUILD/hugin-2010.4.0/build/src -I/home/test/packages/BUILD/hugin-2010.4.0/src/hugin_base -I/home/test/packages/BUILD/hugin-2010.4.0/src/foreign -I/home/test/packages/BUILD/hugin-2010.4.0/src/foreign/vigra -I/home/test/packages/BUILD/hugin-2010.4.0/src/celeste -I/home/test/packages/BUILD/hugin-2010.4.0/build/src/celeste -I/home/test/packages/BUILD/hugin-2010.4.0/src -I/opt/kde4/include/OpenEXR -I/opt/kde4/include -isystem /opt/kde4/lib/wx/include/x11univ-unicode-release-2.8 -isystem /opt/kde4/include/wx-2.8 -I/home/test/packages/BUILD/hugin-2010.4.0/src/hugin1   -o CMakeFiles/icpfindlib.dir/AutoCtrlPointCreator.cpp.o -c /home/test/packages/BUILD/hugin-2010.4.0/src/hugin1/icpfind/AutoCtrlPointCreator.cpp
In file included from /home/test/packages/BUILD/hugin-2010.4.0/src/hugin1/hugin/huginApp.h:30:0,
                 from /home/test/packages/BUILD/hugin-2010.4.0/src/hugin1/icpfind/AutoCtrlPointCreator.cpp:38:
/home/test/packages/BUILD/hugin-2010.4.0/src/hugin1/hugin/MainFrame.h:64:1: error: expected class-name before '{' token

1 comment:

  1. Sono molto interessato in questo ambito e la lettura di questo post ho conosciuto molte cose nuove, che non ho conosciuto prima. Grazie per la pubblicazione di questo articolo grande qui. slot machine online gratis

    ReplyDelete