Installing Phoenix on Fedora 26 with pip fails to recognize the installed GStreamer

Hi all,

I’m onFedora 26, trying to install Phoenix (because I’m doing Python 3.5, don’t want to go back to 2.7) with the followingcommand :

pip install --upgrade --trusted-host wxpython.org --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

At some point the configure scriptfails with :

checking for cairo_push_group… yes

checking for GST… configure: WARNING: GStreamer 1.0 not available, falling back to 0.10

checking for GST… configure: WARNING: GStreamer 0.10 not available, falling back to 0.8

configure: error: GStreamer not available

Error running configure

ERROR: failed building wxWidgets

but I do have 0.10 install, as dnf shows :

[root@localhost ~]# dnf info gstreamer

Last metadata expiration check: 0:17:34 ago on Mon Mar 6 19:34:46 2017.

Installed Packages

Name : gstreamer

Arch : x86_64

Epoch : 0

Version : 0.10.36

Release : 15.fc25

Size : 3.4 M

Repo : @System

From repo : updates

What could be wrong here ? Anyway I can fix this ?

I was also considering telling configure that I don’t need GStreamer, how can I do that when using pip ? or should I go for a manual build ? Any help appreciated.

Joao

Hi all,
I'm onFedora 26, trying to install Phoenix (because I'm doing Python 3.5,
don't want to go back to 2.7) with the followingcommand :

pip install --upgrade --trusted-host wxpython.org --pre -f
Index of /Phoenix/snapshot-builds wxPython_Phoenix

At some point the configure scriptfails with :

checking for cairo\_push\_group\.\.\. yes
checking for GST\.\.\. configure: WARNING: GStreamer 1\.0 not available,

falling back to 0.10
checking for GST... configure: WARNING: GStreamer 0.10 not available,
falling back to 0.8
configure: error: GStreamer not available
Error running configure
ERROR: failed building wxWidgets

but I *do* have 0.10 install, as dnf shows :

[root@localhost ~]# dnf info gstreamer
Last metadata expiration check: 0:17:34 ago on Mon Mar 6 19:34:46 2017.
Installed Packages
Name : gstreamer
Arch : x86_64
Epoch : 0
Version : 0.10.36
Release : 15.fc25
Size : 3.4 M
Repo : @System
From repo : updates

What could be wrong here ? Anyway I can fix this ?

You need to install the development package for gstreamer. It is gstreamer-devel (or gstreamer1-devel) if you want to use GStreamer 1.0 which is recommended.

I was also considering telling configure that I don't need GStreamer, how
can I do that when using pip ? or should I go for a manual build ? Any help
appreciated.

You can't do much configuration of the wxPython build currently (ie, turn off MediaCtrl). :frowning:

Scott

···

On Mon, 6 Mar 2017, joaom wrote:

I haven’t tried this on Fedora 25 (or later) yet, but following the installation instructions and similar notes for installing on ubuntu, I found I had to do this prior to building Phoenix on recent Fedora:

sudo dnf install webkitgtk webkitgtk-devel freeglut freeglut-devel libnotify libnotify-devel libtiff libtiff-devel libjpeg libjpeg-devel SDL SDL-devel gstreamermm-devel gstreamermm

export GST_LIBS="-lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2"
export GST_CFLAGS="-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2"

python build.py etg --nodoc sip build build_py

Hope that helps, I’d be happy to hear if anything there needs to be changed – I’m sure I’ll need it soon.

–Matt

···

On Monday, March 6, 2017 at 1:14:53 PM UTC-6, joaom wrote:

Hi all,

I’m onFedora 26, trying to install Phoenix (because I’m doing Python 3.5, don’t want to go back to 2.7) with the followingcommand :

pip install --upgrade --trusted-host wxpython.org --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

At some point the configure scriptfails with :

checking for cairo_push_group… yes

checking for GST… configure: WARNING: GStreamer 1.0 not available, falling back to 0.10

checking for GST… configure: WARNING: GStreamer 0.10 not available, falling back to 0.8

configure: error: GStreamer not available

Error running configure

ERROR: failed building wxWidgets

but I do have 0.10 install, as dnf shows :

[root@localhost ~]# dnf info gstreamer

Last metadata expiration check: 0:17:34 ago on Mon Mar 6 19:34:46 2017.

Installed Packages

Name : gstreamer

Arch : x86_64

Epoch : 0

Version : 0.10.36

Release : 15.fc25

Size : 3.4 M

Repo : @System

From repo : updates

What could be wrong here ? Anyway I can fix this ?

I was also considering telling configure that I don’t need GStreamer, how can I do that when using pip ? or should I go for a manual build ? Any help appreciated.

Joao

Hi Scott,

Thanks for the advice, but it didn’t work; I already had gstreamer-devel installed, in fact, and after installing gstreamer1 and gstreamer1-devel I got the very same error in configure.

I’ll try Matthew’s suggestion now.

Joao

···

On Monday, March 6, 2017 at 11:41:08 PM UTC+1, Scott Talbert wrote:

You need to install the development package for gstreamer. It is
gstreamer-devel (or gstreamer1-devel) if you want to use GStreamer 1.0
which is recommended.

Scott

That's odd. I would take a look at config.log then to see if there's any clue as to why it can't find gstreamer. I build wxWidgets all the time on Fedora, but I don't build it via Phoenix so perhaps there is something wrong there.

···

On Tue, 7 Mar 2017, joaom wrote:

Hi Scott,
Thanks for the advice, but it didn't work; I already had gstreamer-devel
installed, in fact, and after installing gstreamer1 and gstreamer1-devel I
got the very same error in configure.

Hi Matthew,

Thanks for your reply, I applied just the ‘dnf install’ you suggested, and that solved my problem with the configure ! I guess maybe the gstreamermm did it…

Anyway, now the build proceeds, then exits with a “file system full on /tmp”… although ‘df -k’ doesn’t show the fs as being full. Oh well :wink:

···

On Tuesday, March 7, 2017 at 5:57:06 AM UTC+1, Matthew Newville wrote:

I haven’t tried this on Fedora 25 (or later) yet, but following the installation instructions and similar notes for installing on ubuntu, I found I had to do this prior to building Phoenix on recent Fedora:

sudo dnf install webkitgtk webkitgtk-devel freeglut freeglut-devel libnotify libnotify-devel libtiff libtiff-devel libjpeg libjpeg-devel SDL SDL-devel gstreamermm-devel gstreamermm

export GST_LIBS="-lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lgthread-2.0 -pthread -lglib-2.0 -lxml2"
export GST_CFLAGS="-pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2"

python build.py etg --nodoc sip build build_py

Hope that helps, I’d be happy to hear if anything there needs to be changed – I’m sure I’ll need it soon.

–Matt