- Extract the tarball,已完成。
- Create configure script
[root@dywHome2 kplayer-0.5.3]# make -f Makefile.dist
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** Creating acinclude.m4
*** Creating list of subdirectories
*** Creating configure.files
*** Creating configure.in
*** Creating aclocal.m4
*** Creating configure
*** Creating config.h template
*** Creating Makefile templates
*** Postprocessing Makefile templates
*** Creating date/time stamp
*** Finished
Don't forget to run ./configure
If you haven't done so in a while, run ./configure --help
- Configure
- 假設相依套件已安裝;
./configure:表示執行目前目錄下之自動偵測作業環境執行檔 configure;
--prefix=PATH:指定安裝目錄為 PATH。
例如:--prefix=/usr/local/kplayer;
`kde-config --prefix`:會先執行,以找到套件安裝目錄,在本系統為 /usr;
- 若系統環境檢查一切正常,則出現訊息 Good - your configure finished. Start make now。
[root@dywHome2 kplayer-0.5.3]# ./configure --prefix=`kde-config --prefix`
[root@dywHome2 kplayer-0.5.3]# ./configure --prefix=/usr/local/kplayer
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
----中間省略----
configure: creating ./config.status
fast creating Makefile
fast creating admin/Makefile
fast creating doc/Makefile
fast creating doc/da/Makefile
fast creating doc/en/Makefile
fast creating doc/pt/Makefile
fast creating doc/sv/Makefile
fast creating icons/Makefile
fast creating kplayer/Makefile
fast creating po/Makefile
config.pl: fast created 10 file(s).
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
Good - your configure finished. Start make now
- Compile
[root@dywHome2 kplayer-0.5.3]# make
----以上省略----
make[2]: Entering directory `/usr/src/kplayer-0.5.3'
make[2]: Leaving directory `/usr/src/kplayer-0.5.3'
make[1]: Leaving directory `/usr/src/kplayer-0.5.3'
- Install
[root@dywHome2 kplayer-0.5.3]# make install
----以上省略----
make[2]: Leaving directory `/usr/src/kplayer-0.5.3'
make[1]: Leaving directory `/usr/src/kplayer-0.5.3'
- 查看安裝目錄 /usr/local/kplayer/
[root@dywHome2 src]# ll /usr/local/kplayer/
total 3
drwxr-xr-x 2 root root 1024 Apr 3 10:09 bin/
drwxr-xr-x 3 root root 1024 Apr 3 10:09 lib/
drwxr-xr-x 8 root root 1024 Apr 3 10:09 share/