Vavoom on Mac OS X

Anything not covered by other topics

Vavoom on Mac OS X

Postby Duck Man » 04 Feb 2008 04:10

I love this project and I have had it working on Windows and Linux but I thought it would be cool to see if it ran on my mac (I like having options... lol). I got all the libraries to compile fine, but vavoom stops with an error on the first thing it tries to compile. So thats a bummer. Basically this is just a post saying a mac version would be used by at least one person. :)
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby Janis Legzdinsh » 04 Feb 2008 19:26

What's the error message?
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Duck Man » 04 Feb 2008 22:26

http://personal.piratehook.com/dm/stuff/error.txt
I am on a intel based mac running Mac OS X 10.5.1
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby scen » 04 Feb 2008 22:37

Retry using
Code: Select all
./configure --disable-asm <other-options>
User avatar
scen
 
Posts: 197
Joined: 24 Jan 2006 21:41
Location: Padova, Italy

Postby Duck Man » 04 Feb 2008 23:56

Now I get a different error. Has anyone gotten it to compile on a mac before?
http://personal.piratehook.com/dm/stuff/error2.txt
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby Firebrand » 05 Feb 2008 00:17

Duck Man wrote:Has anyone gotten it to compile on a mac before?

It seems you are the first one trying to, but I think it could lead to making the game work on Macs too :), so don't give up, heh! ;)
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Postby Janis Legzdinsh » 05 Feb 2008 14:07

It seams you forgot to do this:
Code: Select all
make clean
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Duck Man » 05 Feb 2008 21:15

Wow. I can't believe I have never ran into a problem like that before... GREAT NEWS!!! It compiled and installed fine. It even runs until u try to start an actual game... lol. So if you try to make a new game, it freezes after u select the difficulty. And then the console gets this:
Code: Select all
/usr/local/bin/vavoom: line 5: 10015 Bus error           "/usr/local/bin/vavoom.i686" $*

As a side note, I get a warning as well while everything is working.
Code: Select all
2008-02-05 13:09:24.489 vavoom.i686[10015:351b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby scen » 06 Feb 2008 08:26

The best way to track these problems is to start the game with the -debug parameter, and report the contents (at least the last 10-20 rows) of debug.txt (i guess that you can find it in /yourhomedir/.vavoom/debug.txt)
User avatar
scen
 
Posts: 197
Joined: 24 Jan 2006 21:41
Location: Padova, Italy

Postby Duck Man » 06 Feb 2008 11:41

oddly that isn't working. There is no .vavoom directory in my home and I even searched the entire system for a debug.txt file and there isn't one. Here is the report generated by the os: http://personal.piratehook.com/dm/stuff/error3.txt Not sure how useful it is.
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby Janis Legzdinsh » 06 Feb 2008 18:59

It looks like it fails because it can't create files. After checking code I remembered something. Try to run Vavoom with -savedir ${HOME}/.vavoom parameter.
User avatar
Janis Legzdinsh
Site Admin
 
Posts: 1952
Joined: 13 Jan 2002 08:30
Location: Limassol, Cyprus

Postby Duck Man » 07 Feb 2008 01:33

IT WORKS!!! So I guess I have to list everything I did now... I will try to make it look as nice as I can. Keep in mind I am remembering most this off the top of my head so if something isn't exact, I blame you. :) I should also mention that I have experience with linux and this is a extra computer I have so I am not afraid to break crap. So if you are just some random person wondering off the street, do this at your own risk.
1. Download the Source
I stated just downloading the source with the hopes that a simple make and make install would do the trick.
http://vavoom-engine.com/download.php
2. Dependancies
Sadly I was mistaken and when I ran ./configure it kept telling me I needed random stuff. I expected this but was hoping for the best. :-P Here is a list that I can remember:
Apple Developer Tools: http://developer.apple.com/tools/download
- this is required for allegro and is more importantly where u get gcc.
Allegro http://alleg.sourceforge.net/wip.html
- You want allegro-4.2.2.tar.gz
- Then I followed this page (http://alleg.sourceforge.net/stabledocs ... acosx.html) which I will summarize.
Code: Select all
chmod +x fix.sh
./fix.sh macosx
make
sudo make install

libpng http://www.libpng.org/pub/png/libpng.html
- the normal ./configure && make && sudo make install. I don't think there was anything fancy.
libjpeg http://www.ijg.org/
- This one was different. I used http://snippets.dzone.com/posts/show/38
Code: Select all
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a

3. The making!
Pretty normal except for the required option on the configure.
Code: Select all
./configure --disable-asm
make
sudo make install

That should do it.
4. Running
Code: Select all
vavoom -iwaddir ~/wads -doom -savedir $HOME/.vavoom

I store my wads all in one folder so I need the -iwaddir. Im running doom in this example. The last option is required. It creates a .vavoom in ur home directory and stores everything it needs in there. You should be able to move your wads into it afterwards just like the other platforms.
5. Finish Up
I haven't done a large amount of testing or anything. But it seems to run fine. If I missed anything please let me know. Thanks to Jenis, scen, and Firebrand. :-D
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby Duck Man » 07 Feb 2008 01:46

Messing around a little more and it crashed. I think it is audio based.
http://personal.piratehook.com/dm/stuff/error4.txt
User avatar
Duck Man
 
Posts: 8
Joined: 04 Feb 2008 03:33

Postby Firebrand » 07 Feb 2008 12:47

It's cool that you made it work fine! :D

As for the error, it could be something related to the renderer, I can detect these as error lines:
Code: Select all
11  vavoom.i686                      0x0002d73f VSoftwareDrawer::CacheSkySurface(surface_t*, VTexture*, VTexture*, float, float) + 319
12  vavoom.i686                      0x0001ff00 VSoftwareDrawer::DrawSurfaces() + 352
13  vavoom.i686                      0x0002024b VSoftwareDrawer::WorldDrawing() + 683
14  vavoom.i686                      0x000bb984 VRenderLevel::RenderWorld(refdef_t const*) + 260
15  vavoom.i686                      0x000c4981 VRenderLevel::RenderPlayerView() + 353
16  vavoom.i686                      0x000c4b0b R_RenderPlayerView() + 43
17  vavoom.i686                      0x000fecf8 SCR_Update() + 200
18  vavoom.i686                      0x00052ece Host_Frame() + 238
19  vavoom.i686                      0x00142941 _mangled_main(int, char**) + 225
20  vavoom.i686                      0x00170b19 call_user_main + 41

Not sure if this is the problem thought :).
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron