⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cross-compile-howto.txt

📁 uclinux 下的vlc播放器源代码
💻 TXT
字号:
                      2002/03/05        VLC for Windows Cross-Compile HOWTO - 0.1*EASY* VLC cross-compilation using Linux for a Windows clientBill Eldridge & Gildas Bazin0) MSYS & mingw1) Download software packages2) Unpack sources3) Configure vlc4) Make5) Package for Windows6) Further resources0) MSYS & mingwAs of version 1.0.5, the MSYS part of MingW hasreleased an environment that will let you configureand compile packages for mingw directly on Windows.        http://mingw.sourceforge.netCombined with the SDL & GTK development packages,this is enough to compile vlc without cross-compilingon Linux.  However, for those of us who like Linuxand want to cross-compile (say to automate nightlybuilds), read on.1) Download software packagesDownload all the software needed to /usr/local/src/VLC -including pre-compiled mingw32 cross-compiler for linux,SDL, gtk, directx, and of course vlc.  You will also needvarious run-time DLLs on your Windows machine when you goto run the program.Go to http://www.videolan.org/vlc/windows.html and download:- mingw32 cross-compiler for linux: linux-cross-mingw32-10022002.tar.bz2- SDL-devel-1.2.3-mingw32.tar.gz (you can also go to www.libsdl.org)- gtk-win32-10022002.tar.bz2 development files.- the directx 7 headers. (Instead of downloading the whole directx SDKform Microsoft)Get vlc from:        http://www.videolan.org/pub/videolan/vlc/snapshots/(who needs a release version? you're compiling, after all :)or grab the cvs at:        http://developers.videolan.org/cvs.htmlusing the command:cvs -d :pserver:anonymous@anoncvs.videolan.org:/var/cvs/videolan -z3 covlc(and no, you don't need to log in, that's why it's "anonymous")2) Unpack sourcesUnpack all your sources to the right place:[Note that you can put SDL & gtk in a different place,but then you'll have to edit the sdl-config & gtk-config.directx can go anywhere - you'll just set that path whenyou do vlc's configure]cd to your Source directorySRCDIR=`pwd`    # /usr/local/src/VLC seems good, no?tar -jxvf linux-cross-mingw32-10022002.tar.bz2 -C /usr/localtar -zxf SDL-devel-1.2.3-mingw32.tar.gz -C /usr/local/cross-toolscd /usr/local/cross-toolsln -s i586-mingw32msvc i386-mingw32msvctar -xf SDL-1.2.3/i386-mingw32msvc.tgzrm -rf SDL-1.2.3cd $SRCDIRtar xjvf gtk-win32-10022002.tar.bz2 -C /usr/localmkdir /usr/local/directxunzip -d /usr/local/directx/include dxheaders.ziptar -jxf <vlc-snapshot-xxx>.bz2 # Unless you used cvscd vlc3) Configure vlcrm config.cache config.statusmake clean      # or "make distclean" for pretty prettyPATH=/usr/local/cross-tools/bin:$PATH \CC=i586-mingw32msvc-gcc \./configure --host=i586-mingw32msvc \  --target=i586-mingw32msvc --build=i386-linux \  --with-directx=/usr/local/directx \  --with-gtk-config-path=/usr/local/gtk-win32/bin \  --with-sdl-config-path=/usr/local/cross-tools/i586-mingw32msvc/bin4) make vlcPATH=/usr/local/cross-tools/bin:$PATH \make5) Package for Windowsmkdir /usr/local/src/winvlcmkdir /usr/local/src/winvlc/pluginsmkdir /usr/local/src/winvlc/sharecp vlc.exe /usr/local/src/winvlc/cp plugins/*.so /usr/local/src/winvlc/plugins/cp share/*.psf /usr/local/src/winvlc/share/cd /usr/local/srcstrip winvlc/vlc.exe winvlc/plugins/*.sozip -r winvlc.zip winvlcNow place winvlc in your ftp/html downloads,or copy to your dos disk or move to a floppy(only about 270K)Uncompress to C:\winvlcDon't forget to place all the GTK and SDL dll's from the development packagesyou downloaded on http://www.videolan.org/vlc/windows.html in c:\winvlccd c:\winvlcvlc -vNote: -v gives you errors in case something's not being found,otherwise not needed.6) Further resources (for this or other cross-compilationprojects):At this time, mingw32_2.95.3.7-3_i386.deb andmingw32-runtime_1.2-1_i386.deb were at:http://packages.debian.org/testing/devel/mingw32.htmlhttp://packages.debian.org/testing/devel/mingw32-runtime.htmland possibly on your CD - you might be able to find laterversions, or save bandwidth, if you care.  (Of course we'llonly be testing what we put on the VideoLan website).While these are "Debian" packages, they work on Redhatand possibly elsewhere - download dpkg for your systemand do something like:dpkg -x  mingw32_2.95.3.7-3_i386.deb /tmp/mingdpkg -x  mingw32-runtime_1.2-1_i386.deb /tmp/mingmv /tmp/ming/usr /usr/local/cross-toolsFull DX-7 headers, libs & directx.h (the Peter Puck version)can be found at:        http://fceultra.sourceforge.net/devThere are other versions of GTK for Windows available, butthe one provided here has been hacked specifically for VideoLan.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -