Steve Cookson
2014-05-29 08:48:50 UTC
Hi Guys,
Well regarding my earlier post (Re: wxStaticBox 3.0.0 issues under
GTK2), I tried upgrading 3.0.0 to GTK3 and failed. My installation
script and compile errors follow.
I've gone back to GTK2 which works apart from the wxStaticBox issues I
mentioned before.
Regards
Steve
############### Install script #####################
Clean install of Kubuntu 14.04 lts from USB drive, then:
#!/bin/bash
cd ~
dpkg --configure -a # Restart in case of crash.
apt-get -y update
apt-get -y upgrade
#Development environment.
apt-get -y install make # Needed for cpan
apt-get -y install g++
apt-get -y install gcc
apt-get -y install subversion # Needed for Alien-wxWidgets and wxPerl
apt-get -y install libgconf2-dev libgtk-3-dev # Needed as wxMediaCtrl
dependency
apt-get -y install libexpat1-dev libtiff4-dev libpng12-dev libjpeg-dev
libcairo2-dev libxmu-dev libwebkitgtk-dev
#Video enviroment
apt-get -y install libgstreamer0.10-dev # Needed for Alien-wxWidgets and
wxPerl
apt-get -y install libgstreamer-plugins-base0.10-dev # Needed for
Alien-wxWidgets and wxPerl
apt-get -y install cups-pdf #
apt-get -y install apparmor-utils
aa-complain cupsd
# Perl modules
cpan -i ExtUtils::XSpp # Needed by wxPerl/Alien install
cpan -i ExtUtils::ParseXS # Needed by wxPerl Makefile.PL
cpan -i XSLoader # Needed by wxPerl/Alien install
cpan -i Encode # Needed for utf-8
cpan -i Test::Pod
cpan -i ExtUtils::MakeMaker
cpan -i Pod::Coverage
cpan -i Test::Pod::Coverage
cpan -i OpenGL
# Download and install Alien-wxWidgets, which downloads and compiles
wxWidgets
apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev
libsdl1.2-dev # Install OpenGL
apt-get -y install libwxgtk3.0-dev
#
cd ~
rm -rf Alien-wxWidgets
svn co https://svn.code.sf.net/p/wxperl/code/Alien-wxWidgets/trunk
Alien-wxWidgets
cd Alien-wxWidgets
perl Build.PL \
--wxWidgets-build=1 \
--wxWidgets-graphicscontext \
--wxWidgets-build-opengl=1 \
--wxWidgets-version=3.0.0 \
--wxWidgets-source=tar.bz2 \
--wxWidgets-unicode=1 --wx-unicode='yes' --wxWidgets-build-opengl=1 \
--wxWidgets-extraflags="--enable-graphics_ctx \
--disable-compat26 \
--enable-mediactrl \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-regex=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--with-expat=builtin \
--with-libxpm=builtin \
--with-gtk=3\
--with-gtkprint "
perl Build # Download and compile wxWidgets.
######################### Compile output ##############################
../src/gtk/timer.cpp:36:5: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/timer.cpp:36:23: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/timer.cpp:41:5: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
../src/gtk/timer.cpp:41:23: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/bk-deps g++ -c -o
coredll_gtk_tooltip.o -I./.pch/wxprec_coredll -D__WXGTK__ -DWXBUILDING
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_CORE
-DwxUSE_BASE=0 -fPIC -DPIC -Wall -Wundef -Wunused-parameter
-Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/lib/wx/include/gtk3-unicode-3.0
-I../include -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
-DWX_PRECOMP -pthread -O2 -fno-strict-aliasing -pthread
-I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1
-I/usr/include/libpng12 -fvisibility=hidden -fvisibility-inlines-hidden
../src/gtk/tooltip.cpp
/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/bk-deps g++ -c -o
coredll_gtk_toplevel.o -I./.pch/wxprec_coredll -D__WXGTK__ -DWXBUILDING
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_CORE
-DwxUSE_BASE=0 -fPIC -DPIC -Wall -Wundef -Wunused-parameter
-Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/lib/wx/include/gtk3-unicode-3.0
-I../include -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
-DWX_PRECOMP -pthread -O2 -fno-strict-aliasing -pthread
-I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1
-I/usr/include/libpng12 -fvisibility=hidden -fvisibility-inlines-hidden
../src/gtk/toplevel.cpp
../src/gtk/toplevel.cpp: In function 'gboolean
request_frame_extents_timeout(void*)':
../src/gtk/toplevel.cpp:508:5: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/toplevel.cpp:508:23: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/toplevel.cpp:515:5: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
../src/gtk/toplevel.cpp:515:23: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
../src/gtk/toplevel.cpp: In member function 'bool
wxTopLevelWindowGTK::Create(wxWindow*, wxWindowID, const wxString&,
const wxPoint&, const wxSize&, long int, const wxString&)':
../src/gtk/toplevel.cpp:733:78: error: 'GDK_IS_WAYLAND_SCREEN' was not
declared in this scope
GDK_IS_WAYLAND_SCREEN(gtk_window_get_screen(GTK_WINDOW(m_widget))) &&
^
make: *** [coredll_gtk_toplevel.o] Error 1
system: make all: 512 at Build line 60.
Well regarding my earlier post (Re: wxStaticBox 3.0.0 issues under
GTK2), I tried upgrading 3.0.0 to GTK3 and failed. My installation
script and compile errors follow.
I've gone back to GTK2 which works apart from the wxStaticBox issues I
mentioned before.
Regards
Steve
############### Install script #####################
Clean install of Kubuntu 14.04 lts from USB drive, then:
#!/bin/bash
cd ~
dpkg --configure -a # Restart in case of crash.
apt-get -y update
apt-get -y upgrade
#Development environment.
apt-get -y install make # Needed for cpan
apt-get -y install g++
apt-get -y install gcc
apt-get -y install subversion # Needed for Alien-wxWidgets and wxPerl
apt-get -y install libgconf2-dev libgtk-3-dev # Needed as wxMediaCtrl
dependency
apt-get -y install libexpat1-dev libtiff4-dev libpng12-dev libjpeg-dev
libcairo2-dev libxmu-dev libwebkitgtk-dev
#Video enviroment
apt-get -y install libgstreamer0.10-dev # Needed for Alien-wxWidgets and
wxPerl
apt-get -y install libgstreamer-plugins-base0.10-dev # Needed for
Alien-wxWidgets and wxPerl
apt-get -y install cups-pdf #
apt-get -y install apparmor-utils
aa-complain cupsd
# Perl modules
cpan -i ExtUtils::XSpp # Needed by wxPerl/Alien install
cpan -i ExtUtils::ParseXS # Needed by wxPerl Makefile.PL
cpan -i XSLoader # Needed by wxPerl/Alien install
cpan -i Encode # Needed for utf-8
cpan -i Test::Pod
cpan -i ExtUtils::MakeMaker
cpan -i Pod::Coverage
cpan -i Test::Pod::Coverage
cpan -i OpenGL
# Download and install Alien-wxWidgets, which downloads and compiles
wxWidgets
apt-get -y install libglu1-mesa-dev freeglut3-dev mesa-common-dev
libsdl1.2-dev # Install OpenGL
apt-get -y install libwxgtk3.0-dev
#
cd ~
rm -rf Alien-wxWidgets
svn co https://svn.code.sf.net/p/wxperl/code/Alien-wxWidgets/trunk
Alien-wxWidgets
cd Alien-wxWidgets
perl Build.PL \
--wxWidgets-build=1 \
--wxWidgets-graphicscontext \
--wxWidgets-build-opengl=1 \
--wxWidgets-version=3.0.0 \
--wxWidgets-source=tar.bz2 \
--wxWidgets-unicode=1 --wx-unicode='yes' --wxWidgets-build-opengl=1 \
--wxWidgets-extraflags="--enable-graphics_ctx \
--disable-compat26 \
--enable-mediactrl \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-regex=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--with-expat=builtin \
--with-libxpm=builtin \
--with-gtk=3\
--with-gtkprint "
perl Build # Download and compile wxWidgets.
######################### Compile output ##############################
../src/gtk/timer.cpp:36:5: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/timer.cpp:36:23: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/timer.cpp:41:5: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
../src/gtk/timer.cpp:41:23: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/bk-deps g++ -c -o
coredll_gtk_tooltip.o -I./.pch/wxprec_coredll -D__WXGTK__ -DWXBUILDING
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_CORE
-DwxUSE_BASE=0 -fPIC -DPIC -Wall -Wundef -Wunused-parameter
-Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/lib/wx/include/gtk3-unicode-3.0
-I../include -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
-DWX_PRECOMP -pthread -O2 -fno-strict-aliasing -pthread
-I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1
-I/usr/include/libpng12 -fvisibility=hidden -fvisibility-inlines-hidden
../src/gtk/tooltip.cpp
/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/bk-deps g++ -c -o
coredll_gtk_toplevel.o -I./.pch/wxprec_coredll -D__WXGTK__ -DWXBUILDING
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/src/tiff/libtiff
-I../src/tiff/libtiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex -I../src/expat/lib -DWXUSINGDLL -DWXMAKINGDLL_CORE
-DwxUSE_BASE=0 -fPIC -DPIC -Wall -Wundef -Wunused-parameter
-Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=64
-I/home/image/Alien-wxWidgets/wxWidgets-3.0.0/bld/lib/wx/include/gtk3-unicode-3.0
-I../include -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/harfbuzz
-I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/libpng12
-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2
-DWX_PRECOMP -pthread -O2 -fno-strict-aliasing -pthread
-I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/pixman-1
-I/usr/include/libpng12 -fvisibility=hidden -fvisibility-inlines-hidden
../src/gtk/toplevel.cpp
../src/gtk/toplevel.cpp: In function 'gboolean
request_frame_extents_timeout(void*)':
../src/gtk/toplevel.cpp:508:5: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/toplevel.cpp:508:23: warning: 'void gdk_threads_enter()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:46)
[-Wdeprecated-declarations]
gdk_threads_enter();
^
../src/gtk/toplevel.cpp:515:5: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
../src/gtk/toplevel.cpp:515:23: warning: 'void gdk_threads_leave()' is
deprecated (declared at /usr/include/gtk-3.0/gdk/gdkthreads.h:48)
[-Wdeprecated-declarations]
gdk_threads_leave();
^
../src/gtk/toplevel.cpp: In member function 'bool
wxTopLevelWindowGTK::Create(wxWindow*, wxWindowID, const wxString&,
const wxPoint&, const wxSize&, long int, const wxString&)':
../src/gtk/toplevel.cpp:733:78: error: 'GDK_IS_WAYLAND_SCREEN' was not
declared in this scope
GDK_IS_WAYLAND_SCREEN(gtk_window_get_screen(GTK_WINDOW(m_widget))) &&
^
make: *** [coredll_gtk_toplevel.o] Error 1
system: make all: 512 at Build line 60.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users