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

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

0 Members and 1 Guest are viewing this topic.

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #225 on: November 14, 2013, 10:18:59 am »
I'm sorry but I have again failed to compile. Compile please for windows. (Debug and Release)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: sfeMovie project [v1.0 RC1 available]
« Reply #226 on: November 14, 2013, 12:57:18 pm »
I'm sorry but I have again failed to compile.
What failed exactly?

I think it's more important to have a clear build guide that everybody understands than providing binaries. I already built sfeMovie for Windows some time ago, but things may have changed meanwhile.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #227 on: November 14, 2013, 01:59:31 pm »
My actions:

1. I  downloaded and installed full MinGW with msys from official site. (C:\MinGW)
2. I  downloaded and installed Cmake with GUI ("C:\CMake 2.8")
3. I  execute "cmake-gui.exe" and choose a folder with unpacked sfeMovie sources
4. I set output folder for build
5. I press Configure button
6. I set generator for generate VS10 project
7. In the same window I set option: "Use default native compilers"
8. Next step compiling begin and compiler return error:

Compilation log:

The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/Program Files/Microsoft Visual Studio
  10.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/MinGW/msys/1.0/home/Rodion/CMakeFiles/CMakeTmp

 

  Run Build Command:C:\PROGRA~1\MICROS~2.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec1556368347

 


  Microsoft (R) Visual Studio Version 10.0.30319.1.


  Copyright (C) Microsoft Corp.  All rights reserved.


  1>------ Build started: Project: cmTryCompileExec1556368347, Configuration:
  Debug Win32 ------


  1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
  for 80x86


  1> Copyright (C) Microsoft Corporation.  All rights reserved.


  1>


  1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
  "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
  /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1556368347.dir\Debug\\"
  /Fd"cmTryCompileExec1556368347.dir\Debug\vc100.pdb" /Gd /TC /analyze-
  /errorReport:prompt testCCompiler.c


  1>


  1> testCCompiler.c


  1>LINK : fatal error LNK1123: failure during conversion to COFF: file
  invalid or corrupt


  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
  ==========


 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:11 (project)


Configuring incomplete, errors occurred!
See also "C:/MinGW/msys/1.0/home/Rodion/CMakeFiles/CMakeOutput.log".
See also "C:/MinGW/msys/1.0/home/Rodion/CMakeFiles/CMakeError.log".


/*******************************************************************/

CMakeError.log :
Determining if the C compiler works failed with the following output:
Change Dir: C:/MinGW/msys/1.0/home/Rodion/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~1\MICROS~2.0\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3931991746


Microsoft (R) Visual Studio Version 10.0.30319.1.

Copyright (C) Microsoft Corp. All rights reserved.

1>------ Build started: Project: cmTryCompileExec3931991746, Configuration: Debug Win32 ------

1>  Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

1>  Copyright (C) Microsoft Corporation.  All rights reserved.

1> 

1>  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3931991746.dir\Debug\\" /Fd"cmTryCompileExec3931991746.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:prompt testCCompiler.c

1> 

1>  testCCompiler.c

1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #228 on: November 14, 2013, 03:22:41 pm »
Not sure if that still applies but looking at the official website it says:

Quote from: sfeMovie
To build sfeMovie, make sure you have CMake, Make and Clang/GCC installed. You'll also need Visual Studio if you want to build sfeMovie for this IDE. Then download the latest sources (see Downloads section), and run build.sh from a command line interpreter. Directly using CMake will not work!
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #229 on: November 14, 2013, 03:53:15 pm »
Not sure if that still applies but looking at the official website it says:

Quote from: sfeMovie
To build sfeMovie, make sure you have CMake, Make and Clang/GCC installed. You'll also need Visual Studio if you want to build sfeMovie for this IDE. Then download the latest sources (see Downloads section), and run build.sh from a command line interpreter. Directly using CMake will not work!

official website it says also:

Quote
Windows specific

sfeMovie relies on FFmpeg, and to build FFmpeg you need a Unix environment plus some settings. This can be achieved by following these steps:

download the latest MinGW binary from this page
install MinGW, without forgetting to enable: C++ Compiler, MSYS Basic System and MinGW Developer ToolKit
install CMake (see CMake website) and accept setting CMake in your PATH
launch the MinGW shell (C:\MinGW\msys\1.0\msys.bat)
within the command line interpreter, go to the directory where you downloaded sfeMovie through the "cd" command, type "./build.sh windows" and return
Note if you use Visual Studio, you'll need to finish the compilation process using the generated sfeMovie.sln solution. For technical reasons, when targeting Visual Studio, the sfeMovie library is dynamically linked against FFmpeg (instead of static linking when targeting MinGW/CodeBlocks). This implies that you'll also have to copy the newly built FFmpeg DLLs from sfeMovie/deps/ffmpeg-build once you've built sfeMovie, in order to use the new set of decoders.

I also tried it, but in the source code folder there is no file  "build.sh" but there is a file "build_ffmpeg.sh".

execution of commands "./build_ffmpeg.sh windows" given nothing

« Last Edit: November 14, 2013, 04:14:12 pm by Rodion777 »

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #230 on: November 15, 2013, 04:01:57 pm »
Not sure if that still applies but looking at the official website it says:
Indeed these do no more apply (but that's a nice try :D), they only apply to the sfeMovie 1.0 source package.

The issue here isn't about sfeMovie but about how to setup CMake to work with VS. And the important part is described in SFML's tutorial: http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php (section Configuring your SFML build)
Quote
With Visual C++, you can either run CMake from the "Visual Studio command prompt" available from the start menu, or call the vcvars32.bat file of your Visual Studio installation; it will setup the environment variables properly.

> your_visual_studio_folder\VC\bin\vcvars32.bat
> cmake
The issue is that CMake doesn't know anything about your VS installation, thus you need to tell it how it can use VS compiler. That's what is done when executing the vcvars32.bat file (automatically executed when launching the VS command line prompt).

I'm not a Windows expert so I don't know if you really have to run CMake from the VS command line prompt or if there is a graphical way of doing so. I hope that'll help you though. Maybe SFML users know a bit more about this :) .
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #231 on: November 15, 2013, 04:09:29 pm »
I also tried it, but in the source code folder there is no file  "build.sh" but there is a file "build_ffmpeg.sh".

execution of commands "./build_ffmpeg.sh windows" given nothing
Indeed many things changed on the build system and build.sh does no more exist. As for the build_ffmpeg.sh, you should never need to execute it manually.

About my above post, from what I remember, I don't need to run vcvars32.bat, but I built sfeMovie on Windows a long time ago and I don't remember what I did to achievd this :(
Want to play movies in your SFML application? Check out sfeMovie!

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #232 on: November 15, 2013, 09:22:04 pm »
Hi!
I have a progress! I found out that .Net 4.5 framework interfere with cmake, after i unistalled .Net 4.5 framework there were less errors, but i have new errors:

CMake Error at C:/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


The C compiler identification is unknown
CMake Error at C:/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:11 (project)


The CXX compiler identification is unknown
Using these FFmpeg libraries:
- C:/MinGW/msys/1.0/home/Rodion/FFmpeg-binaries/lib/avformat.lib
- C:/MinGW/msys/1.0/home/Rodion/FFmpeg-binaries/lib/avdevice.lib
- C:/MinGW/msys/1.0/home/Rodion/FFmpeg-binaries/lib/avcodec.lib
- C:/MinGW/msys/1.0/home/Rodion/FFmpeg-binaries/lib/avutil.lib
- C:/MinGW/msys/1.0/home/Rodion/FFmpeg-binaries/lib/swscale.lib
Found SFML 2.0 in D:\Programming\C++LIB\SFML-2.0\include
Headers directories: D:\Programming\C++LIB\SFML-2.0\include include src C:/MinGW/msys/1.0/home/Rodion/sfe/deps/headers
Libraries directories: C:/MinGW/msys/1.0/home/Rodion/sfe/deps/windows-binaries;C:/MinGW/msys/1.0/home/Rodion/sfe/deps/windows-binaries/gcc
Configuring incomplete, errors occurred!
See also "C:/MinGW/msys/1.0/home/Rodion/CMakeFiles/CMakeOutput.log".
See also "C:/MinGW/msys/1.0/home/Rodion/CMakeFiles/CMakeError.log".
« Last Edit: November 15, 2013, 09:42:13 pm by Rodion777 »

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #233 on: November 15, 2013, 09:26:51 pm »
I don't know what produces the "errors" at the beginning of your log but
Quote
Could NOT find SFML (missing: SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY
  SFML_SYSTEM_LIBRARY SFML_AUDIO_LIBRARY)
is because you need to tell CMake where SFML is, by defining the SFML_ROOT variable in CMake. Set it to the path of the directory containing SFML's include and lib directories.
Want to play movies in your SFML application? Check out sfeMovie!

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #234 on: November 15, 2013, 09:30:52 pm »
I don't know what produces the "errors" at the beginning of your log but
Quote
Could NOT find SFML (missing: SFML_GRAPHICS_LIBRARY SFML_WINDOW_LIBRARY
  SFML_SYSTEM_LIBRARY SFML_AUDIO_LIBRARY)
is because you need to tell CMake where SFML is, by defining the SFML_ROOT variable in CMake. Set it to the path of the directory containing SFML's include and lib directories.

Thx, I fixed it

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #235 on: November 17, 2013, 09:46:04 pm »
Does your "I fixed it" means you could fully build sfeMovie for Windows?
Want to play movies in your SFML application? Check out sfeMovie!

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #236 on: November 18, 2013, 07:36:03 am »
No, just when compiling fewer errors

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #237 on: November 18, 2013, 08:03:20 am »
I won't be able to help if you don't give more details. At the moment I've absolutely no idea of where you're stuck.
Want to play movies in your SFML application? Check out sfeMovie!

Rodion777

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #238 on: November 19, 2013, 10:05:11 am »
Hi. Today i have a progress. I created  "Visual Studio 9 solution" with CMAKE. The problem was in the Visual Studio 2010, possible incompatibility. I also compiled sfeMovie, but i don't have success. After compilation, I got only "sfeMovie.dll". I tried to replace this dll in my project, after this my programm compiled successful, but return an  error after start execution : "Point of entry to the procedure ?initialize@SoundStream@sf@@IAEXII@Z not found in DLL avformat-55.dll".

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie project [v1.0 RC1 available]
« Reply #239 on: November 19, 2013, 10:33:01 am »
Why didn't you create a Visual Studio 2010 solution with CMake?

So from what I understand, you successfully built sfeMovie but you have errors in your project?
Can you describe exactly what you did to use sfeMovie in your own project?
Want to play movies in your SFML application? Check out sfeMovie!