Page 1 of 8

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Tue May 17, 2016 3:03 pm
by anonbeat
Please post here all gstreamer 1.0 and wxWidgets 3.0 related bugs...

The patch for the gstreamer 1.0 is already out [s]but need wxWidgets 2.8 and it is not available for Ubuntu 16.04. I expect the wxWidgets 3.0 patch to be out in a week or two... There are tons of details that need attention.[/s]

* The patch for wx3.0 is out. Please let me know anything wrong with it.
* Changed player controls. Now should look better.
* Changed the tabs and views close button
* Fixed bug in Tunein stations search that caused random segfaults
* Added option to save a Radio as User Radio
* Added audio cd support. You can now play audio cds and import them to your collections.
* Vumeters show Rms power also...

Packages are available from launchpad ppa:anonbeat/guayadeque

sudo add-apt-repository ppa:anonbeat/guayadeque
sudo apt-get update
sudo apt-get install guayadeque

Thanks in advance

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Fri May 20, 2016 4:16 pm
by anonbeat
How to install from git repository:

First go to a folder where you have write permissions. In this folder you are going to create a guayadeque folder and compile it from there.

sudo apt-get install git build-essential cmake gettext
sudo apt-get install libwxgtk3.0-dev libtag1-dev libwxsqlite3-3.0-dev libsqlite3-dev
sudo apt-get install libcurl4-openssl-dev libdbus-1-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgpod-dev libindicate-dev
cd folder_where_to_create_the_program
git clone https://github.com/anonbeat/guayadeque.git
cd guayadeque
./build
sudo make install

To Update
cd ~/guayadeque
git pull
./build
sudo make install

With that you should have it compiled from source and installed.

Thanks for your help

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 7:26 am
by radiometer
Hi,

thank you for the update!

I tried to build on opensuse leap with gstreamer 1.8.1 and wxgtk3 3.0.2 (gst 0.10 and wxw 2.8 are still available in the repos, the old guayadeque can thus still be used). Got the following error during compilation:


[...]
-- Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_baseu-3.0;-lwx_gtk3u_core-3.0;-lwx_gtk3u_adv-3.0;-lwx_baseu_net-3.0;-lwx_gtk3u_html-3.0;-lwx_baseu_xml-3.0;-lwx_gtk3u_aui-3.0;-lwx_gtk3u_qa-3.0 (found version "3.0.2")
-- Checking for module 'gstreamer-1.0'
-- Found gstreamer-1.0, version 1.8.1
[...]
[ 15%] Building CXX object src/CMakeFiles/guayadeque.dir/MainFrame.o
/home/philipp/Programs/compile/guayadeque-git/src/MainFrame.cpp: In member function ‘void guMainFrame::OnCreateNewLayout(wxCommandEvent&)’:
/home/philipp/Programs/compile/guayadeque-git/src/MainFrame.cpp:3816:112: error: no matching function for call to ‘guEditWithOptions::guEditWithOptions(guMainFrame* const, const wxString&, const wxString&, wxString, wxSortedArrayString&)’
_( "Layout:" ), wxString::Format( _( "Layout %lu" ), m_LayoutNames.GetCount() + 1 ), m_LayoutNames );
^
/home/philipp/Programs/compile/guayadeque-git/src/MainFrame.cpp:3816:112: note: candidate is:
In file included from /home/philipp/Programs/compile/guayadeque-git/src/MainFrame.cpp:27:0:
/home/philipp/Programs/compile/guayadeque-git/src/EditWithOptions.h:43:5: note: guEditWithOptions::guEditWithOptions(wxWindow*, const wxString&, const wxString&, const wxString&, const wxArrayString&)
guEditWithOptions( wxWindow * parent, const wxString &title, const wxString &label, const wxString &defval, const wxArrayString &items );
^
/home/philipp/Programs/compile/guayadeque-git/src/EditWithOptions.h:43:5: note: no known conversion for argument 5 from ‘wxSortedArrayString’ to ‘const wxArrayString&’
src/CMakeFiles/guayadeque.dir/build.make:590: recipe for target 'src/CMakeFiles/guayadeque.dir/MainFrame.o' failed


Cheers,
Philipp

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 11:38 am
by anonbeat
@radiometer: Can you post the initial part of the build process please?

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 1:07 pm
by radiometer
-- Using install prefix /usr ...
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Found wxWidgets: -L/usr/lib64;-pthread;;;-lwx_baseu-3.0;-lwx_gtk3u_core-3.0;-lwx_gtk3u_adv-3.0;-lwx_baseu_net-3.0;-lwx_gtk3u_html-3.0;-lwx_baseu_xml-3.0;-lwx_gtk3u_aui-3.0;-lwx_gtk3u_qa-3.0 (found version "3.0.2")
-- Checking for module 'gstreamer-1.0'
-- Found gstreamer-1.0, version 1.8.1
-- Checking for module 'sqlite3'
-- Found sqlite3, version 3.8.10.2
-- Checking for module 'libcurl'
-- Found libcurl, version 7.37.0
-- Checking for module 'taglib>=1.6.4'
-- Found taglib, version 1.9.1
-- Checking for module 'dbus-1'
-- Found dbus-1, version 1.8.16
-- Checking for module 'gdk-pixbuf-2.0'
-- Found gdk-pixbuf-2.0, version 2.31.6
-- Checking for module 'gio-2.0'
-- Found gio-2.0, version 2.44.1
-- Checking for module 'libgpod-1.0'
-- Found libgpod-1.0, version 0.8.3
-- Checking for module 'indicate-0.7'
-- No package 'indicate-0.7' found
-- Checking for module 'indicate-0.6'
-- No package 'indicate-0.6' found
-- Checking for module 'indicate'
-- No package 'indicate' found
libindicate library not found! No sound menu support!!
-- Checking for module 'appindicator-0.1'
-- No package 'appindicator-0.1' found
-- Checking for module 'wxsqlite3'
-- No package 'wxsqlite3' found
-- Checking for module 'wxsqlite3-3.0'
-- No package 'wxsqlite3-3.0' found
-- * Using internal wxSqlite support
Including extra wxsqlite folder
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/philipp/Programs/compile/guayadeque-git

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 1:19 pm
by anonbeat
radiometer : install libwxsqlite3-dev package please

see this post http://guayadeque.org/index.php?p=/disc ... ts-#Item_2

internal wxsqlite support have been dropped.

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 2:53 pm
by radiometer
Unfortunately, this package is not available in the repositories (I also didn't find a 3rd party repo that contains it). So I built it myself (version 3.3.1 from https://sourceforge.net/projects/wxcode ... Components). This installed the library libwxcode_gtk3u_wxsqlite3-3.0.so and the header files

wxsqlite3def.h
wxsqlite3.h
wxsqlite3dyn.h
wxsqlite3opt.h

Guayadeque's build system still doesn't find wxsqlite3. Everything is installed in the default paths, but also setting CPATH and LIBRARY_PATH manually didn't help.

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 3:08 pm
by anonbeat
you need to install pkg-config configuration file for this package...

This is the file from ubuntu

# Package Information for pkg-config

prefix=/usr
wxver=3.0
includedir=${prefix}/include/wx-${wxver}/
libdir=${prefix}/lib/x86_64-linux-gnu

Name: wxsqlite3-3.0
Description: SQLite3 C++ wrapper for use in programs based on the wxWidgets
Version:
Requires: sqlite3
Libs: -L${libdir} -lwxsqlite3-3.0
Libs.private: -lpthread
Cflags: -I${includedir}

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sat May 21, 2016 3:42 pm
by radiometer
I adjusted the paths and libname in the pkg-config file to match those on my system. Now I'm back to square one: same error message as in my first post.

Gstreamer 1.0 and wxWidgets 3.0 porting bug reports.

Posted: Sun May 22, 2016 3:53 am
by radiometer
Just found this on http://docs.wxwidgets.org/3.0/overview_container.html
wxSortedArrayString and wxArrayString are separate classes now and the former doesn't derive from the latter. If you need to convert a sorted array to a normal one, you must copy all the elements.