Hi,
I tried to build wxPython 2.6.3.3 under the most updated Cygwin and found there
is an error when compiling. Here is the information.
1). Related package version:
WINDOWS: Window 2000 SVR4
OS: CYGWIN_NT-5.0 Hl_Wu_pc 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin
Compiler: gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
GTK+: 2.6.10
Python: 2.4.3
wxPython: wxPython-src-2.6.3.3
SWIG Version 1.3.29
2)configuration option:
. ../configure --prefix=$HOME/gr --enable-rpath=$HOME/gr --with-gtk --enable-debug --enable-geometry --enable-sound --enable-display --disable-debugreport --with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin --with-zlib=builtin --disable-opengl
BTW, the macro BUILD_GLCANVAS is defined to 0 under wxPython/src/config.py
3). error message when type "make"
Creating library file: lib/libwx_gtk2d_xrc-2.6.dll.a
./bk-deps g++ -c -o gldll_glcanvas.o -D__WXGTK__ -I../src/tiff -I../src/jpeg -I../src/png -I../sr
c/zlib -DWXUSINGDLL -DWXMAKINGDLL_GL -D__WXDEBUG__ -Ilib/wx/include/gtk2-ansi-debug-2.6 -I../inclu
de -DXTHREADS -DXUSE_MTSAFE_API -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/
X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/
glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/X11R6/include -g -O0
-Wall -Wundef -Wno-ctor-dtor-privacy ../src/gtk/glcanvas.cpp
../src/gtk/glcanvas.cpp:47: error: definition of static data member 'wxGLCanvas::m_glxVersion' of dlli
mport'd class.
../src/gtk/glcanvas.cpp:65: error: definition of static data member 'wxGLContext::ms_classInfo' of dll
import'd class.
../src/gtk/glcanvas.cpp: In function `gint gtk_glwindow_realized_callback(GtkWidget*, wxGLCanvas*)':
../src/gtk/glcanvas.cpp:97: warning: function 'wxGLContext::wxGLContext(bool, wxWindow*, const wxPalet
te&, const wxGLContext*)' is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp: At global scope:
../src/gtk/glcanvas.cpp:302: error: definition of static data member 'wxGLCanvas::ms_classInfo' of dll
import'd class.
../src/gtk/glcanvas.cpp:304: error: definition of static data member 'wxGLCanvas::sm_eventTable' of dl
limport'd class.
../src/gtk/glcanvas.cpp:304: error: definition of static data member 'wxGLCanvas::sm_eventHashTable' o
f dllimport'd class.
../src/gtk/glcanvas.cpp:304: error: definition of static data member 'wxGLCanvas::sm_eventTableEntries
' of dllimport'd class.
../src/gtk/glcanvas.cpp:304: warning: 'wxGLCanvas::sm_eventTableEntries' defined locally after being r
eferenced with dllimport linkage
../src/gtk/glcanvas.cpp:347: warning: function 'bool wxGLCanvas::Create(wxWindow*, const wxGLContext*,
const wxGLCanvas*, wxWindowID, const wxPoint&, const wxSize&, long int, const wxString&, int*, const
wxPalette&)' is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:347: warning: 'bool wxGLCanvas::Create(wxWindow*, const wxGLContext*, const wx
GLCanvas*, wxWindowID, const wxPoint&, const wxSize&, long int, const wxString&, int*, const wxPalette
&)' defined locally after being referenced with dllimport linkage
../src/gtk/glcanvas.cpp:493: warning: function 'static void* wxGLCanvas::ChooseGLVisual(int*)' is defi
ned after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:493: warning: 'static void* wxGLCanvas::ChooseGLVisual(int*)' defined locally
after being referenced with dllimport linkage
../src/gtk/glcanvas.cpp:504: warning: function 'static void* wxGLCanvas::ChooseGLFBC(int*)' is defined
after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:504: warning: 'static void* wxGLCanvas::ChooseGLFBC(int*)' defined locally aft
er being referenced with dllimport linkage
../src/gtk/glcanvas.cpp:516: warning: function 'static void wxGLCanvas::GetGLAttribListFromWX(int*, in
t*)' is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:516: warning: 'static void wxGLCanvas::GetGLAttribListFromWX(int*, int*)' defi
ned locally after being referenced with dllimport linkage
../src/gtk/glcanvas.cpp:623: warning: function 'static void wxGLCanvas::QueryGLXVersion()' is defined
after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:623: warning: 'static void wxGLCanvas::QueryGLXVersion()' defined locally afte
r being referenced with dllimport linkage
../src/gtk/glcanvas.cpp:638: warning: function 'static int wxGLCanvas::GetGLXVersion()' is defined aft
er prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:638: warning: 'static int wxGLCanvas::GetGLXVersion()' defined locally after b
eing referenced with dllimport linkage
../src/gtk/glcanvas.cpp: In member function `void wxGLCanvas::SwapBuffers()':
../src/gtk/glcanvas.cpp:146: warning: function 'void wxGLContext::SwapBuffers()' is defined after prio
r declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp: At global scope:
../src/gtk/glcanvas.cpp:651: warning: function 'void wxGLCanvas::OnSize(wxSizeEvent&)' is defined afte
r prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:651: warning: 'void wxGLCanvas::OnSize(wxSizeEvent&)' defined locally after be
ing referenced with dllimport linkage
../src/gtk/glcanvas.cpp: In member function `void wxGLCanvas::SetCurrent()':
../src/gtk/glcanvas.cpp:155: warning: function 'void wxGLContext::SetCurrent()' is defined after prior
declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp: In member function `void wxGLCanvas::SetColour(const wxChar*)':
../src/gtk/glcanvas.cpp:171: warning: function 'void wxGLContext::SetColour(const wxChar*)' is defined
after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp: At global scope:
../src/gtk/glcanvas.cpp:302: warning: function 'virtual wxClassInfo* wxGLCanvas::GetClassInfo() const'
is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:480: warning: function 'virtual wxGLCanvas::~wxGLCanvas()' is defined after pr
ior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:480: warning: function 'virtual wxGLCanvas::~wxGLCanvas()' is defined after pr
ior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:304: warning: function 'virtual const wxEventTable* wxGLCanvas::GetEventTable(
) const' is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:304: warning: function 'virtual wxEventHashTable& wxGLCanvas::GetEventHashTabl
e() const' is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:667: warning: function 'virtual void wxGLCanvas::OnInternalIdle()' is defined
after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:65: warning: function 'virtual wxClassInfo* wxGLContext::GetClassInfo() const'
is defined after prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:129: warning: function 'virtual wxGLContext::~wxGLContext()' is defined after
prior declaration as dllimport: attribute ignored
../src/gtk/glcanvas.cpp:129: warning: function 'virtual wxGLContext::~wxGLContext()' is defined after
prior declaration as dllimport: attribute ignored
make: *** [gldll_glcanvas.o] Error 1
Owen Wu
ASMedia