Hello All:

The link below is the one I used before to add stdint.h and inttypes.h. I use it for the builds on windws. I have sucessfully used mingw then use Microsofts implib tool to create a import lib for the dll.

Like they said below. ffmpeg will not build on MSVC and even if you can the ffmpeg dev team rely heavily on c standard that defines all uninitialized variables shall default to 0. MSVC does not put anything in an uninitialized variables and most of the variable definitions in ffmpeg core library are unnitialized. The only option is to use mingw to build a dll file and I use the implib to generate a import library for the dll.



Take care all


Garrett
On Jul 10, 2009, at 5:39 PM, Jason Daly wrote:

Jean-Sébastien Guay wrote:

We've built the ffmpeg dependency (with mingw; I wonder what issues
we'll encounter linking this against other VS object files),


As you probably know, you can't build ffmpeg with MSVC, but you can link other programs with it. This page has some info about that:

http://ffmpeg.arrozcru.org/wiki/index.php?title=MSVC



There shouldn't be any, it's a pure C library. I think our prebuilt
binaries were built with Mingw too (not least of which because the
ffmpeg project seem to not want to bother to make a cross-platform build
system)...


Yeah, it will work fine.


but we
can't figure out what we should set the FFMPEG_STDINT_INCLUDE_DIR CMake variable to. Without this set, OSG's CMake refuses to create the ffmpeg
plugin project file. Any help would be appreciated, thanks.


If you get the prebuilt binary, as JS said, you won't need it. Since you built from source, you need a version of inttypes.h/ stdint.h that is compatible with MSVC.
We've been using this one (also linked from the above wiki):

http://code.google.com/p/msinttypes/


Obviously, you'd set the variable in question to point to wherever you installed it.

--"J"

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to