Re: Error during compile.(‘wxFileType’ was not declared in this scope)
Vadim Zeitlin
vadim at wxwidgets.org
Tue Oct 2 04:24:46 PDT 2007
On Tue, 2 Oct 2007 02:36:55 -0700 (PDT) Allan Kamau <kamauallan at yahoo.com> wrote:
AK> I executed .configure as follows.
AK>
AK> $date;time ./configure --with-gtk --enable-gtk2 --enable-unicode
AK> --enable-mimetype=no;date;
...
AK> Below are the last output lines (containing the error) of the make command.
AK>
AK> make[1]: Entering directory `/usr/local/src/postgreSQL/wxWidgets-2.8.5/utils/wxrc'
AK> /usr/local/src/postgreSQL/wxWidgets-2.8.5/bk-deps g++ -c -o wxrc_wxrc.o -D__WXGTK__ -I. -DWXUSINGDLL -DwxUSE_GUI=0 -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/local/src/postgreSQL/wxWidgets-2.8.5/lib/wx/include/gtk2-unicode-release-2.8 -I../../include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo ./wxrc.cpp
AK> ./wxrc.cpp: In member function ‘void XmlResApp::MakePackageCPP(const wxArrayString&)’:
AK> ./wxrc.cpp:656: error: ‘wxFileType’ was not declared in this scope
AK> ./wxrc.cpp:656: error: ‘ft’ was not declared in this scope
AK> ./wxrc.cpp:656: error: ‘wxTheMimeTypesManager’ was not declared in this scope
AK> make[1]: *** [wxrc_wxrc.o] Error 1
The obvious workaround is to remove "--enable-mimetype=no" from configure
(as wxrc uses wxMimeTypesManager). Of course, if you don't use wxrc you can
just ignore this error. Finally, I've fixed compilation (although MIME type
detection won't work, of course) for --disable-mimetype in the svn now so
it should be ok in 2.8.7.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list