Installing wxPython 2.9.5 on Ubuntu 9.10

Hello,

Please how do I fix the following GTK error messages:

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ python build-wxpython.py --build_dir=…/bld
old_options = set([’–unicode’, ‘–cairo’, ‘–debug’, ‘–build_dir=…/bld’, ‘–reswig’, ‘–prefix=/opt/wx/2.9’])
sys.argv = [’–build_dir=…/bld’]
wxWidgets directory is: /home/eshikafe/wxPython-src-2.9.5.0
wxWidgets build options: [’–wxpython’, ‘–jobs=1’, ‘–prefix=/usr/local’, ‘–unicode’, ‘–builddir=/home/eshikafe/wxPython-src-2.9.5.0/bld’]
Configure options: [’–enable-unicode’, ‘–prefix=/usr/local’, ‘–with-opengl’, ‘–enable-sound’, ‘–enable-graphics_ctx’, ‘–enable-mediactrl’, ‘–enable-display’, ‘–enable-geometry’, ‘–enable-debug_flag’, ‘–enable-optimise’, ‘–disable-debugreport’, ‘–enable-uiactionsim’, ‘–with-sdl’, ‘–with-gnomeprint’]
/home/eshikafe/wxPython-src-2.9.5.0/configure --enable-unicode --prefix=/usr/local --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl --with-gnomeprint
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for --disable-gui… no

checking for XML_ParserCreate in -lexpat… yes
checking for GTK+ version…
checking for pkg-config… /usr/bin/pkg-config
checking for GTK+ - version >= 2.6.0… no
*** Could not run GTK+ test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
checking for pkg-config… (cached) /usr/bin/pkg-config
checking for GTK+ - version >= 3.0.0… no
*** Could not run GTK+ test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for gtk-config… no
checking for GTK - version >= 1.2.7… no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking for gtk-config… (cached) no
checking for GTK - version >= 1.2.3… no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk±2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by ‘pkg-config gtk±2.0 --libs’ or ‘gtk-config
–libs’ are in the LD_LIBRARY_PATH or equivalent.

Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File “build-wxpython.py”, line 378, in
wxbuild.main(wxscript, build_options)
File “/home/eshikafe/wxPython-src-2.9.5.0/build/tools/build-wxwidgets.py”, line 365, in main
“Error running configure”)
File “/home/eshikafe/wxPython-src-2.9.5.0/build/tools/build-wxwidgets.py”, line 80, in exitIfError
raise builder.BuildError(msg)
BuildError

I have the following GTK versions installed:

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ dpkg -l libgtk[0-9]* | grep ^i
ii libgtk2-perl 1:1.221-4 Perl interface to the 2.x series of the Gimp Toolkit library
ii libgtk2.0-0 2.18.3-1 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.18.3-1 The programs for the GTK+ graphical user interface library
ii libgtk2.0-cil 2.12.9-1 CLI binding for the GTK+ toolkit 2.12
ii libgtk2.0-common 2.18.3-1 Common files for the GTK+ graphical user interface library

Thanks.

BR,
Austin

austin aigbe wrote:

Hello,

Please how do I fix the following GTK error messages:

I have the following GTK versions installed:

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ dpkg -l libgtk[0-9]*
> grep ^i
ii libgtk2-perl 1:1.221-4 Perl interface to the 2.x series of the Gimp
Toolkit library
ii libgtk2.0-0 2.18.3-1 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.18.3-1 The programs for the GTK+ graphical user
interface library
ii libgtk2.0-cil 2.12.9-1 CLI binding for the GTK+ toolkit 2.12
ii libgtk2.0-common 2.18.3-1 Common files for the GTK+ graphical user
interface library

Those are the libraries, but you also need the corresponding development packages to be able to build software that uses those libraries. Start off with libgtk2.0-dev and its dependencies, and then add others as needed to get configure to complete successfully and to enable the features you need. Watch the output of configure to ensure that any optional components that you want are able to find the development files they need. For example, for the MediaCtrl you will need some gstreamer packages, and for the wx.html2.WebView classes you will need libwebkitgtk-dev.

···

--
Robin Dunn
Software Craftsman

Thanks Robin.

I have gotten past that stage. But now, I get the following errors:

include/wx/wxPython/wxPython.h:39: warning: deprecated conversion from string constant to ‘char*’
include/wx/wxPython/wxPython.h:39: warning: deprecated conversion from string constant to ‘char*’
src/gtk/html2_wrap.cpp: At global scope:
src/gtk/html2_wrap.cpp:2773: error: ISO C++ forbids declaration of ‘wxWebView’ with no type
src/gtk/html2_wrap.cpp:2773: error: ‘wxWebView’ declared as a ‘virtual’ field
src/gtk/html2_wrap.cpp:2773: error: expected ‘;’ before ‘’ token
src/gtk/html2_wrap.cpp:2775: error: ISO C++ forbids declaration of ‘wxWebView’ with no type
src/gtk/html2_wrap.cpp:2775: error: ‘wxWebView’ declared as a ‘virtual’ field
src/gtk/html2_wrap.cpp:2775: error: expected ‘;’ before ‘
’ token
src/gtk/html2_wrap.cpp:2789: error: expected ‘;’ before ‘(’ token
src/gtk/html2_wrap.cpp:2790: error: expected ‘;’ before ‘static’
src/gtk/html2_wrap.cpp: In member function ‘const wxString& wxWebViewEvent::GetTarget() const’:
src/gtk/html2_wrap.cpp:2848: warning: returning reference to temporary
src/gtk/html2_wrap.cpp: In member function ‘const wxString& wxWebViewEvent::GetURL() const’:
src/gtk/html2_wrap.cpp:2849: warning: returning reference to temporary
src/gtk/html2_wrap.cpp: In function ‘PyObject* _wrap_WebViewFactory_Create__SWIG_0(PyObject*, int, PyObject**)’:
src/gtk/html2_wrap.cpp:3231: error: ‘class wxWebViewFactory’ has no member named ‘Create’
src/gtk/html2_wrap.cpp: In function ‘PyObject* _wrap_WebViewFactory_Create__SWIG_1(PyObject*, int, PyObject**)’:
src/gtk/html2_wrap.cpp:3321: error: ‘class wxWebViewFactory’ has no member named ‘Create’
src/gtk/html2_wrap.cpp: In function ‘PyObject* _wrap_WebView_PreNew(PyObject*, PyObject*, PyObject*)’:
src/gtk/html2_wrap.cpp:3516: error: no matching function for call to ‘wxWebView::New(const wxString&)’
src/gtk/html2_wrap.cpp:2790: note: candidates are: static wxWebView* wxWebView::New(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, const wxString&, long int, const wxString&)
error: command ‘gcc’ failed with exit status 1
ERROR: failed building wxPython.
eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 4.4.1-4ubuntu9’ --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$

BR,
Austin

···

On Friday, December 20, 2013 11:59:56 PM UTC+1, Robin Dunn wrote:

austin aigbe wrote:

Hello,

Please how do I fix the following GTK error messages:

I have the following GTK versions installed:

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$ dpkg -l libgtk[0-9]*

grep ^i

ii libgtk2-perl 1:1.221-4 Perl interface to the 2.x series of the Gimp

Toolkit library

ii libgtk2.0-0 2.18.3-1 The GTK+ graphical user interface library

ii libgtk2.0-bin 2.18.3-1 The programs for the GTK+ graphical user

interface library

ii libgtk2.0-cil 2.12.9-1 CLI binding for the GTK+ toolkit 2.12

ii libgtk2.0-common 2.18.3-1 Common files for the GTK+ graphical user

interface library

Those are the libraries, but you also need the corresponding development
packages to be able to build software that uses those libraries. Start
off with libgtk2.0-dev and its dependencies, and then add others as
needed to get configure to complete successfully and to enable the
features you need. Watch the output of configure to ensure that any
optional components that you want are able to find the development files
they need. For example, for the MediaCtrl you will need some gstreamer
packages, and for the wx.html2.WebView classes you will need
libwebkitgtk-dev.


Robin Dunn

Software Craftsman

http://wxPython.org

You need to install the webkit dev package(s) I used the application
centre and then force configure to run again with:

···

On 22/12/13 18:22, austin aigbe wrote:

Thanks Robin.

    I have gotten past that stage. But now, I get the following

errors:

    include/wx/wxPython/wxPython.h:39: warning: deprecated

conversion from string constant to ‘char*’

    include/wx/wxPython/wxPython.h:39: warning: deprecated

conversion from string constant to ‘char*’

    src/gtk/html2_wrap.cpp: At global scope:

              src/gtk/html2_wrap.cpp:2773:

error: ISO C++ forbids declaration of ‘wxWebView’ with no type

              src/gtk/html2_wrap.cpp:2773:

error: ‘wxWebView’ declared as a ‘virtual’ field

              src/gtk/html2_wrap.cpp:2773:

error: expected ‘;’ before ‘*’ token

              src/gtk/html2_wrap.cpp:2775:

error: ISO C++ forbids declaration of ‘wxWebView’ with no type

              src/gtk/html2_wrap.cpp:2775:

error: ‘wxWebView’ declared as a ‘virtual’ field

              src/gtk/html2_wrap.cpp:2775:

error: expected ‘;’ before ‘*’ token

              src/gtk/html2_wrap.cpp:2789:

error: expected ‘;’ before ‘(’ token

              src/gtk/html2_wrap.cpp:2790:

error: expected ‘;’ before ‘static’

    src/gtk/html2_wrap.cpp: In member function ‘const wxString&

wxWebViewEvent::GetTarget() const’:

    src/gtk/html2_wrap.cpp:2848: warning: returning reference to

temporary

    src/gtk/html2_wrap.cpp: In member function ‘const wxString&

wxWebViewEvent::GetURL() const’:

    src/gtk/html2_wrap.cpp:2849: warning: returning reference to

temporary

    src/gtk/html2_wrap.cpp: In function ‘PyObject*

_wrap_WebViewFactory_Create__SWIG_0(PyObject*, int,
PyObject**)’:

              src/gtk/html2_wrap.cpp:3231:

error: ‘class wxWebViewFactory’ has no member named ‘Create’

    src/gtk/html2_wrap.cpp: In function ‘PyObject*

_wrap_WebViewFactory_Create__SWIG_1(PyObject*, int,
PyObject**)’:

              src/gtk/html2_wrap.cpp:3321:

error: ‘class wxWebViewFactory’ has no member named ‘Create’

              src/gtk/html2_wrap.cpp: In

function ‘PyObject* _wrap_WebView_PreNew(PyObject*, PyObject*,
PyObject*)’:

              src/gtk/html2_wrap.cpp:3516:

error: no matching function for call to ‘wxWebView::New(const
wxString&)’

    src/gtk/html2_wrap.cpp:2790: note: candidates are: static

wxWebView* wxWebView::New(wxWindow*, wxWindowID, const
wxString&, const wxPoint&, const wxSize&, const
wxString&, long int, const wxString&)

              error: command 'gcc' failed

with exit status 1

              ERROR: failed building

wxPython.

     gcc -v

Using built-in specs.
Target: i486-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu
4.4.1-4ubuntu9’
–with-bugurl=
–enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
–enable-shared --enable-multiarch --enable-linker-build-id
–with-system-zlib --libexecdir=/usr/lib
–without-included-gettext --enable-threads=posix
–with-gxx-include-dir=/usr/include/c++/4.4
–program-suffix=-4.4 --enable-nls --enable-clocale=gnu
–enable-libstdcxx-debug --enable-objc-gc --enable-targets=all
–disable-werror --with-arch-32=i486 --with-tune=generic
–enable-checking=release --build=i486-linux-gnu
–host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) BR,
Austin
On Friday, December 20, 2013 11:59:56 PM UTC+1, Robin Dunn
wrote:

python build-wxpython.py --force_config
--build_dir=../bld
eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$

file:///usr/share/doc/gcc-4.4/README.Bugs

eshikafe@eshikafe:~/wxPython-src-2.9.5.0/wxPython$

>           austin aigbe wrote:
> 
> 
>           > Hello,
> 
> 
>           >
> 
> 
>           > Please how do I fix the following GTK error messages:
> 
> 
> 
> 
>           > I have the following GTK versions installed:
> 
> 
>           >
> 
> 
>           > eshikafe@eshikafe:~/wxPython-          src-2.9.5.0/wxPython$
> dpkg -l libgtk[0-9]*
> 
> 
>           > | grep ^i
> 
> 
>           > ii libgtk2-perl 1:1.221-4 Perl interface to the 2.x
> series of the Gimp
> 
> 
>           > Toolkit library
> 
> 
>           > ii libgtk2.0-0 2.18.3-1 The GTK+ graphical user interface
> library
> 
> 
>           > ii libgtk2.0-bin 2.18.3-1 The programs for the GTK+
> graphical user
> 
> 
>           > interface library
> 
> 
>           > ii libgtk2.0-cil 2.12.9-1 CLI binding for the GTK+
> toolkit 2.12
> 
> 
>           > ii libgtk2.0-common 2.18.3-1 Common files for the GTK+
> graphical user
> 
> 
>           > interface library
> 
> 
>

</details>