Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - A Docile Sloth

Pages: [1]
1
I've seen posts with similar errors where it looks to be related to recent changes in MinGW. Didn't check further about this point for now.
Fair enough. I'll have a look around and see what I can find out.

Can you try with link and tell me if it also crashes? If it doesn't then something is wrong with the build environment that generate the downloadable files...

This .dll doesn't result in a crash. The video plays fine :)

2
Thanks for the quick reply.

1. Does the file play fine in other players?
Yes, it plays fine in VLC.

2. Can you give a few lines before "make: *** [libavutil/file.o] Error 1" or the whole log if it's small?
Certainly. It's quite long so I'll post the lines above the make error
Code: [Select]
...
1>  CC libavutil/downmix_info.o
1>  CC libavutil/error.o
1>  CC libavutil/eval.o
1>  C:/Users/Will/AppData/Local/Temp/ffmpeg-2.4.3/libavutil/eval.c: In function 'eval_expr':
1>  C:/Users/Will/AppData/Local/Temp/ffmpeg-2.4.3/libavutil/eval.c:247:21: warning: 'av_reverse' is deprecated (declared at C:/Users/Will/AppData/Local/Temp/ffmpeg-2.4.3/libavutil/common.h:79) [-Wdeprecated-declarations]
1>                       p->var[0] = av_reverse[i&255]*x_max/255;
1>                       ^
1>  CC libavutil/fifo.o
1>  CC libavutil/file.o
1>  In file included from C:/Users/Will/AppData/Local/Temp/ffmpeg-2.4.3/libavutil/file.c:27:0:
1>  c:\mingw\include\unistd.h:79:1: error: expected ',' or ';' before 'int'
1>   int __mingw_sleep( unsigned long, unsigned long );
1>   ^
1>  In file included from C:/Users/Will/AppData/Local/Temp/ffmpeg-2.4.3/libavutil/file.c:27:0:
1>  c:\mingw\include\unistd.h:105:1: error: expected ',' or ';' before 'int'
1>   int nanosleep( const struct timespec *, struct timespec * );
1>   ^
1>  c:\mingw\include\unistd.h:125:28: error: expected ',' or ';' before 'usleep'
1>   int _cdecl __MINGW_NOTHROW usleep( useconds_t )__MINGW_ATTRIB_DEPRECATED;
1>                              ^
1>  c:\mingw\include\unistd.h:138:10: error: conflicting types for '_cdecl'
1>   unsigned _cdecl __MINGW_NOTHROW sleep( unsigned );
1>            ^
1>  c:\mingw\include\unistd.h:125:5: note: previous declaration of '_cdecl' was here
1>   int _cdecl __MINGW_NOTHROW usleep( useconds_t )__MINGW_ATTRIB_DEPRECATED;
1>       ^
1>  c:\mingw\include\unistd.h:138:33: error: expected ',' or ';' before 'sleep'
1>   unsigned _cdecl __MINGW_NOTHROW sleep( unsigned );
1>                                   ^
1>  c:\mingw\include\unistd.h:153:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftruncate'
1>   int _cdecl ftruncate( int, off_t );
1>              ^
1>  make: *** [libavutil/file.o] Error 1
1>  *** an error occured, aborting.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.

3. Can you provide a full package with all the lib, binaries, audio file, sources and VS project so that I can test?
Here is an "as simple as possible" program that breaks on .play() . Also included the SFML and sfeMovie files I used to make it. I keep the SFML folder in C:\. It's on Dropbox (click me)

If there's anything else you need to know, let me know.

3
Hey,

I've been struggling with sfeMovie for the last few days and was hoping that someone may be able to offer some help.

I am using the downloadable builds of the library from here. Specifically the Windows (Visual Studio 2013) Debug and Release for Free decoders (although the issue happens with the All Decoders as well).

When I call the .play() function it causes the program crash. This is with both my program and the sample program. The dubug throws:

Code: [Select]
Debug: ..\src\AudioStream.cpp:171 sfe::AudioStream::onGetData() - No more audio packets, do not go further
into the console after the call to .play() . I was attempting to play small_1.ogv for the sample program.

I am using:
Visual Studio 2013
SFML 2.2
Dynamically linking to: sfeMovie.lib;sfml-audio.lib;sfml-graphics.lib;sfml-window.lib;sfml-system.lib
with all the .dll copied into the run directory.

I feel like it's me doing something stupid or other people would probably be bringing this up too.

Also tried to build sfeMovie myself to see if that would work but keep getting the error
Code: [Select]
2>  make: *** [libavutil/file.o] Error 1
2>  *** an error occured, aborting.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code 1.
resulting in
Code: [Select]
3>LINK : fatal error LNK1104: cannot open file 'FFmpeg-binaries\lib\avformat.lib'but that's almost certainly me. Was following the Getting Started notes in Visual Studio 2013.

Any help would be gratefully appreciated.

Pages: [1]