Compiling with intel ICC 10.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling with intel ICC 10.1

Erik Van Grunderbeeck
Hello;

 

I have a build of ffmpeg compiled with the intel compiler (version 10.1). it
works fine for almost everything, except the wma decoder. The decoder just
seems to output random noise. Running through the debugger I can see nothing
going wrong (up and including to wmadec.c).

 

I have been googling for it and found some older references (around intel
compiler 8.0) for problems with it, but nothing really helpful.

 

Anyone with any experience with the intel compiler have any clues?

 

Cheers;

 

Btw; if anyone is interested after I get it working; the build compiles (and
debug's) fine in Visual Studio 2005. That's debugging everything, stepping
though all the libav* source from VC 2005. Ill write a how-to on it if
wanted.

 

Erik

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Compiling with intel ICC 10.1

Benjamin Larsson-2
Erik Van Grunderbeeck wrote:

> Hello;
>
>  
>
> I have a build of ffmpeg compiled with the intel compiler (version 10.1). it
> works fine for almost everything, except the wma decoder. The decoder just
> seems to output random noise. Running through the debugger I can see nothing
> going wrong (up and including to wmadec.c).
>
>  
>
> I have been googling for it and found some older references (around intel
> compiler 8.0) for problems with it, but nothing really helpful.
>
>  
>
> Anyone with any experience with the intel compiler have any clues?
>
>  
>
> Cheers;
>
>  
>
> Btw; if anyone is interested after I get it working; the build compiles (and
> debug's) fine in Visual Studio 2005. That's debugging everything, stepping
> though all the libav* source from VC 2005. Ill write a how-to on it if
> wanted.
>
>  
>
> Erik

Please do write up what you did to get it working. I'm interested.

MvH
Benjamin Larsson


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Compiling with intel ICC 10.1

Erik Van Grunderbeeck
> Please do write up what you did to get it working. I'm interested.
>
> MvH
> Benjamin Larsson

Hi;

My previous msg contained a workflow on how to get it running.

The most important part for figuring out everything was getting the macro's
to expand correctly (in one or 2 cases I had to change asm macro's from
#defines to inline's to make icc happy). I also def-ed asm to __asm__ .

The rest was basically figuring it out from linker errors. Eg if function X
wasn't available in the export it usually means that some headers where not
included, and expansion wasn't happing. This usually meant including
"libavcodec/internal.h" or "libavutil/intreadwrite.h". Google was my friend
on some errors (people on Mplayer seem to have done some work with icc on
win32 in the past). The release build needed some changes for static/inline
since two functions (in _template.c) where optimized away and not found
later. Possible compiler problem there.

Must say expanding through the pre-processor helped greatly to track
problems down.

I basically did the conversion because people said that a full debug build
in MSVC couldn't be done, and I wanted to prove them wrong <grin>. That, and
tired of using cout to track down some dump on some files being played.

I certainly can and will upload some conversion howto somewhere, but the
current changes to the #include statements make it hard to execute on an SVN
build. The build did allow me to remove some un-needed includes from some
files (the usual cut&paste for a new .c file I suspect, where one just
pastes whatever works before).

Note that I don't have high hopes on getting any of those accepted on the
sourcetree, since mentioning [MSVC, build and Win32] in any message seems to
trigger a severe allergic reaction with the devs. Shame though, it could
really help debugging and functionality. One may hate the compiler, but the
development environment is very much ok.

Erik






_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Compiling with intel ICC 10.1

Erik Van Grunderbeeck
In case anyone want to know what I did, and how, read and download the
project and .diff files:

http://www.arawix.com/code/page/Building-FFMpeg-libraries-with-ICC-in-Visual
-Studio-(and-debug-from-VS2005).aspx

Erik

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user