1. 打开所有模块的编辑特性:
(1) 编译config-vlc.sh脚本,加入-g选项 *
CC="gcc -mno-cygwin -g" CXX="g++ -mno-cygwin -g" \
(2) 去除Makefile的以下行
# Rebase all those DLLs to speed up loading (need cygwin rebase)
 if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \
  find $(win32_destdir) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \
 fi
(或运行boottrap命令初始化前,修改makefile.am文件,去除这些行)
(3) 生成目标文件,选择make package-win32-base-debug

替换PATH,避免与msysGit的冲突:
# remove msysgit directory, to avoid conflict.
PATH=/usr/local/bin:/usr/bin:/bin:$PATH
PATH=`echo $PATH | sed 's/:\/cygdrive\/c\/msysgit\/msysgit\/bin//g' `
PATH=`echo $PATH | sed 's/:\/cygdrive\/c\/msysgit\/msysgit\/mingw\/bin//g' `
export PATH