UPDATE : I pushed the changes to fix the include problem with libnice... and added autogen.sh to libnice... guide updated!
UPDATE2: Changed the git repository URL and changed the branch name to get the latest changes... guide updated!
Hi again...
so here is my experience after trying to test this on a 'virgin' PC... I hope my experience will help others fix any problem they might have...
I was doing all this on a debian/unstable machine, so any ubuntu/other distro users might have a different experience...
First, the easy part... I did a simple 'apt-get update' to update my debian unstable package list, then, at my big surprise, I found that debian had all the LATEST versions of gstreamer available, which is just great! so I did :
sudo apt-get update
sudo apt-get install libgstreamer0.10-0 gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-tools gstreamer0.10-alsa
This installed for me gstreamer 0.10.20, gst-plugins-base 0.10.20, gst-plugins-good 0.10.8 and gst-plugins-bad, 0.10.7
Now I wanted to install gstreamer0.10-plugins-farsight, but we need 0.12.9 and they only have 0.12.8.. so here's how I got it to install...
sudo apt-get install debhelper
sudo apt-get build-dep gstreamer0.10-plugins-farsight
apt-get source gstreamer0.10-plugins-farsight
wget http://farsight.freedesktop.org/releases/gst-plugins-farsight/gst-plugins-farsight-0.12.9.tar.gz
tar -xzvf gst-plugins-farsight-0.12.9.tar.gz
cp -r gst-plugins-farsight-0.12.8/debian gst-plugins-farsight-0.12.9/
cd gst-plugins-farsight-0.12.9/debian
vi changelog
Here, I modified the changelog so that I can get the correct version in the generated deb file...
so I just added at the top of the file :
gst-plugins-farsight (0.12.9-1) unstable; urgency=low
* New upstream release
-- Youness Alaoui <CENSORED@CENSORED.COM> Sat, 02 Aug 2008 01:53:00 -0500
and then ... ":wq" to quit vi, and :
cd ..
dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i gstreamer0.10-plugins-farsight_0.12.9-1_i386.deb
and voila!
most dependencies are installed.. now I just need libnice and farsight...
so I use the commands on the wiki to download them...
git clone git://git.collabora.co.uk/git/user/kakaroto/nice.git libnice
cd libnice
git checkout origin/nice-kakaroto
cd ..
git clone git://git.collabora.co.uk/git/user/kakaroto/farsight2.git farsight2
cd farsight2
git checkout origin/nice
cd ..
Then I go to the libnice directory (cd libnice)...and I do :
./autogen.sh --prefix=/usr
make
sudo make install
(yeah, I didn't do the --prefix=/usr at first, then I realized it was needed otherwise farsight won't find libnice at runtime)
Then I go to the farsight2 directory.. and after some problems with the ./autogen.sh which gave me "automake failed" I found the solution, so :
sudo apt-get install gtk-doc-tools
./autogen.sh --prefix=/usr --disable-python --disable-gtk-doc
make
sudo make install
yes.. here again, the --prefix=/usr is needed as well as --disable-python otherwise you would need a lot more dependencies (gst-python, etc...) and the 'sudo apt-get install gtk-doc-tools' will allow you to do the ./autogen.sh without the annoying "automake failed" error.. The --disable-gtk-doc is because the gtk doc will currently not build correctly, so use that configure option until it gets fixed.
and now finally.. the most important step otherwise it won't work... you have to do :
sudo ldconfig
yep.. that might be why muratasenel couldn't make it work (or because of the --prefix=/usr)
Once you do that, in theory, everything should be great!
Now, you go over to amsn.. and you do :
svn update
./configure
make clean
make
./amsn &
amsn loads.. you press 'sign in' and you should see a lot of output in the terminal with the last three being :
** (<unknown>:17803): DEBUG: CANDIDATES ARE PREPARED
** (<unknown>:17803): DEBUG: Detach source 0x8fca228 (stream 1).
** (<unknown>:17803): DEBUG: Detach source 0x8fb18a8 (stream 1).
This means all went well...
You could also press Ctrl-N from the main aMSN window to see the audio/video assistant which will test if farsight is correctly installed...
In theory, it should all be working correctly at this point!!!!
If it doesn't.. follow these steps carefully!
1 - read this post
2 - read this post again
3 - Make sure you didn't forget anything... (--prefix=/usr or ldconfig..)
4 - press Ctrl-Shift-C from the main window
5 - type "package require Farsight"
6 - the error should tell you what's wrong, if it's something like "can't find shared library : libgstfarsight.so" it means you either didn't install farsight2 or you forgot 'ldconfig'
7 - if it returned "0.1", then type "farsight Prepare 1"
8 - the error again should tell you what's wrong... if it says "couldn't create fsrtpconference", then you might have forgotten the --prefix=/usr, if it says "can't find nicesrc element", then it means you didn't install libnice correctly (or forgot --prefix=/usr for it), other kind of errors might be because you forgot to install gst-plugins-bad or gst-plugins-farsight, etc...
9 - if it doesn't give any error there, but the audio/video assistant still says that it's not installed.. then the error might be coming from farsight after it's been prepared correctly.. so look at the error messages on your terminal (the xterm terminal, not amsn's console), it should again point you in the right direction as to what you did wrong..
10 - if you get no output at whatever you wrote in amsn's console, then TYPE THE COMMANDS in the console, DO NOT copy/paste them please...
11 - make sure you installed the CORRECT VERSIONS!!!! for example... if you installed gst-plugins-farsight 0.12.8 instead of 0.12.9, IT WILL CRASH...
11 - if you REALLY don't get it.. post here the output of either the "package require Farsight" (5th step) or the "::farsight Prepare 1" (7th step), or the output on the terminal (9th step).. and tell me exactly what you did to get that error message...
That's it...
I think this will serve as a good guide for anyone having trouble with this...
Please note that :
1 - hopefully debian will soon put the gst-plugins-farsight 0.12.9 in their repositories you won't need the 'apt-get source' + 'apt-get build-dep' + 'cp debian' + 'vi changelog' + 'dpkg-buildpackage' + 'dpkg -i' trick to get the 0.12.9 debian file into your system...
2 - hopefully, other distributions will follow in debian's footsteps in order to provide packages from the latest versions of gstreamer, etc...
In theory, when aMSN 0.98 will be released, this whole thing should become as simple as :
sudo apt-get install libgstfarsight2-dev
p.s.: When farsight2 is working and you test the call... you should see ALOT of output on your X terminal.. something like this :
** (<unknown>:25932): DEBUG: Agent 0x8f16680 : s1:1: sending 52 bytes to [192.168.1.101]:62878
** (<unknown>:25932): DEBUG: Agent 0x8f16680 : Packet received on local socket 30 from [192.168.1.101]:59636 (80 octets).
STUN error: RTP or other non-protocol packet!
This shows your connection succeeded and that you are sending and receiving data... yeay, great!
NOTE: IF YOU DO NOT USE DEBIAN UNSTABLE, DO NOT BOTHER ME, TRY TO FIGURE THINGS OUT ON YOUR OWN, USING THIS GUIDE AS A REFERENCE!!!!thanks all!
