Odamex Message Boards

Community Discussion => Technical Support => Topic started by: Qwerty_ on January 25, 2007, 05:27:00

Title: Compiling Help
Post by: Qwerty_ on January 25, 2007, 05:27:00
Hello I just downloaded Odamex for linux but I am having trouble compiling it.

This is what I have done.

mike@mike-desktop:~/Desktop/Odamex$ make client
g++ -DUNIX -DLINUX -DNOASM -Icommon -g -Wall -O2 -I../client/sdl -Iclient/sdl -I../client/src -Iclient/src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c client/src/../sdl/i_music.cpp -o obj/client/src/../sdl/i_music.o
client/src/../sdl/i_music.cpp:36:23: error: SDL_mixer.h: No such file or directory
client/src/../sdl/i_music.cpp:47: error: expected constructor, destructor, or type conversion before
Title: Re: Compiling Help
Post by: Qwerty_ on January 25, 2007, 05:27:43
Umm I dont know what happened but it looks like my post got chopped off or something?

EDIT: I tried to edit the main post to paste in the rest but it keeps getting chopped off is there a char limit or something? I have attached an image of the error. The command I used was make client
Title: Re: Compiling Help
Post by: ufon on January 25, 2007, 08:08:25
so have you installed all SDL libraries required ? the easiest way of making sure you've got them all is by installing PRBOOM from the package manager and then compiling odamex - i know very little about this stuff but this is what i have done(been told to do) and it worked
Title: Re: Compiling Help
Post by: AlexMax on January 25, 2007, 11:10:49
Umm I dont know what happened but it looks like my post got chopped off or something?

It's a bug in SMF.  I ran into similar problems before.  If you're running into problems, check where the post cut off, because there is probably something there that SMF is choking on.  For me, changing my double spaces to single spaces fixed my problems, but ymmv.

From the looks of your error message, you don't have the development libraries for SDL_mixer installed.  What distro of Linux are you running?
Title: Re: Compiling Help
Post by: Qwerty_ on January 25, 2007, 18:25:15
I have installed the SDL_mixer libraries which is why im a litle bit confused as to why it is calling for them.

I am using Linux Mint which is Ubuntu Edgy.

Ill go and try installing PRBOOM right now.

EDIT: Ok I downloaded prdoom and i got the same problem I have when I try to install, SO i think its my OS atm Ive been messing with to much stuff lately so I think I will have to reformat it and start from scratch.
Title: Re: Compiling Help
Post by: Necromage on January 26, 2007, 20:53:00
I am using Fedora Core 6 and I got the same error.
Title: Re: Compiling Help
Post by: Voxel on January 27, 2007, 09:05:56
From the looks of your error message, you don't have the development libraries for SDL_mixer installed.

That could explain it. Good idea to check if you actually have the header.

find /usr/include -type f -iname "*mixer.h"
Title: Re: Compiling Help
Post by: Necromage on January 27, 2007, 12:49:12
I typed that and I got this: /usr/include/alsa/mixer.h So it appears that I have it.
Title: Re: Compiling Help
Post by: RazTK on January 27, 2007, 15:09:30
From what I understand, it looks for SDL_mixer.h and not mixer.h.
Title: Re: Compiling Help
Post by: Qwerty_ on January 28, 2007, 00:51:43
Code: [Select]
mike@mike-desktop:~$ find /usr/include -type f -iname "*mixer.h"
/usr/include/SDL/SDL_mixer.h

Yep ive got the SDL_mixer as well so this is very odd and could be a problem across the *nix board.
Title: Re: Compiling Help
Post by: Qwerty_ on January 29, 2007, 02:39:20
Determined not to give up I have reformatted my linux and gone back to Ubuntu 6.06. Installed all the SDL stuff execpt for one file that had a error but when i sdl-confi --version i get  1.2.11 so i presume it must of installed.

The Errors can be found in the attached image. Where the terminal is cut off is more errors that I believe to be related to the Xlib problem
Title: Re: Compiling Help
Post by: Qwerty_ on February 14, 2007, 06:46:02
I guess that no one is able to solve help me solve my problems.
Title: Re: Compiling Help
Post by: Barcode on February 14, 2007, 13:53:14
People just don't seem to visit here often enough, that's all. I'm sure somebody will respond soon enough.
Title: Re: Compiling Help
Post by: Manc on February 16, 2007, 15:13:35
To be fair, your problem isn't with Odamex itself, as just about everyone else is able to compile it on their respective platforms just fine, especially linux variants.  Your problem is more at the base of things like ensuring libs are set up right and such.  This is a bit trickier of a proposition as it requires someone who uses ubuntu, visits here enough to notice and would have an answer to your problem.

Have you tried visiting ubuntu boards or sdl boards or any other sources?
Title: Re: Compiling Help
Post by: Qwerty_ on February 23, 2007, 03:22:13
No not yet Ill go and see if I can some kind of assistance from the Ubuntuforums.
Title: Re: Compiling Help
Post by: Qwerty_ on November 14, 2007, 00:59:31
Well I thought I would take a fresh start at compiling it with v0.3 and it worked. I am using the freedoom IWAD.

However it freezes for me after about 5 seconds of starting up. Is this related to the IWAD I am using or did something go wrong with my compile?

(Also I have made a .deb that I am going to test on my bros PC, not sure if the developers would like it or not, I wanna get everything working though before I post it here. That is assuming the developers want it if not thats cool was an experiment more than anything.)
Title: Re: Compiling Help
Post by: Memfis on November 14, 2007, 07:34:30
Can you hear music?sound?
Does it works with -nosound or -nomusic?
(I resolved this problem when returned to standard debian kernel)
Title: Re: Compiling Help
Post by: Qwerty_ on November 14, 2007, 07:52:16
I dont get any sound once it locks up. I do get sound initially though.

EDIT:

Ok it turned out I was running SDL_mixer 1.2.6 so I compiled SDL_mixer 1.2.8 then went ahead and recompiled odamex 0.3.

This still resulted in me having the same freezing problem.

After chatting with Russel on the IRC (thanks very much for your help Russel). He suggested that I try out prboom to see if other SDL applications ran.

Prboom required SDL_net to be compiled. I installed SDL_net from the Ubuntu repos, compiled prboom and it ran fine.

After that I thought I would try odamex again, and it worked... even though it does not need SDL_net.

I think ill reboot just incase running prboom first ticked something to start it all working.