Solved XBMC compile error "libavcodec"
#1
I just downloaded latest git and and ran both "DownloadBuildDeps.bat" and "DownloadMingwBuildEnv.bat" with no errors.
Then I tryed to compile via VS2010express and got one error:
Code:
AddonCallbacksCodec.cpp
3>..\..\xbmc\addons\AddonCallbacksCodec.cpp(27): fatal error C1083: Cannot open include file: 'libavcodec/avcodec.h': No such file or directory
If I am not mistaken, "libavcodec" is part of ffmpeg? How do I include this?

The wiki page says the following under "Setting up the build Environment":
2. DownloadMingwBuildEnv.bat (also located in the folder project\BuildDependencies) to download the necessary items for building the ffmpeg libraries.
3. buildmingwlibs.bat (in project\Win32BuildSetup). This will build the ffmpeg libraries.


I ran the first one allready, but the seccond one, "buildmingwlibs.bat" is nowhere to be found. It is not located in project\Win32BuildSetup folder. Only have "buildffmpeg.sh".

What am I missing here?
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#2
The wiki page isn't up-to-date yet. Run xbmc/project/Win32BuildSetup/BuildSetup.bat once which should build ffmpeg for you as part of the process. After that you should be fine to compile in VS2010 Express.
As an alternative you can try to run tools/buildsteps/win32/make-mingwlibs.bat but I'm not 100% sure if that works as a standalone batch script or if it requires a certain environment.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
Thank you very much Montellese Smile

It worked by using the make-mingwlibs.bat file
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#4
http://wiki.xbmc.org/index.php?title=HOW...ource_code

I've updated the wiki on Saturday. Did I miss a page?
And yes the make-mingwlibs.bat should work standalone.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
Maybe I am reading this wrong...

Under
3 Setting up the build Environment, Step 3:
Code:
buildmingwlibs.bat (in project\Win32BuildSetup). This will build the ffmpeg libraries.
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#6
doh, I've edited the wrong line.
Thanks for the pointer and fixed.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC compile error "libavcodec"0