Mon 18 Sep 2006 05:32:07 PM UTC, original submission:
If gnash was configured
'./configure --enable-sound=SDL --enable-mp3'
I have error :
sound_handler_mp3.cpp:18:2:
#error "You need to have the libmad development
package installedto compile this file. You can either
reconfigure without --enable-mp3, or install libmad0-dev
(using apt-get) or libmad (using yum)."
If I set ' #define HAVE_MAD_H 1 ' in config.h, I have error:
libgnashbackend.so: undefined reference to `mad_frame_init'
libgnashbackend.so: undefined reference to `mad_frame_decode'
........
%uname -a
FreeBSD test 6.1-RELEASE-p6 FreeBSD 6.1-RELEASE-p6 #0: Sat Sep 9 23:18:27 MSD 2006 root@test:/usr/obj/usr/src/sys/my amd64
%gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518
gnash version: CVS 2006-09-18
libmad version: 0.15.0b
libmad location: /usr/local/lib
/usr/local/include
Script 'configure' determine configuration as:
MAD flags are: -I/usr/local/include
MAD libs are: -L/usr/local/lib
To overcome this problem I do:
1.Set ' #define HAVE_MAD_H 1 ' manually in file config.h.
2.Add ' -lmad ' in variable ' MAD_LIBS' in make files.
Compilation has completed successfully, but the sound appears
approximately for one second and disappears.
|