Just to help out the unexperienced ones here goes an easy step-by-step guide:WARNING!All steps bellow should be done from within a terminal console such as aterm, eterm, konsole etc...
All steps should be done as normal user unless instructed otherwise.1- Download amsn-0.96RC1.tar.bz2
wget http://easynews.dl.sourceforge.net/sourceforge/amsn/amsn-0.96RC1.tar.bz2
2- Extract the source code
tar -jxvpf amsn-0.96RC1.tar.bz2
3- Enter the folder created by the step above
cd amsn-0.96RC1
4- Run Configure in order to create the Makefile to be patched
./configure
5- Create the pacth file
vi patch.patch
Press the "Insert" button of your keyboard to enter the insert mode.
Copy the following text and paste it into the console with vi open:
diff -ur Makefile.in Makefile.in
--- Makefile.in 2006-04-28 00:10:17.000000000 +0200
+++ Makefile.in 2006-05-20 10:37:16.000000000 +0200
@@ -50,7 +50,7 @@
LFS_FLAGS := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
LIB_FLAGS := -I. -I$(capture_dir) -I$(capture_dir)/libng -I$(capture_dir)/structs
LIB_FLAGS += -I$(webcamsn_dir)/src -I$(tkcximage_dir)/src -I$(tkcximage_dir)/src/CxImage
-LIB_FLAGS += -I$(tkcximage_dir)/src/zlib -I$(tkcximage_dir)/src/png -I$(tkcximage_dir)/src/jpeg
+LIB_FLAGS += -Ipng -Ijpeg
LIBDIR := @LIBDIR@
@@ -100,7 +100,7 @@
CXXFLAGS += -fPIC
# libraries
-LDLIBS := @LDLIBS@
+LDLIBS := @LDLIBS@ -lpng -ljpeg
LDFLAGS := @LDFLAGS@
ifeq (@DEBUG@,no)
LDFLAGS += -s
@@ -224,9 +224,6 @@
include $(tkcximage_dir)/Rules.mk
include $(tkcximage_dir)/src/Rules.mk
include $(tkcximage_dir)/src/CxImage/Rules.mk
-include $(tkcximage_dir)/src/zlib/Rules.mk
-include $(tkcximage_dir)/src/png/Rules.mk
-include $(tkcximage_dir)/src/jpeg/Rules.mk
include $(tkcximage_dir)/src/Rules.mk
include $(webcamsn_dir)/Rules.mk
diff -ur utils/TkCximage/src/CxImage/ximajpg.cpp utils/TkCximage/src/CxImage/ximajpg.cpp
--- utils/TkCximage/src/CxImage/ximajpg.cpp 2006-04-13 15:22:27.000000000 +0200
+++ utils/TkCximage/src/CxImage/ximajpg.cpp 2006-05-18 23:03:20.000000000 +0200
@@ -9,7 +9,7 @@
#if CXIMAGE_SUPPORT_JPG
-#include "../jpeg/jmorecfg.h"
+#include <jmorecfg.h>
#include "ximaiter.h"
diff -ur utils/TkCximage/src/CxImage/ximajpg.h utils/TkCximage/src/CxImage/ximajpg.h
--- utils/TkCximage/src/CxImage/ximajpg.h 2006-04-13 15:22:27.000000000 +0200
+++ utils/TkCximage/src/CxImage/ximajpg.h 2006-05-19 10:12:38.000000000 +0200
@@ -29,8 +29,8 @@
#define CXIMAGEJPG_SUPPORT_EXIF 1
extern "C" {
- #include "../jpeg/jpeglib.h"
- #include "../jpeg/jerror.h"
+ #include <jpeglib.h>
+ #include <jerror.h>
}
class DLL_EXP CxImageJPG: public CxImage
diff -ur utils/TkCximage/src/CxImage/ximapng.h utils/TkCximage/src/CxImage/ximapng.h
--- utils/TkCximage/src/CxImage/ximapng.h 2006-04-13 15:22:27.000000000 +0200
+++ utils/TkCximage/src/CxImage/ximapng.h 2006-05-18 23:04:57.000000000 +0200
@@ -22,7 +22,7 @@
#if CXIMAGE_SUPPORT_PNG
extern "C" {
-#include "../png/png.h"
+#include <png.h>
}
long int inline btohl( long int dword ) {
diff -ur utils/TkCximage/src/Rules.mk utils/TkCximage/src/Rules.mk
--- utils/TkCximage/src/Rules.mk 2006-02-02 22:08:21.000000000 +0100
+++ utils/TkCximage/src/Rules.mk 2006-05-19 09:57:03.000000000 +0200
@@ -1,7 +1,5 @@
OBJS-TkCximage := $(tkcximage_dir)/src/TkCximage.cpp.o $(tkcximage_dir)/src/PhotoFormat.cpp.o \
- $(tkcximage_dir)/src/procs.cpp.o $(tkcximage_dir)/src/CxImage/libCxImage.a \
- $(tkcximage_dir)/src/jpeg/libjpeg.a $(tkcximage_dir)/src/png/libpng.a \
- $(tkcximage_dir)/src/zlib/libzlib.a
+ $(tkcximage_dir)/src/procs.cpp.o $(tkcximage_dir)/src/CxImage/libCxImage.a
ifeq ($(STATIC),yes)
OBJS-TkCximage += libstdc++.a
endif
Save the file by pressing the "Esc" key of your keyboard and then type ':wq' (without the quotes, of course) and press enter.
6- Apply the patch you just created above:
patch -p0 < patch.patch
7 - Compile the source code
make
8- If everything went fine up to here, all you have to do is to install your recently compiled binaries:
Normal Linux users should do the following:
su -c "make install"
Ubuntu Linux users should do the following:
sudo make install
Now you are all done! Your newly compiled amsn should work like a charm now!Troubleshooting:If you did everything above and after you started amsn it crashed like it used to do before (error: libpng warning: Ignoring bad adaptive filter type) it is probably because there are still some broken cached display pictures in you cache folder.
In order to remove those all you have to do is remove the cached pictures by entering the following command:
rm ~/.amsn/YOUR_MSN_LOGIN_HERE_hotmail_com/displaypic/cache/*
Of course you have to substitute YOUR_MSN_LOGIN_HERE with your msn login without the @hotmail.com part.
For example, if your msn login is
billy_gates@hotmail.com you should do the following:
rm ~/.amsn/billy_gates_hotmail_com/displaypic/cache/*
I hope this step-by-step guide is usefull to you.Greetz from
Brazil.
