filler56789
14th April 2014, 06:45
Reason: I haven't found a way to unpack the 1.3.3 installer, and in no way I'm going to run that bloatware :mad:
++++++++++++++
FWIW, I've managed to compile the latest xvidcore.dll with GCC 4.8.1, however their VfW dll has been an "impossible mission" to me thus far. Also, the respective INSTALL(.txt) file seems pretty outdated :(
As the example uses the Win32 target, we can even build the vfw frontend.
Additional requirements are:
- Resource compiler (the Makefile uses the syntax of windres from the
GNU CC suite, but you can easily modify the cmd line)
- GNU make (other make programs may have problem with shell expansion)
So to cross compile the VFW frontend, you just need to override the
Makefile variables pointing to the compiler and the resource compiler.
These variables are CC and WINDRES.
# cd ${xvidcore}/vfw/bin
# make CC=i386-mingw32-gcc WINDRES=i386-mingw32-windres
filler56789
14th April 2014, 09:08
OK, I've made some progress, but I'm afraid it's not good enough yet...
First, edit vfw/bin/Makefile, so that it has no reference to "mno-cygwin".
Secondly, run «make CC=gcc WINDRES=windres»
At last, the dll is built --- but with several warnings :-/
C: ./codec.c
C: ./config.c
../src/config.c:273:2: warning: initialization from incompatible pointer type [enabled by default]
{"cpu_flags", ®.cpu, 0},
^
../src/config.c:273:2: warning: (near initialization for 'reg_ints[67].config_int') [enabled by default]
../src/config.c:302:2: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
{"zone%i_greyscale", &stmp.greyscale, 0},
^
../src/config.c:302:2: warning: (near initialization for 'reg_zone[5].config_int') [-Wpointer-sign]
../src/config.c:303:2: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
{"zone%i_chroma_opt", &stmp.chroma_opt, 0},
^
../src/config.c:303:2: warning: (near initialization for 'reg_zone[6].config_int') [-Wpointer-sign]
../src/config.c:304:2: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
{"zone%i_bvop_threshold", &stmp.bvop_threshold, 0},
^
../src/config.c:304:2: warning: (near initialization for 'reg_zone[7].config_int') [-Wpointer-sign]
../src/config.c:305:2: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
{"zone%i_cartoon_mode", &stmp.cartoon_mode, 0},
^
../src/config.c:305:2: warning: (near initialization for 'reg_zone[8].config_int') [-Wpointer-sign]
../src/config.c: In function 'config_reg_set':
../src/config.c:468:3: warning: pointer targets in passing argument 5 of 'RegSetValueExA' differ in signedness [-Wpointer-sign]
RegSetValueEx(hKey, reg_strs[i].reg_value, 0, REG_SZ, reg_strs[i].config_str, lstrlen(reg_strs[i].config_str)+1);
^
In file included from e:\gcc481\mingw\i686-w64-mingw32\include\windows.h:76:0,
from ../src/config.c:26:
e:\gcc481\mingw\i686-w64-mingw32\include\winreg.h:194:25: note: expected 'const BYTE *' but argument is of type 'char * const'
WINADVAPI LONG WINAPI RegSetValueExA(HKEY hKey,LPCSTR lpValueName,DWORD Reserved,DWORD dwType,CONST BYTE *lpData,DWORD cbData);
^
C: ./driverproc.c
C: ./status.c
W: ./resource.rc
L: xvidvfw.dll
Groucho2004
14th April 2014, 09:17
Why don't you use a free Microsoft express compiler? See here (https://forum.doom9.org/showthread.php?p=1653724#post1653724).
filler56789
14th April 2014, 15:35
Why don't you use a free Microsoft express compiler?
Too much complication :( Considering that I am not a programmer anymore (since 1980-&-something), that's a problem I prefer to live without :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.