View Full Version : Compiling xvid
ChronoCross
3rd August 2005, 03:16
What is the best way to compile xvid under windows and not using visual C 6? is it possible to compile it with cygwin? I've been able to compile xvidcore.dll but I'd also like to compile the vfw interface and the directshow decoder. i have visual Studio 7.0 but it always has errors. Nasm is already in the programs list for VS 7 to use when compiling and I've already tried the stuff on xvid.org. Thanks in advanced.
oh and I already tried :search: thanks.
celtic_druid
3rd August 2005, 05:23
VS7 should be fine as should cygwin. I have successfully compiled with MSVC7.1 and mingw. VfW should be as simple as running make in /vfw/bin. dshow there are instructions that you need to follow. Once you have done that though just run make in /dshow.
ChronoCross
3rd August 2005, 06:23
VS7 should be fine as should cygwin. I have successfully compiled with MSVC7.1 and mingw. VfW should be as simple as running make in /vfw/bin. dshow there are instructions that you need to follow. Once you have done that though just run make in /dshow.
When trying to run each of them in Visual C 7 it always has a large amound of warnings and throws nasm errors "unspecifed path" that was also discussed on a solution to solve however that process takes a long time to manaull change each of the pathnames in the .asm files. Do you have a simple way of doing this or is there some sort of special setting your using? are you even using nasm? Thanks.
celtic_druid
3rd August 2005, 06:31
Yes I use nasm. Generally I use MSVC6 with ICL7 though and it compiles fine. From recollection once it has converted the dsp file you have to manually edit the nasm lines as it screws them up.
If you have already compiled xvidcore.dll with cygwin you should be able to get xvidvfw.dll easily and xvid.ax with a little bit of effort.
ChronoCross
3rd August 2005, 07:02
yeha I been working on it for the last 2 hours. got xvidcore and the vfw. working on the dshow filter now. You said it had instructions? I'm working on patching the directshow SDK atm. Then I'll try "make" and see if still throws the same error.
yes you are right about VC 7.0 screwing up the pathnames. it does it for all files ending in .asm if I remember from my adventures in getting it to work the last time. there used to be a hosted file on the forum that had it done already but that file is gone and was out of date.
ChronoCross
3rd August 2005, 09:09
Since i assume this may be a problem with some people trying to compile xvid I will give some information on doing so fairly easily.
xvidcore/build/generic: use "make" in cygwin after using configure and making custom cflags(which I need to find a good place to learn about) this creates xvidcore.dll
xvidcore/vfw/bin: once again just use "make". this will give you xvidvfw.dll and xvid.inf
xvidcore/dshow: open dshow.dsp in wordpad and hit the save button. close out of it. Open it in Visual C++ 7 .net you need to add several directories to your visual c settings. go to Tools/Options/Projects/VC++ Directories use the dropdown box in the right corner to switch to "include Files". Add the Following Directories
C:\<SDK9DIR>\Include
C:\<SDK9DIR>\Samples\C++\DirectShow\BaseClasses
where <SDK9DIR> is your Direct X 9 SDK install Directory.
then use the dropdown box to switch to "library files" you need to add the following:
C:\<SDK9DIR>\Lib
Now comes the fun part. You need to go into
C:\<SDK9DIR>\Samples\C++\DirectShow\BaseClasses and open the VS 7 project file. Compile it and you will get a file called strmbase.lib. copy that file and paste it in C:\<SDK9DIR>\Lib
Now try compiling the dshow project and everything should go fine. you now have the third part of xvid. xvid.ax
Turn it into an installer or install it manually. Hopefully this helps others who are interested in compiling xvid.
I'll see if I can work out some solutions for the problems seen in compiling xvidcore and vfw in VS 7.0.
celtic_druid
3rd August 2005, 10:19
Here ya go http://mirror05.x264.nl/celtic_druid/force.php?file=./xvidcoremsvc71.7z XviD compiled with MSVC7.1.
VfW should just compile, although if you don't have xvidcore.dll compiled you will get an error when it tries to copy it.
Compiled from current cvs.
For xvidcore, I just got rid of all the "'s.
ChronoCross
3rd August 2005, 23:44
I tried removing all the " this morning and it solved the first problem. Now nasm instead of saying there is no input file it's saying there are more than one specified. after taking a look at libxvidcore.vcproject it seems like it's all phrased right. is there something else that has to be changed that I'm not seeing? Thanks. I can also post buildlogs or projectfiles if need be. I'd like to work out the issue as this has been quite an informative attempt thus far.
celtic_druid
3rd August 2005, 23:51
That was all I did and it compiled fine.
squid_80
4th August 2005, 00:19
Make sure you don't have any spaces in the directory names leading to where the source code is stored.
ChronoCross
4th August 2005, 01:12
Make sure you don't have any spaces in the directory names leading to where the source code is stored.
doh, you were right. did you know this from experience?
squid_80
4th August 2005, 01:36
Nope. Guessed from the nasm error message you gave.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.