doom source?

This is a discussion on doom source? within the Game Programming forums, part of the General Programming Boards category; Ok, this is probably way in left field since the doom source code was released years ago but I have ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    10

    doom source?

    Ok, this is probably way in left field since the doom source code was released years ago but I have to ask anyways....

    I got the doom source, but it is made to compile on a linux machine...

    I get the boom port of the doom source(made to compile for dos using djgpp and allegro both of which I have, both have installed right and both work)

    I goto the src dir and type make, here is what I get:

    C:\WINDOWS\Desktop\boom202s>make
    gcc -Wall -Winline -Wno-parentheses -DNORMALUNIX -O3 -ffast-math -fomit-frame-p
    ointer -m486 -c doomdef.c -o obj/doomdef.o
    `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
    Assembler messages:
    FATAL: can't create obj/doomdef.o: No such file or directory (ENOENT)
    make.exe: *** [obj/doomdef.o] Error 1


    I am guessing this is because I don't have a obj directory, so I created one and I get even more errors, also I switch -m486 in the makefile to -march=i486, still same errors, the errors after creating the obj dir is as follows:
    C:\WINDOWS\Desktop\boom202s>make
    gcc -Wall -Winline -Wno-parentheses -DNORMALUNIX -O3 -ffast-math -fomit-fram
    ointer -m486 -c doomdef.c -o obj/doomdef.o
    `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
    gcc -Wall -Winline -Wno-parentheses -DNORMALUNIX -O3 -ffast-math -fomit-fram
    ointer -m486 -c doomstat.c -o obj/doomstat.o
    `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
    m_fixed.h: In function `FixedMul':
    m_fixed.h:76: operand constraint contains incorrectly positioned '+' or '='
    m_fixed.h: In function `FixedDiv':
    m_fixed.h:111: operand constraint contains incorrectly positioned '+' or '='
    make.exe: *** [obj/doomstat.o] Error 1


    Any help would be appreciated, I figure if I can get this to compile I can dig into it and figure out how it ticks, well partially.
    WOO!

  2. #2
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    it wouldnt be made to compile on linux, since i dont think linux was really out there when doom was made.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,597
    gcc -Wall -Winline -Wno-parentheses -DNORMALUNIX -O3 -ffast-math -fomit-fram
    ointer -m486 -c doomdef.c -o obj/doomdef.o

    `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.

    gcc -Wall -Winline -Wno-parentheses -DNORMALUNIX -O3 -ffast-math -fomit-fram
    ointer -m486 -c doomstat.c -o obj/doomstat.o

    Looks like you didn't change the m486 to me unless I'm missing something.

    Check the fixed point math functions and see if you can fix them. It seems that + and = might be out of order or used incorrectly for DJGPP - which is stupid cuz it should be the same as any other compiler.

    And your other problem is probably an error stemming from your first error. Often times if you encounter and error in compilation, the assembler will also issue an error saying it could not create the object file. Much like if you forget a semi-colon in code you get thousands of errors when there is really only one.

  4. #4
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Originally posted by Draco
    it wouldnt be made to compile on linux, since i dont think linux was really out there when doom was made.
    true, but there is a Linux version of doom, I don't know if it was made by Id or not, I got it to compile a while back, I used gcc and nasm, I suggest you Google for it.

  5. #5
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    you can't have the windows source for doom because of the sound libraries they used (closed source legal caca)

  6. #6
    Registered User
    Join Date
    Oct 2003
    Posts
    10
    Ok, it was orignally the doom source code, ported to linux to avoid legal issues and released to the public by ID software. I don't have linux and can't compile the straight from ID version of doom, however many different ports of the engine have been made and come with their full source, one such is called BOOM, thats what I am trying to compile, its not a windows port, just a dos port.

    I was wondering if anyone knew why it wasn't compiling, or maybe they compiled it themselves once and could help me out. I don't think its a compiler issue since I have djgpp and the allegro lib, the same thing the BOOM sites says you need to compile BOOM, however mine is a newer version I am sure since BOOM came out years ago.

    Its not a code issue, well I doubt it is because why would the release source that doesn't compile?

    Anyhelp greatly appreciated, I am thinking maybe I need that nasm lib too, however no where does it say I need it.
    WOO!

  7. #7
    Registered User
    Join Date
    Oct 2003
    Posts
    10
    Perhaps I can't get it to compile because I am using the wrong command. I goto the dir and type "make" is there anything else I have to do?
    WOO!

  8. #8
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Linux has been around since 1992 if I remember right. Doom came out after that if I remember right.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debug into Source
    By lehe in forum C++ Programming
    Replies: 4
    Last Post: 02-18-2009, 10:45 AM
  2. Open Source Licenses
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 10-10-2006, 09:53 PM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. the many wonders and challenges of Doom
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 06-02-2002, 03:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21