20050226 test build uploaded

Hello

I don't know if this is normal or intentional, but this snapshot doesn't
compile against wxGTK development snapshot 2.5.4. When I try to compile
wxPython, compilation fails with this output:

i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG
-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fPIC
-DSWIG_TYPE_TABLE=wxPython_type_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1
-UNDEBUG -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DXTHREADS -D_REENTRANT
-DXUSE_MTSAFE_API -Iinclude -Isrc
-I/usr/lib/wx/include/gtk2-ansi-release-2.5 -I/usr/include/wx-2.5
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/python2.3 -c
src/gtk/_core_wrap.cpp -o
build-gtk2/temp.linux-i686-2.3/src/gtk/_core_wrap.o
src/gtk/_core_wrap.cpp:2474: error: `wxIMAGE_OPTION_QUALITY' was not
declared
   in this scope
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

that it is due to this difference between system wxGTK (2.5.4) and copy
of wxGTK included in 20050226 test sources:

--- /usr/include/wx-2.5/wx/image.h 2005-03-01 23:17:46.000000000
+0100
+++ /opt/wx/2.5/include/wx-2.5/wx/image.h 2005-03-01
23:18:06.000000000 +0100
@@ -2,7 +2,7 @@
// Name: image.h
// Purpose: wxImage class
// Author: Robert Roebling
-// RCS-ID: $Id: image.h,v 1.100 2005/02/19 21:51:37 VZ Exp $
+// RCS-ID: $Id: image.h,v 1.101 2005/02/25 17:24:37 JS Exp $
// Copyright: (c) Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -30,6 +30,7 @@
// which breaks the compilation below
#undef index

+#define wxIMAGE_OPTION_QUALITY wxString(_T("quality"))
#define wxIMAGE_OPTION_FILENAME wxString(_T("FileName"))

#define wxIMAGE_OPTION_RESOLUTION wxString(_T("Resolution"))

Searching again I noticed that in wxPython there is this version:

#define wxMAJOR_VERSION 2
#define wxMINOR_VERSION 5
#define wxRELEASE_NUMBER 4
#define wxSUBRELEASE_NUMBER 1
#define wxVERSION_STRING _T("wxWidgets 2.5.4")

while released wxGTK 2.5.4 are

#define wxMAJOR_VERSION 2
#define wxMINOR_VERSION 5
#define wxRELEASE_NUMBER 4
#define wxSUBRELEASE_NUMBER 0
#define wxVERSION_STRING _T("wxWidgets 2.5.4")

For what I remember I compiled wxPython 2.5.3.1 and 2.4.2.* against my
system wxGTK without any problem.

Thank you in advance.

Giacomo

···

--
When Adam delved and Eve span,
Who was then the gentleman?

GhePeU wrote:

Hello

I don't know if this is normal or intentional, but this snapshot doesn't
compile against wxGTK development snapshot 2.5.4. When I try to compile
wxPython, compilation fails with this output:

[...]

that it is due to this difference between system wxGTK (2.5.4) and copy
of wxGTK included in 20050226 test sources:

Correct. The test build was made with CVS as of that day or the day before. On the stable series it's easy to keep things compatible since the API is not supposed to be changing, but with the unstable series it takes more work since the API is allowed to change. Since there were some annoying bugs in the released wxWidgets 2.5.4 I decided to not go to the extra effort this time.

Searching again I noticed that in wxPython there is this version:

#define wxMAJOR_VERSION 2
#define wxMINOR_VERSION 5
#define wxRELEASE_NUMBER 4
#define wxSUBRELEASE_NUMBER 1
#define wxVERSION_STRING _T("wxWidgets 2.5.4")

while released wxGTK 2.5.4 are

#define wxMAJOR_VERSION 2
#define wxMINOR_VERSION 5
#define wxRELEASE_NUMBER 4
#define wxSUBRELEASE_NUMBER 0
#define wxVERSION_STRING _T("wxWidgets 2.5.4")

See this page for a discussion of what the components of the release number mean. It will probably help you understand what is going on:

http://wiki.wxpython.org/index.cgi/ReleaseSeries

For what I remember I compiled wxPython 2.5.3.1 and 2.4.2.* against my
system wxGTK without any problem.

I managed to not make or make use of any API incompatible changes in 2.5.3.1 but it did have newer wxWidgets sources underneath with some bug fixes.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!