ffmpeg installation problems Ubuntu 12.04

I am a newbie on Ubuntu therefore when I want to install a new program I just follow the instructions step by step and I usually succed. Not this time.
I first installed serviio as instructed on serviio-wiki and is running.
(serviio start/running, process 1075)
The Serviio Console is also working and my TV is listed.
Then I followed the Building FFmpeg Guide :
Install “Essential Build Tools and Libraries” – done – no apparent errors
Install “Yasm” – done – no apparent errors
Build and install x264 – done – no apparent errors (Please note that I did disable OpenCL)
Build and install librtmp – done – no apparent errors
When I tryed to build and install ffmpeg (again following exactely the instructions given on wiki)
due to errors the installetion failed.
I removed x264 (using dpkg -r x264) then I reinstalled it but I had the same errors again!
Any idea of what I am doing wrong?
ERROR: libx264 not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$ make
CC libavdevice/alldevices.o
/bin/sh: 1: i686-w64-mingw32-gcc: not found
make: *** [libavdevice/alldevices.o] Error 127
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$ sudo checkinstall --pkgname=ffmpeg --pkgversion="99:$(date +%Y%m%d%H%M)-git" --backup=no \
> --deldoc=yes --fstrans=no --default
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@luigi-IXTREME-MC-9600 ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ ffmpeg ]
3 - Version: [ 99:201501300007-git ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ ffmpeg ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ffmpeg ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
CC ffmpeg.o
/bin/sh: 1: i686-w64-mingw32-gcc: not found
make: *** [ffmpeg.o] Error 127
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$
I first installed serviio as instructed on serviio-wiki and is running.
(serviio start/running, process 1075)
The Serviio Console is also working and my TV is listed.
Then I followed the Building FFmpeg Guide :
Install “Essential Build Tools and Libraries” – done – no apparent errors
Install “Yasm” – done – no apparent errors
Build and install x264 – done – no apparent errors (Please note that I did disable OpenCL)
Build and install librtmp – done – no apparent errors
When I tryed to build and install ffmpeg (again following exactely the instructions given on wiki)
due to errors the installetion failed.
I removed x264 (using dpkg -r x264) then I reinstalled it but I had the same errors again!
Any idea of what I am doing wrong?
ERROR: libx264 not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$ make
CC libavdevice/alldevices.o
/bin/sh: 1: i686-w64-mingw32-gcc: not found
make: *** [libavdevice/alldevices.o] Error 127
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$ sudo checkinstall --pkgname=ffmpeg --pkgversion="99:$(date +%Y%m%d%H%M)-git" --backup=no \
> --deldoc=yes --fstrans=no --default
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@luigi-IXTREME-MC-9600 ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ ffmpeg ]
3 - Version: [ 99:201501300007-git ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ ffmpeg ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ffmpeg ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
INSTALL doc/ffmpeg.1
INSTALL doc/ffprobe.1
INSTALL doc/ffmpeg-all.1
INSTALL doc/ffprobe-all.1
INSTALL doc/ffmpeg-utils.1
INSTALL doc/ffmpeg-scaler.1
INSTALL doc/ffmpeg-resampler.1
INSTALL doc/ffmpeg-codecs.1
INSTALL doc/ffmpeg-bitstream-filters.1
INSTALL doc/ffmpeg-formats.1
INSTALL doc/ffmpeg-protocols.1
INSTALL doc/ffmpeg-devices.1
INSTALL doc/ffmpeg-filters.1
INSTALL doc/libavutil.3
INSTALL doc/libswscale.3
INSTALL doc/libswresample.3
INSTALL doc/libavcodec.3
INSTALL doc/libavformat.3
INSTALL doc/libavdevice.3
INSTALL doc/libavfilter.3
CC ffmpeg.o
/bin/sh: 1: i686-w64-mingw32-gcc: not found
make: *** [ffmpeg.o] Error 127
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
luigi@luigi-IXTREME-MC-9600:~/src/ffmpeg$