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

Author Topic: sfeMovie project [v1.0 RC1 available]  (Read 136794 times)

0 Members and 2 Guests are viewing this topic.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
sfeMovie project [v1.0 RC1 available]
« Reply #45 on: July 03, 2011, 01:22:54 pm »
Thank you. Now msys.bat can be started after I moved it to the MinGW/msys/bin folder. I really don't understand why there is always a user-side configuration necessary before something works. It wouldn't have been difficult at all to set the MSYS working directory or to put the batch file to the right place. :roll:

Anyway, now it doesn't crash, but I get the following error when running build.sh from msys.bat:
Quote
Enabled outdevs:

License: LGPL version 2.1 or later
Creating config.mak and config.h...
config.h is unchanged
libavutil/avconfig.h is unchanged
libavcodec/../subdir.mak:96: *** missing separator.  Stop.
*** an error occured, aborting.

The line in this makefile contains the following code:
Code: [Select]
$(eval $(RULES))
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #46 on: July 03, 2011, 02:33:51 pm »
I didn't have to move any file to get the MinGW shell working. And I remember having your error.. but I can't remember how I got it fixed exactly. I would just recommend you to use MinGW with the link I gave.

I don't know which runtime version you're using and why you needed to manually add the msys.bat file.
Want to play movies in your SFML application? Check out sfeMovie!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
sfeMovie project [v1.0 RC1 available]
« Reply #47 on: July 03, 2011, 03:52:33 pm »
Quote from: "Ceylo"
I don't know which runtime version you're using and why you needed to manually add the msys.bat file.
I used the most recent MinGW version of the link you gave. And I just reinstalled MinGW with MSYS. The msys.bat probably didn't work directly because my path contains spaces (btw another limitation I can't stand).

For sfeMovie/build.sh, I also set up a path without spaces, but I still got the same error when building. I also tried to insert a tab before that line, to no avail... :?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #48 on: July 03, 2011, 04:08:46 pm »
Ok, I've no other idea for now. I'll remove MinGW, reinstall it and fully download sfeMovie and see what I get as soon as I have a bit more time.
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #49 on: July 03, 2011, 04:47:03 pm »
So.. here is what I've done:
- remove MinGW
- install MinGW from the link I gave (and select MSYS base system in the options of what-is-to-be-installed)
- download a zip of the latest sources of sfeMovie
- run "./build.sh windows" from the MSYS shell provided by MinGW

And it got to the compilation phase without any issue. Thus I don't know what's wrong with the build process on your computer. I let the default installation path for MinGW and the sfeMovie archive has been extracted to the desktop.
Want to play movies in your SFML application? Check out sfeMovie!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
sfeMovie project [v1.0 RC1 available]
« Reply #50 on: July 03, 2011, 06:18:11 pm »
When I don't check the 3rd box "MinGW developer toolkit" at the installer, I get errors because pr.exe isn't installed. I tried to install everything multiple times (with both the second box checked and unchecked). If there is no space in the path, msys.bat is able to start, but I still get the above error... I don't know whether it is a OS-related issue, I use Windows 7 64 Bit. The PATH environment variable contains both MinGW/bin and MinGW/msys/1.0/bin.

Thanks a lot for the support in this thread. I will possibly try it after some time again... If I should find out something, I will post it here.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #51 on: July 03, 2011, 07:01:27 pm »
Oh, I didn't know for the pr thing, thanks! Till know I just let these pr errors as they didn't prevent me from building sfeMovie.

As for the OS, I'm using Windows 7 32 bit, I don't think it's related. I've checked my path though, and here's what I had:
Quote
C:\Program Files\Common Files\Microsoft Shared\Windows Live;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Windows Live\Shared;
C:\Program Files\CMake 2.8\bin;
C:\Program Files\CodeBlocks\MinGW\bin;
C:\Program Files\CMake 2.8\bin;
C:\Program Files\GnuWin32\bin;
c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;
C:\Program Files\QuickTime\QTSystem\


I dropped these to see whether it was related to the current issue:
Quote
C:\Program Files\CodeBlocks\MinGW\bin;
C:\Program Files\CMake 2.8\bin;
C:\Program Files\GnuWin32\bin;

But it did not change anything (still building fine).

And if I do echo $PATH after that change I get:
Quote
.:
/usr/local/bin:
/mingw/bin:
/bin:
/c/Program Files/Common Files/Microsoft Shared/Windows Live:
/c/Windows/system32:
/c/Windows:
/c/Windows/System32/Wbem:
/c/Windows/System32/WindowsPowerShell/v1.0/:
/c/Program Files/Windows Live/Shared:
/c/Program Files/CMake 2.8/bin:
/c/Program Files/Microsoft SQL Server/100/Tools/Binn/:
/c/Program Files/Microsoft SQL Server/100/DTS/Binn/:
/c/Program Files/QuickTime/QTSystem/


Dunno whether this can be of any help. I'd love to know how you fix this, it'll be useful to other users.


Edit: I still can't get your issue but I noticed that when you want to build the libraries for GCC, you need to select the C++ compiler when installing MinGW. It was working fine for me because I also had CodeBlock's MinGW in the path and it was the one being used, but otherwise CMake doesn't find the C++ compiler.
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
sfeMovie project [v1.0 RC1 available]
« Reply #52 on: July 08, 2011, 11:25:51 am »
Hi

I really need to start using sfeMovie very soon. I use VS 2005. I think I have to recompile the Theora libs and also the sfeMovie code?

Do I have to use CMake at all??

Thanks
SFML 2.1

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #53 on: July 08, 2011, 12:48:00 pm »
Hi slotdev,

You should first have a look at the project's wiki : https://github.com/SFML/SFML/wiki/ProjectsfeMovie

You'll probably get the answer to most of your questions there, including how to build and use sfeMovie.
But note that even if I'm working on it on my free time, Visual Studio is still not supported and I can't give you any release date.

Ceylo
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #54 on: July 08, 2011, 07:32:16 pm »
Some news:

- I still can't get sfeMovie to work with Visual Studio. Still investigating. What's weird is that I *can* make a library that uses both FFmpeg and SFML within Visual Studio, and use that library, but not sfeMovie...

- sfeMovie works fine on Linux! This is probably due to the previous changes as I haven't especially worked on this port. However I have noticed a small bug : the video freezes when using pause/play. I know what's wrong and it shouldn't take much time to be fixed.
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
sfeMovie project [v1.0 RC1 available]
« Reply #55 on: July 13, 2011, 11:02:02 pm »
Hmm that is strange. What kind of library are you trying to make (static .lib or DLL?) and what kind of error messages are you getting?

What version of VS are you using?

Maybe I can try here. Can you can ZIP everything you have so far for the VS version, and send me a link?

Thanks

Ed
SFML 2.1

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #56 on: July 18, 2011, 12:23:17 pm »
Yup, I'll commit the latest changes as soon as I've some time and let you know so that you can give it a try (it's kinda mess for now). I tried both dynamic and static libraries, using Visual C++ Express 2010.
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
sfeMovie project [v1.0 RC1 available]
« Reply #57 on: July 23, 2011, 01:03:18 pm »
Thanks. I really need to get this working and into my project ASAP so anything you can do is appreciated :)
SFML 2.1

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
sfeMovie project [v1.0 RC1 available]
« Reply #58 on: July 23, 2011, 06:04:23 pm »
Should be ok for testing (and crashing) now. Download the zip file from https://github.com/Yalir/sfeMovie/zipball/master . Then perform the normal build.sh thing (see the sfeMovie wiki).

This will build static FFmpeg libraries and create a solution for Visual Studio. The build.sh script gives you some notes about some flags you need to manually set in Visual Studio. Then build the library with Visual Studio and you're done. This will produce a dynamic sfeMovie library with FFmpeg statically included.

If you want to use FFmpeg dynamic libraries, copy the configure lines when the build.sh script builds FFmpeg, and add --enable-shared. Then in Visual Studio replace the previously added .a libraries with the newly generated FFmpeg .lib files. When using the .lib files, you don't need libz.a, libgcc.a, libmingwex.a or libmoldname.a.

Note that I do not use the latest SFML 2.0 files, maybe it works with these too as I don't use sf::Input. There are included SFML binaries and headers from the revision I used.
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
sfeMovie project [v1.0 RC1 available]
« Reply #59 on: July 24, 2011, 05:27:28 pm »
Thanks! I've built it, and the (debug...) sfe-movie.dll is 17mb! Ouch :)

Anyway, I will look at it soon, and update to SFML 2.0.

Ed
SFML 2.1