Discussion:
Installing 3.0.0 and GTK3 compile error
Steve Cookson
2014-05-29 08:48:50 UTC
Permalink
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.
--
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
Vadim Zeitlin
2014-05-29 14:49:08 UTC
Permalink
On Thu, 29 May 2014 09:48:50 +0100 Steve Cookson wrote:

SC> Well regarding my earlier post (Re: wxStaticBox 3.0.0 issues under
SC> GTK2), I tried upgrading 3.0.0 to GTK3 and failed. My installation
SC> script and compile errors follow.
SC>
SC> I've gone back to GTK2 which works apart from the wxStaticBox issues I
SC> mentioned before.

Both GTK3 compilation and wxStaticBox problems are fixed in 3.0 branch of
the svn. If you can't use it, please wait until 3.0.1.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Steve Cookson - gmail
2014-05-29 17:56:21 UTC
Permalink
Hi Vadim,
Post by Vadim Zeitlin
Both GTK3 compilation and wxStaticBox problems are fixed in 3.0 branch of
the svn. If you can't use it, please wait until 3.0.1.
I'm sorry, I don't understand the difference between 3.0.0 and 3.0 branch.

Regards

Steve.
--
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
Jamiil
2014-05-29 21:52:43 UTC
Permalink
GTK3, I thought this version was only for Linux, not for Windows 7+. Is this
correct?

-----Original Message-----
From: Steve Cookson - gmail
Sent: Thursday, May 29, 2014 1:56 PM
To: wx-***@googlegroups.com
Subject: Re: Installing 3.0.0 and GTK3 compile error

Hi Vadim,
Post by Vadim Zeitlin
Both GTK3 compilation and wxStaticBox problems are fixed in 3.0 branch of
the svn. If you can't use it, please wait until 3.0.1.
I'm sorry, I don't understand the difference between 3.0.0 and 3.0 branch.

Regards

Steve.
--
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
Steve Cookson
2014-06-01 20:48:51 UTC
Permalink
Hi Guys,
Post by Vadim Zeitlin
Both GTK3 compilation and wxStaticBox problems are fixed in 3.0 branch of
the svn. If you can't use it, please wait until 3.0.1.
I got his working, as mentioned in my other email.

The gtk3 compile worked but the wxStaticBox did not, same problems as
before.

At least gtk3 and wxStaticBox did not work together.

I'll try gtk2 with wxStaticBox.

Regards,

Steve.
--
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
'Catalin' via wx-users
2014-05-29 23:21:08 UTC
Permalink
Hi,

On Thursday, 29 May 2014, 20:56, Steve Cookson - gmail wrote:
I'm sorry, I don't understand the difference between 3.0.0 and 3.0 branch.
3.0.0 is the actual release (it's a tag).
3.0 branch is based on the latest release (in this caseĀ 3.0.0) and also contains the changes (mostly bug fixes) that will eventually lead to the next release (i.e. 3.0.1 in this case). You can get the code from 3.0 branch from here:
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
or here:
https://github.com/wxWidgets/wxWidgets/tree/WX_3_0_BRANCH


Regards,
C
--
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
Steve Cookson - gmail
2014-05-30 13:21:17 UTC
Permalink
Hi Guys,
3.0.0 is the actual release (it's a tag).
3.0 branch is based on the latest release (in this case 3.0.0) and
also contains the changes (mostly bug fixes) that will eventually lead
to the next release (i.e. 3.0.1 in this case). You can get the code
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
https://github.com/wxWidgets/wxWidgets/tree/WX_3_0_BRANCH
So if I do this, do I get the current 3.0 trunk?

svn co https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/ wxWidgets

As I'm using wxPerl, I don't really want to overwrite my whole 3.0.0
installation with untested files, if I do a find on the string gtk3 and
static box, will I get all the appropriate files? There aren't so many.

What do you think?

Regards,

Steve.
--
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
Vadim Zeitlin
2014-05-30 13:26:12 UTC
Permalink
On Fri, 30 May 2014 14:21:17 +0100 Steve Cookson - gmail wrote:

SCg> So if I do this, do I get the current 3.0 trunk?

3.0 != trunk.

SCg> svn co https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk/ wxWidgets

Use branches/WX_3_0_BRANCH instead of trunk.

SCg> As I'm using wxPerl, I don't really want to overwrite my whole 3.0.0
SCg> installation with untested files, if I do a find on the string gtk3 and
SCg> static box, will I get all the appropriate files? There aren't so many.
SCg>
SCg> What do you think?

Please don't do this.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Steve Cookson - gmail
2014-06-01 09:26:42 UTC
Permalink
Hi Vadim,
Post by Vadim Zeitlin
Cg> As I'm using wxPerl, I don't really want to overwrite my whole 3.0.0
SCg> installation with untested files, if I do a find on the string gtk3 and
SCg> static box, will I get all the appropriate files? There aren't so many.
SCg>
SCg> What do you think?
Please don't do this.
Are there any simple alternatives, like applying a small group of
patches to the 3.0.0 release?

Otherwise I have to hack into the wxPerl software and get it to download
the 3.0 branch instead, which feels like a bigger deal.

Regards

Steve.
--
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
Vadim Zeitlin
2014-06-01 15:46:57 UTC
Permalink
On Sun, 01 Jun 2014 10:26:42 +0100 Steve Cookson - gmail wrote:

SCg> Are there any simple alternatives, like applying a small group of
SCg> patches to the 3.0.0 release?

Getting the latest sources is by far the simplest thing to do.

SCg> Otherwise I have to hack into the wxPerl software and get it to download
SCg> the 3.0 branch instead, which feels like a bigger deal.

You don't have to hack anything, just build the latest wxWidgets yourself
and point Alien::wxWidgets to the already built version instead of letting
it download and built it on its own.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Steve Cookson - gmail
2014-06-04 22:26:05 UTC
Permalink
Hi Vadim,
Post by Vadim Zeitlin
You don't have to hack anything, just build the latest wxWidgets yourself
and point Alien::wxWidgets to the already built version instead of letting
it download and built it on its own.
Do you know how to do this?

The svn download and build was great. Alien build appeared to work, but
when I treed to build wxPerl, it said wxWidgets was not installed. So
I'm back to square 1.

When do you estimate that 3.0.1 will be released?

Regards

Steve.
--
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
Vadim Zeitlin
2014-06-04 22:31:43 UTC
Permalink
On Wed, 04 Jun 2014 23:26:05 +0100 Steve Cookson - gmail wrote:

SCg> On 01/06/14 16:46, Vadim Zeitlin wrote:
SCg> > You don't have to hack anything, just build the latest wxWidgets yourself
SCg> > and point Alien::wxWidgets to the already built version instead of letting
SCg> > it download and built it on its own.
SCg> Do you know how to do this?
SCg>
SCg> The svn download and build was great. Alien build appeared to work, but
SCg> when I treed to build wxPerl, it said wxWidgets was not installed.

This means something went wrong with Alien::Wx. What do you have in your
site/lib/Alien/wxWidgets/Config subdirectory of your Perl installation?
Has it really found the version of the library you built? You need to
either pass the appropriate command line options to "perl Build.pl" or set
WXWIN environment variable for this to happen.

SCg> When do you estimate that 3.0.1 will be released?

Normally on June 15 but I don't see how is it going to help you, to be
honest. You will still have to do the same thing.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Steve Cookson
2014-06-04 22:43:42 UTC
Permalink
Hi Vadim,
Post by Vadim Zeitlin
Normally on June 15 but I don't see how is it going to help you, to be
honest. You will still have to do the same thing.
Thanks for this. We'll try to update Alien-wxWidgets to accept 3.0.1.
It doesn't look very hard because the tag url's are pretty consistent
(although the windows versions look a bit messy).

But I'll have a look at the config file too. That might be easier.

Regards

Steve
--
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
Steve Cookson - gmail
2014-06-01 15:58:54 UTC
Permalink
Hi Guys,

I guess I'm making an elementary mistake, but there doesn't seems to be
a tarball activated on these links, so I can't download manually. And
my commands as follows give errors.
3.0 branch is based on the latest release (in this case 3.0.0) and
also contains the changes (mostly bug fixes) that will eventually lead
to the next release (i.e. 3.0.1 in this case). You can get the code from
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
svn co
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
wxWidgets
https://github.com/wxWidgets/wxWidgets/tree/WX_3_0_BRANCH
git clone https://github.com/wxWidgets/wxWidgets/tree/WX_3_0_BRANCH
wxWidgets

What is the correct syntax (I'd rather use git)

Regards,

Steve.
--
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
Igor Korot
2014-06-01 18:32:58 UTC
Permalink
Hi, Steve,

On Sun, Jun 1, 2014 at 8:58 AM, Steve Cookson - gmail
Post by Steve Cookson
Hi Guys,
I guess I'm making an elementary mistake, but there doesn't seems to be a
tarball activated on these links, so I can't download manually. And my
commands as follows give errors.
Please see http://www.wxwidgets.org/develop/code-repository/, the part
"Checking Out
wxWidgets with SVN". You will just have to use proper branch, like
Vadim pointed out.

Thank you.
Post by Steve Cookson
3.0 branch is based on the latest release (in this case 3.0.0) and also
contains the changes (mostly bug fixes) that will eventually lead to the
next release (i.e. 3.0.1 in this case). You can get the code from 3.0 branch
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
svn co http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
wxWidgets
https://github.com/wxWidgets/wxWidgets/tree/WX_3_0_BRANCH
git clone https://github.com/wxWidgets/wxWidgets/tree/WX_3_0_BRANCH
wxWidgets
What is the correct syntax (I'd rather use git)
Regards,
Steve.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
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
Steve Cookson - gmail
2014-06-01 19:07:31 UTC
Permalink
Post by Steve Cookson
svn co
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/branches/WX_3_0_BRANCH/
Post by Steve Cookson
Post by Steve Cookson
wxWidgets
Hi Igor,

Ok, finally got the correct syntax. It seems to be:

svn checkout
https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH
wxWidgets-3.0

ie use an 'svn' instead of 'viewvc'

Thanks all.

Regards

Steve.
--
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
Continue reading on narkive:
Loading...