2006 Summer vacation in DOS work, engaged in a car entertainment system, responsible for audio parts, mainly modified Xmms, is now the work record pasted here, because it is a Word document, paste removed some word mark. I hope to help you a little bit without finishing.
Xmms
installation configuration work record
a
:
Introduction
Linux
There are not many audio players under theXMMS, XMMS2, BMP, Amarok, bmpx .... XMMS: (X multimedia System) is an excellent audio player under Linux, designed specifically for X-window. Xmms plays an important role in many Linux play software with powerful play function, changeable skin and various avatar plugins, and can match the Winamp of Windows. XMMS2: Divided into two parts, daemon and clients. XMMS2 will exist as a back-end service, and the interface is partially done by clients. Clients can be either command line mode or GUI mode, or even plug-ins into other software. Amarok: itunes-like interface, good classification management, and support for ipods. BMP: (is a multimedia player, currently uses a skinned user interface based on Winamp 2.x skins. It is forked from XMMS) XMMS can be considered an epoch-making audio player. But in today's gtk+2 prevailing era has ashamed old state (Xmms is still based on gtk+>=1.2.x).
BMP was created in less than a year on SourceForge.net, and it was originally developed by XMMS. X11amp is a fully graphical media player based on Linux (X window). In terms of appearance and functionality, the X11amp player is basically the same as the Winamp under Windows, and it combines some of the features of Linux itself: the Linux kernel 2.6.15-1.2054_fc5 host type I686-pc-linux-gnu X Multi Media System (XMMS) (1.2.10)
two
:
Task Breakdown1:xmms source code and related library function installation;
2: The playlist display Chinese, the title display of Chinese, the menu customization of Chinese; 3:. Display lyrics (problem: Two plug-ins installed smoothly, but not to make configuration or run unstable); 4: Skin download and install, simple modification of skin (not including modified layout); 5: Installation test of visual effects plug-in; 6: Download installation configuration Enhanced Acoustics plugin (problem: Stereo plug-in preparation);
7: Each audio plug-in installation test (can put mp3,wav,ogg,wma and Modules,midi) (problem: AVI,RM); 8: Playlist principle Settings; 9: Modify XMMS original code settings layout (question: how to modify);
10:FM Plugin (what hardware is supported);
11: Function Key list, how to change, how to reuse the key (problem: key reuse); 12:cd auto play; 13: Joystick control, joystick control, remote control (problem: Joystick/Controller configuration, handle plug-in);
three
:
Process
1:xmms
source code and related library function installation
1.1:
DownloadXMMS 1.2.10 Download Address: http://www.xmms.org/download.php or ttp://havardk.xmms.org/dist/xmms-1.2.10/
1.2:
installation Unzip Gunzip Xmms-1.2.10.tar.gz;tar xvf Xmms-1.2.10.tar 1.2.1:./configure–prefic=/usr if prompted "Checking for Glib-versio N >= 1.2.2 ... No * * * The Glib-config script installed by glib could not being found * * If glib was installed in PREFIX, make sure prefix/b In are in * * * your path, or set the GLIB_CONFIG environment variable to the * * * full path to glib-config. Configure:error: * * * GLIB >= 1.2.2 Not installed-please Install first * * * " original because" the Glib-config script is used In the 1.2.x version of Glib/gtk. your application needs to is compiled against GTK 1.2, not GTK 2.0.x. N Eed to install the development packages for GTK 1.2 (either from sources or a package) you can install both versions (1.2 and 2.x) with no problem as 2.0 uses the script Pkg-config. "So Method 1: Download and install glib and GTK (address: ftp://ftp.gtk.org/pub/gtk/v1.2 http://www.escomposlinux.org/lfs-es/blfs-es-5.0/general /glib.html) If "Cannot change ownership to UID 2181,gid 2181: Operation not allowed", use Method 2 Method 2: Locate the GLIB/GTK installation on the Linux installation disk (compat-gcc-32-c++-3.2.3-55.fc5.i386.rpm compat-gcc-32-3.2.3-55.fc5.i386.rpm glib-devel-1.2.10-18.2.2.i386.rpm glib-java-devel-0.2.3.0.20060301.rh1-1.i386.rpm gtk+-devel-1.2.10-50.i386.rpm gtkhtml-1.1.9-12.i386.rpm gtkhtml2-devel-2.6.3-1.2.1.i386.rpm gtkhtml-devel-1.1.9-12.i386.rpm gtksourceview-devel-1.6.0-1.i386.rpm) Execute./CONFIGURE–PREFIC=/USR results for configuration: install path: /usr build OSS plugin: Yes build ESD plugin: Yes build Solaris plugin: no build BSD Sun plugin: No build ALSA plugin: Yes build mikmod plugin : No (show Yes if MikMod is installed) build Ogg Vorbis plugin: Yes build OpenGL plugins: Yes pthread flag: -lpthread use One plugin dir: no allow user plugin dir: Yes & nbsp
1.2.2
: MakeIf you are prompted to "gtk+>=1.2.2 not install ..." On the same download or on the Linux installation disk to find the GTK installation. If any further errors are as follows: ir.c:19:error:static declaration of ' keepgoing ' follows non-static declaration ir.h:53:error:previous Declar ation of ' keepgoing ' was-here ir.c:22:error:static declaration of ' Irapp_thread ', follows Non-static declaration ir.h:52: error:previous declaration of ' Irapp_thread ' is here Solution 1 open./general/ir/ir.h the extern pthread_t Irapp_thread; extern Gboolean keepgoing; Two comments out solution 2 with the low version of GCC
1.2.3
:
Make Install
will install XMMS, Xmms-config, Gnomexmss, Wmxmms.Xmms-config: Other programs use this script to connect to Xmms's library and header files. Gnomexmms: This is a GNOME desktop environment applet, can be embedded in the GNOME panel, through which you can start and control the XMMS. Wmxmms:wmxmms is a small program that is used under Window Maker's Windows manager. With this program, you can start and control Xmms.
1.3
: Run
Run Xmms in terminal if "/usr/local/lib/xmms/input/libmpg123.so:cannot restore segment prot after Reloc: Insufficient permissions" The explanation is libmpg123.so but can not put mp3. can be inserted in the Wav,ogg format song Chinese interface. Inputins does not use the font set, x font, the Plug and Play list font is "-adobe-helvetica-bold-r-*-*-10-*", the main window is "-adobe-helvetica-medium-r-*-*-8-*". The input plug-in titled "%p-%t" is:
The output plug-in is:
Other plugins:
Documents include: ~/.xmms/config Users XMMS configuration. ~/.xmms/xmms.m3u default playlist usually loaded on startup. ~/.xmms/gtkrc users set of Xmms-specific gtk config settings. Options such as widget color and fonts sizes can be & nbsp; set here. ~/.xmms/menurc Users set of KeyBindings. ~/.xmms/skins, ${prefix}/share/xmms/skins default locations where XMMS should look for skin- files. ~/.xmms/plugins location of the user installed Plugins.
2
: Playlist display Chinese, title display Chinese;
Menu Custom Chinese
2.1
: Playlist display Chinese, title display ChineseIn the options-preferences-font in the full tick and then set the Font Method 1: Choose Song Ti Method 2: Choose Fangsongti Method 3:-*-*-medium-r-normal-16-*-*-*-*-*-gb18030.2000-0 method 4:-*-*- Medium-r-normal-16-*-*-*-*-*-gb2312.1980-0 Method 5:-*-*-*-*-*-*-16-*-*-*-*-*-gbk-0 Method 6:-adobe-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso10646-1,-misc-simsun-medium-r-normal-*-12-*-*-*-c-*- gbk-0 to display multiple languages available "," separated.
Effect as shown:
Set the%f in the options-preferences-header and configure the header into%f in each input plug-in
2.2
: Menu Custom Chinese
2.2.1
:
Modify
Po/zh_cn.poFile such as "MsgId" Tone Generator%s "Msgstr"
Tone Generator%s "" and other similar statements to "
Tone Generator"Change to the desired statement.
2.2.2
:Msgfmt--statistics Zh_cn.po-o Zh_cn.gmo
2.2.3
:Put Zh_cn.gmo into/usr/share/locale/zh_cn/lc_messages/or/usr/locale/share/locale/zh_cn/lc_messages/and change to Zh_. Cn.mo Restart XMMS. You can also recompile XMMS after the second step. To learn more about open Source Software Internationalization culture program please visit the relevant website. such as: http://i18n.linux.net.cn/;
3
:
Show Lyrics
(xlyrics,singit,lyrics)
3.1:lyricsThe download address has not been opened.
3.2:xlyricsDownload Xlyrics Address: http://myget.sourceforge.net/xlyrics/xlyrics-0.4.6.tar.gz decompression,./configure,make,make Install (in/usr/ Local/lib/xmms/general installed LIBXMMS_XLYRICS.A, libxmms_xlyrics.so, libxmms_xlyrics.la) can be. Make "INTERNAL.C: in function ' Locale2utf8 ': internal.c:22: Warning: Implicit declaration is incompatible with the built-in function ' StrDup ' ... conf.c:60: Warning: Implicit declaration is incompatible with the built-in function ' strlen ' CONF.C:63: Warning: Implicit declaration is incompatible with the built-in function ' Strstr ' conf.c:76: Warning: Implicit declaration is incompatible with the built-in function ' StrDup ' ... " But still can pass. Run unstable, self-closing, can not download lyrics, also can not be apparent. Although the Chinese (small lock) development can be too many problems.
3.3:singitDownload xmms-singit-0.08 address http://nchc.dl.sourceforge.net/sourceforge/xmms-singit/xmms-singit-0.0.8.tar.bz2 or:/http PRDOWNLOADS.SOURCEFORGE.NET/XMMS-SINGIT/XMMS-SINGIT-0.0.8.TAR.BZ2 make Error: "Singit_id3lib_wrapper.h:24:17:error: Id3.h:no such file or directory singit_id3lib_wrapper.h:34:error:expected ') ' before ' * ' token ' and other errors. It may be that a software library version is too old. Download Id31lib (Address: HTTP://PRDOWNLOADS.SOURCEFORGE.NET/ID3LIB/ID3LIB-3.8.3.TAR.GZ?USE_MIRROR=NCHC) Install, and then compile singit problem still. Download new version Singit address: http://stud.fbi.h-da.de/~glogow/index.html installation is smooth, but it cannot be run at all.
4
: Skin download and install, simple modify skin (not including modify layout)
4.1:
Skin Download InstallationAddress: www.gnome-look.org or http://www.xmms.org/skins.php or Download.pchome.net/skins/winamp (compatible with Winamp skin) without decompression on/usr/sh Are/xmms/skins are shared by all users, or placed in ~/.xmms/skins/single-user use. Effect as shown:
4.2:
Custom Skins
4.2.
1
Modify
BMP
file Image changes include Avs.bmp, Balance.bmp, Cbuttons.bmp, Eq_ex.bmp, Eqmain.bmp, Main.bmp, Mb.bmp, Monoster.bmp, Numbers.bmp, Playpaus.b MP, Pledit.bmp, Posbar.bmp shufrep.bmp text.bmp, Titlebar.bmp, Volume.bmp. coordinates for each BMP file can be see the appropriate file (http://download.pchome.net/skins/teach/winamp/teach1.htm) for Winamp. such as posbar.bmp width: 307 Height:
Related Projects |
starting X |
starting Y |
width |
Height |
Play position slider bar |
248 |
0 |
29 |
10 |
Play position slider (press down) |
278 |
0 |
29 |
10 |
Play Position Slide Bar |
0 |
0 |
248 |
10 |
4.2.2
:
Modify
Pledit. TXT
file
Normal |
The foreground color of the song on the list. (Song text color) |
Current |
The foreground color of the song on the list. (The text color of the song being played) |
Normalbg |
The background color of the playlist. |
selectedbg |
On the playlist, the background color of the selected item. |
Font |
The font name to use on the playlist. |
4.2.3
Modifying the Spectrum analyzer color
Modify the "Static const Gint skin_default_viscolor[24][3" in the xmms-1.2.10/xmms/skin.c file before compiling = {{9,34,53}, {10,18,26}, ...... } "Set the default value in a paragraph. After compiling, modify the VISCOLOR.TXT file under each skin folder. This file file can set the Spectrum Analyzer color. The file is divided into 24 lines, each line represents a different role, three numbers represent the RGB value, the middle is separated by commas, at the end of the row can be annotated//.