Linux & wxMediaCtrl Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Linux & wxMediaCtrl

Post by emarti » Tue Jan 16, 2007 2:58 pm

Hi,
I builded wxGTK2-8.0. My Linux has gstream and I play mp3, wav files etc. with mplayer.

In sample folder, mediaplayer sample. When it builds, occurs error.

Code: Select all

------------------------
Source File(s) & Lib(s):
mediaplayer.cpp -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -L/usr/local/lib -pthread -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8
------------------------
Please, Wait for compiling ...
mediaplayer.cpp:83:2: #error "Not all required elements are enabled.  Please modify setup.h!"
mediaplayer.cpp:190: error: `wxMediaEvent' has not been declared
mediaplayer.cpp:190: error: ISO C++ forbids declaration of `event' with no type
mediaplayer.cpp:230: error: `wxMediaEvent' has not been declared
mediaplayer.cpp:230: error: ISO C++ forbids declaration of `event' with no type
mediaplayer.cpp:231: error: `wxMediaEvent' has not been declared
mediaplayer.cpp:231: error: ISO C++ forbids declaration of `event' with no type
mediaplayer.cpp:232: error: `wxMediaEvent' has not been declared
mediaplayer.cpp:232: error: ISO C++ forbids declaration of `event' with no type
mediaplayer.cpp:233: error: `wxMediaEvent' has not been declared
mediaplayer.cpp:233: error: ISO C++ forbids declaration of `event' with no type
mediaplayer.cpp:244: error: ISO C++ forbids declaration of `wxMediaCtrl' with no type
mediaplayer.cpp:244: error: expected `;' before '*' token
mediaplayer.cpp: In function `const wxChar* wxGetMediaStateText(int)':
mediaplayer.cpp:373: error: `wxMEDIASTATE_PLAYING' was not declared in this scope
mediaplayer.cpp:375: error: `wxMEDIASTATE_STOPPED' was not declared in this scope
mediaplayer.cpp: In member function `void wxMediaPlayerFrame::OnShowInterface(wxCommandEvent&)':
mediaplayer.cpp:851: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:852: error: `wxMEDIACTRLPLAYERCONTROLS_DEFAULT' was not declared in this scope
mediaplayer.cpp:853: error: `wxMEDIACTRLPLAYERCONTROLS_NONE' was not declared in this scope
mediaplayer.cpp: In member function `void wxMediaPlayerFrame::DoPlayFile(const wxString&)':
mediaplayer.cpp:973: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:973: error: `wxMEDIASTATE_PLAYING' was not declared in this scope
mediaplayer.cpp:975: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:980: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:995: error: `wxURI' was not declared in this scope
mediaplayer.cpp:995: error: expected `;' before "uripath"
mediaplayer.cpp:996: error: `uripath' was not declared in this scope
mediaplayer.cpp:998: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1010: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp: At global scope:
mediaplayer.cpp:1036: error: variable or field `OnMediaLoaded' declared void
mediaplayer.cpp:1036: error: `int wxMediaPlayerFrame::OnMediaLoaded' is not a static member of `class wxMediaPlayerFrame'
mediaplayer.cpp:1036: error: `wxMediaEvent' was not declared in this scope
mediaplayer.cpp:1036: error: expected primary-expression before ')' token
mediaplayer.cpp:1037: error: expected `,' or `;' before '{' token
mediaplayer.cpp: In member function `void wxMediaPlayerFrame::OnStop(wxCommandEvent&)':
mediaplayer.cpp:1238: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp: In member function `void wxMediaPlayerFrame::OnVolumeDown(wxCommandEvent&)':
mediaplayer.cpp:1382: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1383: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp: In member function `void wxMediaPlayerFrame::OnVolumeUp(wxCommandEvent&)':
mediaplayer.cpp:1396: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1397: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp: In member function `virtual void wxMediaPlayerTimer::Notify()':
mediaplayer.cpp:1421: error: `wxMediaCtrl' was not declared in this scope
mediaplayer.cpp:1421: error: `currentMediaCtrl' was not declared in this scope
mediaplayer.cpp:1421: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1426: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1436: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1462: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1464: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1488: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp:1492: error: 'class wxMediaPlayerNotebookPage' has no member named 'm_mediactrl'
mediaplayer.cpp: In constructor `wxMediaPlayerNotebookPage::wxMediaPlayerNotebookPage(wxMediaPlayerFrame*, wxNotebook*, const wxString&)':
mediaplayer.cpp:1541: error: `m_mediactrl' was not declared in this scope
mediaplayer.cpp:1541: error: `wxMediaCtrl' has not been declared
mediaplayer.cpp:1687: error: `wxEVT_MEDIA_PLAY' was not declared in this scope
mediaplayer.cpp:1688: error: `wxMediaEventHandler' was not declared in this scope
mediaplayer.cpp:1689: error: `wxEVT_MEDIA_PAUSE' was not declared in this scope
mediaplayer.cpp:1691: error: `wxEVT_MEDIA_STOP' was not declared in this scope
mediaplayer.cpp:1693: error: `wxEVT_MEDIA_FINISHED' was not declared in this scope
mediaplayer.cpp:1695: error: `wxEVT_MEDIA_LOADED' was not declared in this scope
mediaplayer.cpp:1696: error: invalid use of non-static member function `void wxMediaPlayerFrame::OnMediaLoaded(int&)'
mediaplayer.cpp: In member function `void wxMediaPlayerNotebookPage::OnEndSeek(wxScrollEvent&)':
mediaplayer.cpp:1743: error: `m_mediactrl' was not declared in this scope
mediaplayer.cpp: In member function `void wxMediaPlayerNotebookPage::OnVolChange(wxScrollEvent&)':
mediaplayer.cpp:1768: error: `m_mediactrl' was not declared in this scope
mediaplayer.cpp: In member function `void wxMediaPlayerNotebookPage::OnPBChange(wxScrollEvent&)':
mediaplayer.cpp:1782: error: `m_mediactrl' was not declared in this scope
mediaplayer.cpp: At global scope:
mediaplayer.cpp:1794: error: variable or field `OnMediaPlay' declared void
mediaplayer.cpp:1794: error: `int wxMediaPlayerNotebookPage::OnMediaPlay' is not a static member of `class wxMediaPlayerNotebookPage'
mediaplayer.cpp:1794: error: `wxMediaEvent' was not declared in this scope
mediaplayer.cpp:1794: error: expected primary-expression before ')' token
mediaplayer.cpp:1795: error: expected `,' or `;' before '{' token
mediaplayer.cpp:1804: error: variable or field `OnMediaPause' declared void
mediaplayer.cpp:1804: error: `int wxMediaPlayerNotebookPage::OnMediaPause' is not a static member of `class wxMediaPlayerNotebookPage'
mediaplayer.cpp:1804: error: `wxMediaEvent' was not declared in this scope
mediaplayer.cpp:1804: error: expected primary-expression before ')' token
mediaplayer.cpp:1805: error: expected `,' or `;' before '{' token
mediaplayer.cpp:1814: error: variable or field `OnMediaStop' declared void
mediaplayer.cpp:1814: error: `int wxMediaPlayerNotebookPage::OnMediaStop' is not a static member of `class wxMediaPlayerNotebookPage'
mediaplayer.cpp:1814: error: `wxMediaEvent' was not declared in this scope
mediaplayer.cpp:1814: error: expected primary-expression before ')' token
mediaplayer.cpp:1815: error: expected `,' or `;' before '{' token
mediaplayer.cpp:1825: error: variable or field `OnMediaFinished' declared void
mediaplayer.cpp:1825: error: `int wxMediaPlayerNotebookPage::OnMediaFinished' is not a static member of `class wxMediaPlayerNotebookPage'
mediaplayer.cpp:1825: error: `wxMediaEvent' was not declared in this scope
mediaplayer.cpp:1825: error: expected primary-expression before ')' token
mediaplayer.cpp:1826: error: expected `,' or `;' before '{' token

*** Compiler cannot create executable ***


How to do?
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/

emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti » Tue Jan 16, 2007 3:47 pm

I try ./configure --with-gtk=2 --enable-mediactrl

But it occurs errors. After build, not create (wx_media-2.8) lib.
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/

emarti
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 210
Joined: Sat May 07, 2005 8:24 pm
Location: Eskisehir, TURKEY
Contact:

Post by emarti » Thu Feb 01, 2007 11:21 pm

:cry: Can anybody hear to me?
- T U R K E Y ?
- I love this country!

WebSites:
http://mebt.sourceforge.net/
http://wxquran.sourceforge.net/

Post Reply