Problem build wxPython

2 views
Skip to first unread message

Hugues JEAN-BAPTISTE

unread,
Dec 9, 2009, 9:48:10 AM12/9/09
to wxpytho...@googlegroups.com
Hi All,

I have a crash when I try to build wxPython :

Linux Mandriva 2009.1 (Spring)
Python 2.6.1
wxPython 2.8.10.1

1) ../configure --prefix=/usr --with-gtk --with-gnomeprint --with-opengl
--enable-debug --enable-geometry --enable-graphics_ctx --enable-sound
--with-sdl --enable-mediactrl --enable-display --disable-debugreport

Configured wxWidgets 2.8.10 for `i686-pc-linux-gnu'

Which GUI toolkit should wxWidgets use? GTK+ 2 with
support for gnomeprint
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? yes
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? no
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 no
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg sys
png sys
regex sys
tiff sys
zlib sys
odbc no
expat sys
libmspack no
sdl yes

2) make && make -C contrib/src/gizmos && make -C contrib/src/stc

No error.
Seems to work fine

3) make install && make -C contrib/src/gizmos install && make -C
contrib/src/stc install

No error.
Seems to work fine

4) cd ../wxPython ; python setup.py build_ext --inplace --debug UNICODE=0

Crash :

WARNING: WXWIN not set in environment. Assuming '..'
Found wx-config: /usr/bin/wx-config
Using flags: --toolkit=gtk2 --unicode=no --version=2.8
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
creating build-gtk2
creating build-gtk2/temp.linux-i686-2.6
creating build-gtk2/temp.linux-i686-2.6/src
creating build-gtk2/temp.linux-i686-2.6/src/gtk
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer
-march=i586 -mtune=generic -fasynchronous-unwind-tables -g -fPIC -g
-DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXDEBUG__ -D__WXGTK__ -Iinclude -Isrc
-I/usr/lib/wx/include/gtk2-ansi-debug-2.8 -I/usr/include/wx-2.8
-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 -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/python2.6 -c src/helpers.cpp -o
build-gtk2/temp.linux-i686-2.6/src/helpers.o -pthread -g -O0
src/helpers.cpp: In member function 'virtual void
wxPyApp::OnAssertFailure(const wxChar*, int, const wxChar*, const
wxChar*, const wxChar*)':
src/helpers.cpp:304: erreur: le format n'est pas une cha�ne litt�rale et
pas d'argument de format
src/helpers.cpp:367: erreur: le format n'est pas une cha�ne litt�rale et
pas d'argument de format
src/helpers.cpp: In member function 'void wxPyApp::_BootstrapApp()':
src/helpers.cpp:510: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:511: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp: In function 'PyObject* __wxPySetDictionary(PyObject*,
PyObject*)':
src/helpers.cpp:735: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:740: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp: In function 'void
wxPyOORClientData_dtor(wxPyOORClientData*)':
src/helpers.cpp:903: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp: In static member function 'static wxPyCBInputStream*
wxPyCBInputStream::create(PyObject*, bool)':
src/helpers.cpp:1383: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:1384: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:1385: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp: In static member function 'static wxPyCBOutputStream*
wxPyCBOutputStream::create(PyObject*, bool)':
src/helpers.cpp:1578: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:1579: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:1580: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp: In member function 'void
wxPyCallback::EventThunker(wxEvent&)':
src/helpers.cpp:1781: attention : deprecated conversion from string
constant to 'char*'
src/helpers.cpp:1781: attention : deprecated conversion from string
constant to 'char*'
error: command 'gcc' failed with exit status 1

I have tried with "python2.4 setup.py build_ext --inplace --debug
UNICODE=0", but it's exactly the same result.

I had no problem with Mandriva 2009.0, Python 2.5.2 and wxPython 2.8.10.1
In this hardware configuration, I need Mandriva 2009.1 witch resolve my
problem of video card.

Thanks, in advance for your help.

Cheers.

--

Hugues JEAN-BAPTISTE (h...@agorinfo.fr)
AGORINFO S.A.S. (http://www.agorinfo.fr)

Robin Dunn

unread,
Dec 9, 2009, 3:28:34 PM12/9/09
to wxpytho...@googlegroups.com
On 12/9/09 6:48 AM, Hugues JEAN-BAPTISTE wrote:
> Hi All,
>
> I have a crash when I try to build wxPython :
>

> src/helpers.cpp:304: erreur: le format n'est pas une cha�ne litt�rale et
> pas d'argument de format
> src/helpers.cpp:367: erreur: le format n'est pas une cha�ne litt�rale et
> pas d'argument de format

Hmmm... Those lines are just simple calls to the wxLogDebug macro, but
I have no idea what it means by "is not a literal chain" (is my
translation correct?)

Changing the lines to look like this may help:

wxLogDebug(wxT("%s"), buf.c_str());

Otherwise, if you have packages available for it you might try building
with a slightly older version of the C++ compiler, such as the version
that was on the previous version of your distro.

--
Robin Dunn
Software Craftsman
http://wxPython.org

Hugues JEAN-BAPTISTE

unread,
Dec 15, 2009, 3:45:07 PM12/15/09
to wxpytho...@googlegroups.com
Robin Dunn a �crit :
Yes good, thank you, it's the solution of my problem.
I had many others and I have modified them like that :

src/gtk/_misc_wrap.cpp
Before :
wxLogFatalError(m);
After :
wxLogFatalError("%s", m);

I don't know C language and I hope my modification is good ?!...

Now wxPython seems to work fine :-)

Robin Dunn

unread,
Dec 16, 2009, 3:50:05 PM12/16/09
to wxpytho...@googlegroups.com
On 12/15/09 12:45 PM, Hugues JEAN-BAPTISTE wrote:
> Robin Dunn a �crit :
>> On 12/9/09 6:48 AM, Hugues JEAN-BAPTISTE wrote:
>>
>>> Hi All,
>>>
>>> I have a crash when I try to build wxPython :
>>>
>>>
>>
>>
>>> src/helpers.cpp:304: erreur: le format n'est pas une cha�ne litt�rale et
>>> pas d'argument de format
>>> src/helpers.cpp:367: erreur: le format n'est pas une cha�ne litt�rale et
>>> pas d'argument de format
>>>
>>
>> Hmmm... Those lines are just simple calls to the wxLogDebug macro, but
>> I have no idea what it means by "is not a literal chain" (is my
>> translation correct?)
>>
>> Changing the lines to look like this may help:
>>
>> wxLogDebug(wxT("%s"), buf.c_str());
>>
>> Otherwise, if you have packages available for it you might try building
>> with a slightly older version of the C++ compiler, such as the version
>> that was on the previous version of your distro.
>>
>>
> Yes good, thank you, it's the solution of my problem.

Just for curiosity's sake, what is the version of the compiler on your
machine? (Run: gcc --version)

Hugues JEAN-BAPTISTE

unread,
Dec 18, 2009, 12:33:50 PM12/18/09
to wxpytho...@googlegroups.com
The version is :

[tlm@cai21 ~]$ gcc --version
gcc (GCC) 4.3.2

[tlm@cai21 ~]$ rpm -qa|grep gcc
gcc-4.3.2-5.1mnb2
manbo-mandriva-files-gcc-c++-4.3.2-1mnb2
manbo-mandriva-files-gcc-4.3.2-1mnb2
gcc-cpp-4.3.2-5.1mnb2
libgcc1-4.3.2-5.1mnb2
gcc-c++-4.3.2-5.1mnb2

Reply all
Reply to author
Forward
0 new messages