There is some x86 assembler in the code, we need to disable it.
Edit src/base/Exception.cpp and replace debugBreak code by :
void debugBreak()
{
ifndef arm
ifdef _WIN32
__asm int 3;
else
asm("int 3ドル");
endif
else
asm("swi 0x03");
endif
}
Please note that I’m not fully sure of the ARM assembly I’ve used to replace the INT x86 instruction. If I’m wrong let me know. Anyway this code should not be called if the environment variable AVG_BREAK_ON_ASSERT is not set to 1.
Export some environment variables (or create source.env file instead):
[^] # Re: Commencer par compiler
Posté par andree . En réponse au message Portage des librairies. Évalué à 0.
lib= libavg-1.7.1 (www.libavg.de)
et voila les configuration que j'ia fais :
Download libavg 1.7 source code
wget http://www.libavg.de/raw-attachment/wiki/DownLoad/libavg-1.7.0.tar.gz
Extract it
tar xzvf libavg-1.7.0.tar.gz
cd libavg-1.7.0
Install the following armel development packages:
Remove the SSE2 flags in configure script:
cat configure | sed s/-msse2// > configure.arm
mv configure.arm configure
chmod 755 configure
There is some x86 assembler in the code, we need to disable it.
Edit src/base/Exception.cpp and replace debugBreak code by :
void debugBreak()
{
ifndef arm
ifdef _WIN32
else
endif
else
endif
}
Please note that I’m not fully sure of the ARM assembly I’ve used to replace the INT x86 instruction. If I’m wrong let me know. Anyway this code should not be called if the environment variable AVG_BREAK_ON_ASSERT is not set to 1.
Export some environment variables (or create source.env file instead):
export PANGOFT2_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
export PANGOFT2_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export GDK_PIXBUF_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
export GDK_PIXBUF_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export LIBRSVG_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
export LIBRSVG_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export FONTCONFIG_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
export FONTCONFIG_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export FFMPEG_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
export FFMPEG_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export BOOST_PYTHON_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export BOOST_PYTHON_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
export BOOST_THREAD_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export LIBRSVG_LIBS="-L/usr/arm-linux-gnueabi/lib/"
export LIBRSVG_CFLAGS="-I/usr/arm-linux-gnueabi/include/"
Configure, build and install libavg:
CFLAGS="-I/usr/arm-linux-gnueabi/include/gtk-2.0 -I/usr/arm-linux-gnueabi/include/glib-2.0" CXXFLAGS="-I/usr/arm-linux-gnueabi/include/gtk-2.0 -I/usr/arm-linux-gnueabi/include/glib-2.0/ -I/usr/arm-linux-gnueabi/lib/glib-2.0/include/ -I/usr/arm-linux-gnueabi/include/pango-1.0 -I/usr/arm-linux-gnueabi/include/cairo/ -I/usr/arm-linux-gnueabi/include/librsvg-2" LDFLAGS="-lgdk_pixbuf-2.0 -lavcodec -lavutil -lavformat -lswscale -lSDL -lpango-1.0 -lpangoft2-1.0 -lrsvg-2 " FREETYPE_LIBS=/usr/arm-linux-gnueabi/lib ./configure --target=arm-linux-gnueabi --host=arm-linux-gnueabi CC=arm-linux-gnueabi-gcc-4.4 CXX=arm-linux-gnueabi-g++-4.4 AR=arm-linux-gnueabi-ar TRIP=arm-linux-gnueabi-strip RANLIB=arm-linux-gnueabi-ranlib --prefix=/home/invitee/Bureau/out