FFMPEG problem when trying to build Blender using CMake and VS2013-x64

I’m new to compiling Blender. When configuring project using CMake with ‘Visual Studio 12 2013 Win64’ generator, I got these warnings:

CMake Warning at CMakeLists.txt:1356 (find_package):
  By not providing "FindFFMPEG.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "FFMPEG", but
  CMake did not find one.

  Could not find a package configuration file provided by "FFMPEG" with any
  of the following names:

    FFMPEGConfig.cmake
    ffmpeg-config.cmake

  Add the installation prefix of "FFMPEG" to CMAKE_PREFIX_PATH or set
  "FFMPEG_DIR" to a directory containing one of the above files.  If "FFMPEG"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Warning at CMakeLists.txt:1358 (message):
  Using HARDCODED ffmpeg locations


Could NOT find OpenEXR (missing:  _openexr_LIBRARIES) 
CMake Warning at CMakeLists.txt:1376 (message):

Using HARDCODED OpenEXR locations

I don’t why CMake can’t find FFMPEG libraries, I already downloaded all lib files (win64 and win64_vc12) from Blender Repository and I found ‘ffmpeg’ folder with couple of dll and lib files inside. This warning can be avoided if I don’t use ‘WITH_CODEC_FFMPEG’ and ‘WITH_IMAGE_REDCODE’. However, the project will compiled just fine using VS2013 Express with or without those options.

The real problem is, I can’t run compiled exe and got this Python error on command line.

ImportError: No module named encodings

Do anyone know about this issue? Do I miss anything?

Oh yeah, I’m using Windows 7 SP1 x64 and CMake 3.1.0.

Hi! I’ve just build the Blender sources of the day with Cmake and VS2013 with x64 compiler on windows 8 and I’ve got no error during compilation. I’ve the same warnings in Cmake but it causes no problem.

in VS 2013:

  • Did you configure VS for release build? (instead of DEBUG)

  • In the solution explorer, did you right click on INSTALL, then generate (or build)?

Did you get any error during compilation?

Did you download libs in other directory than blender sources? (it’s a common error to download libs in the blender sources folder)

(you can copy this file in your “BlenderDEV” folder: http://www.mediafire.com/view/b5znlu3ducaaxsd/UpdateVS64bits.bat

and run it to make sure we have the same sources)

Yeah, it works!
I didn’t know I should build INSTALL project rather than ALL_BUILD project.
Thanks so much!

You’re welcome!