Log in

View Full Version : Compiling XViD


shorto
2nd April 2008, 13:22
Hey all!

The title should say it all but still some of you may wonder why the heck is this idiot trying to compile something that has already been made. A simple answer; school.

So I need to make a video player and a codec. "It can simply be complied by going to the XViD homepage and there you can download the source code, just write your names down somewhere (can even be at the 2nd passes calculator for that matter) so that I'll see that you actually compiled it" it sounded easy coming out of the professors mouth but the only problem is that the source that's on the official XViD page can't compile. I tried everything it just wont compile and there appears to be something wrong with the source code that's uploaded on the site. So I was wondering does anybody have any experience compiling these? Or even better does anyone have the Koepi's build code?

fibbingbear
2nd April 2008, 15:05
I would be extremely surprised if there was a bad XviD build uploaded.

Without more information, it's impossible to tell what's the problem. You should include info like:

1.) Your environment
2.) What the specific error is that causes it to bork.

I've never compiled XviD myself, but I'm sure there are others here who have and can help... but without those two pieces of information, it'll be impossible to help.

My guess is you're missing a library. When you find out what the compilation error is, search for that on google, see if you need to download some missing file.

clsid
2nd April 2008, 17:02
So the actual task is just to learn to compile something? Some hints: mingw32, gcc, ./configure, make ;)

But you could be lazy and just use a resource hacker tool to put your name in the about box.

celtic_druid
2nd April 2008, 17:04
There is nothing wrong with the source on the site. I have compiled the current cvs as well as 1.1.3 when it came out. Both with mingw, linux/gcc and msvc.

As said, more info is needed if you want help. There is nothing about the code that will prevent it from compiling at any rate.

edit:
actually you need to run ./bootstrap.sh before configure and that will just give you the core. You actually want the VfW or dshow frontends if you want resources to edit. For those basically just cd to the dirs then just run make (after using a text editor on the resource file). dshow is a little more involved, with headers, etc.

The same occurred to me about the pointlessness of the exercise to.

shorto
3rd April 2008, 08:38
woha, I honestly didn't think anyone would reply to this post so tnx in advance.

Anyways to answer you about the OS I'm using Windows XP, as for the error I'll have to get back to you on that since I'm not home ATM. Oh I use Microsoft Visual Studio 2005 for compiling this.

And clsid your idea just might work ;) I'll have to try it if I can't compile it. ;)

EDIT:
------ Build started: Project: libxvidcore, Configuration: Release Win32 ------
Assembling c:\Documents and Settings\Denis\Desktop\xvidcore-1.1.3\xvidcore-1.1.3\src\utils\x86_asm\mem_transfer_mmx.asm
nasm: error: more than one input file specified
nasm: error: more than one input file specified
type `nasm -h' for help
Project : error PRJ0019: A tool returned an error code from "Assembling c:\Documents and Settings\Denis\Desktop\xvidcore-1.1.3\xvidcore-1.1.3\src\utils\x86_asm\mem_transfer_mmx.asm"
Build log was saved at "file://c:\Documents and Settings\Denis\Desktop\xvidcore-1.1.3\xvidcore-1.1.3\build\win32\Release\BuildLog.htm"
libxvidcore - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

clsid
3rd April 2008, 12:42
Store the files in a path that doesn't contain spaces, or put " " around the path.

TheRyuu
5th April 2008, 13:36
I would be extremely surprised if there was a bad XviD build uploaded.

I broke a build I uploaded once.
No idea how it happened either. Xvid is rather easy to compile. Just really needs pthreads besides the other standard mingw stuff.

shorto
6th April 2008, 01:32
now that I put this to c:/xvid this is what I get as an error:
http://pastebin.com/f1b46f68f (I had to put it on pastebin since it was too long to psot here),
any ideas?

celtic_druid
6th April 2008, 08:56
Check the properties of colorspace_yuyv_mmx.asm and see what command line is being used.

shorto
11th April 2008, 20:04
tnx for all your help, with Koepi's help I was able to pull it off ;).

Once again thank you all.

catch22
27th June 2008, 00:01
tnx for all your help, with Koepi's help I was able to pull it off ;).

Once again thank you all.
What does the trick?
I#m running into the same error
e:\xvidcore\src\image\x86_asm>nasm -f win32 -DPREFIX -I"e:\xvidcore\src\image\x86_asm\"\ -o .\Debug\colorspace_yuyv_mmx.obj e:\xvidcore\src\image\x86_asm\colorspace_yuyv_mmx.asm
nasm: error: no input file specified
type `nasm -h' for help

clsid
27th June 2008, 11:57
-I"e:\xvidcore\src\image\x86_asm\"\
Need to remove the last backslash?