112 |
# cd ${xvidcore}/build/generic |
# cd ${xvidcore}/build/generic |
113 |
# ./configure --host=i386-mingw32 --build=i386-pc-linux-gnu |
# ./configure --host=i386-mingw32 --build=i386-pc-linux-gnu |
114 |
|
|
115 |
And then build as usual. You can build the vfw frontend as well, |
And then build as usual. |
116 |
specifying the CC compiler and the WINDRES tool to use on the make |
|
117 |
command line. |
As the example uses the Win32 target, we can even build the vfw frontend. |
118 |
|
Additional requirements are: |
119 |
|
- Resource compiler (the Makefile uses the syntax of windres from the |
120 |
|
GNU CC suite, but you can easily modify the cmd line) |
121 |
|
|
122 |
|
So to cross compile the VFW frontend, you just need to override the |
123 |
|
Makefile variables pointing to the compiler and the resource compiler. |
124 |
|
These variables are CC and WINDRES. |
125 |
# cd ${xvidcore}/vfw/bin |
# cd ${xvidcore}/vfw/bin |
126 |
# make -f Makefile.cygwin CC=i386-mingw32-gcc WINDRES=i386-mingw32-windres |
# make CC=i386-mingw32-gcc WINDRES=i386-mingw32-windres |
127 |
|
|
128 |
|
|
129 |
1.e/ What is the meaning of xvidcore Makefile output. |
1.e/ What is the meaning of xvidcore Makefile output. |
145 |
Installing 'file' in 'a/dir' |
Installing 'file' in 'a/dir' |
146 |
- L: file |
- L: file |
147 |
Linking 'file' |
Linking 'file' |
148 |
|
- W: file |
149 |
|
Compiling the Win32 resource 'file' |
150 |
|
|
151 |
|
|
152 |
1.f/ Building a Debian package. |
1.f/ Building a Debian package. |
201 |
You have first to retrieve the sources from the xvid CVS repository |
You have first to retrieve the sources from the xvid CVS repository |
202 |
using a tool like WinCVS. Then follow the normal steps explained in |
using a tool like WinCVS. Then follow the normal steps explained in |
203 |
the previous section. |
the previous section. |
204 |
|
|
205 |
|
NB: your CVS program may not convert text files to the cr/lf windows |
206 |
|
text. In that case opening project files in MSVC will result in |
207 |
|
some weird error messages from MSVC. To fix that, you have to |
208 |
|
convert all .dsp files to the cr/lf format. You can do that |
209 |
|
opening the .dsp file in WordPad and saving it. It should now be |
210 |
|
in cr/lf format. |