Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » MediaPlayer compiler error
MediaPlayer compiler error [message #33564] Wed, 24 August 2011 05:42 Go to next message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member
Hi,
When I build MediaPlayer project with gcc, message shows:
upp/bazaar/Media/MediaFile.h:198:2: Error£º¡®AVAudioConvert¡¯is not a type name.
I have already installed libav-0.7 and libSDL-1.2.14-10.fc14.
How to solve this problem?
Thanks.
Re: MediaPlayer compiler error [message #33565 is a reply to message #33564] Wed, 24 August 2011 07:51 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
o_wild wrote on Wed, 24 August 2011 05:42

Hi,
When I build MediaPlayer project with gcc, message shows:
upp/bazaar/Media/MediaFile.h:198:2: Error£º¡®AVAudioConvert¡¯is not a type name.
I have already installed libav-0.7 and libSDL-1.2.14-10.fc14.
How to solve this problem?
Thanks.

Hello o_wild

In file MediaFile.h, line 198 there is
AVAudioConvert *reformat_ctx;

Is it there where you get the error?


Best regards
Iñaki
Re: MediaPlayer compiler error [message #33568 is a reply to message #33565] Wed, 24 August 2011 12:18 Go to previous messageGo to next message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member
Yes.
Best regards,
o_wild
Re: MediaPlayer compiler error [message #33570 is a reply to message #33568] Wed, 24 August 2011 21:48 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello o_wild

ASAP I will upload an update of the package.

It is not really a complete version but at least it is an update.


Best regards
Iñaki
Re: MediaPlayer compiler error [message #36461 is a reply to message #33570] Tue, 29 May 2012 15:37 Go to previous messageGo to next message
o_wild is currently offline  o_wild
Messages: 28
Registered: December 2008
Location: Urmqi
Promising Member
Hi, so long not see. I tested the latest version of this package in Windows XP, with SDL and ffmpeg the safe way. A series of errors show that some types are unrecognised. For example, ConditionVariable,Thread (MediaFile.h). Where are definitions?
BTW, I changed these lines in SDLWrapper.h
from
	#include <SDL/SDL.h> 
	#include <SDL/SDL_thread.h> 
	#include <SDL/SDL_syswm.h>

to
#ifdef COMPILER_MSC
	#include <SDL.h> 
	#include <SDL_thread.h> 
	#include <SDL_syswm.h>
#endif
#ifdef COMPILER_GCC
	#include <SDL/SDL.h> 
	#include <SDL/SDL_thread.h> 
	#include <SDL/SDL_syswm.h>
#endif
#endif


Best regards,
Wilde
Re: MediaPlayer compiler error [message #36463 is a reply to message #36461] Tue, 29 May 2012 23:00 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Wilde

Thanks for your interest.

I have compiled and run actual Media_demo package without problems.

To do that you will need to copy SDL and ffmpeg folders. I prefer to put them under uppsrc/plugin. You can find a copy in http://sourceforge.net/projects/upp/files/GPL-sources/ , files SDL plugin_LGPL.7z and Ffmpeg plugin_LGPL.7z.

I have checked that actual SDLWrapper.h file is right. It contains this:
#ifndef _SDL_SDLWrapper_h_
#define _SDL_SDLWrapper_h_

#if defined(_WIN32)
	#include <SDL.h> 
	#include <SDL_thread.h> 
	#include <SDL_syswm.h>
#else
	#include <SDL/SDL.h>
	#include <SDL/SDL_thread.h>
	#include <SDL/SDL_syswm.h>
#endif

#undef main

#define INT64_C(val) val##LL
#define UINT64_C(val) val##ULL 

#endif



Best regards
Iñaki
Previous Topic: Why qtfequations do not show properly?
Next Topic: PopEasy
Goto Forum:
  


Current Time: Fri Mar 29 10:04:11 CET 2024

Total time taken to generate the page: 0.02140 seconds