Back to the Vavoom Forum Archives


Forum

Vavoom on Mac OS X

Mon, 04 Feb 2008 04:10:19

Duck Man

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. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Mon, 04 Feb 2008 19:26:20

Janis Legzdinsh

What's the error message?
Mon, 04 Feb 2008 22:26:32

Duck Man

<!-- m --><a class="postlink" href="http://personal.piratehook.com/dm/stuff/error.txt">http://personal.piratehook.com/dm/stuff/error.txt</a><!-- m --> I am on a intel based mac running Mac OS X 10.5.1
Mon, 04 Feb 2008 22:37:27

scen

Retry using
./configure --disable-asm <other-options>
Mon, 04 Feb 2008 23:56:04

Duck Man

Now I get a different error. Has anyone gotten it to compile on a mac before? <!-- m --><a class="postlink" href="http://personal.piratehook.com/dm/stuff/error2.txt">http://personal.piratehook.com/dm/stuff/error2.txt</a><!-- m -->
Tue, 05 Feb 2008 00:17:27

Firebrand

[quote="Duck Man":wuxykg2u]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 <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, so don't give up, heh! <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Tue, 05 Feb 2008 14:07:27

Janis Legzdinsh

It seams you forgot to do this:
make clean
Tue, 05 Feb 2008 21:15:06

Duck Man

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:
/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.
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.
Wed, 06 Feb 2008 08:26:56

scen

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 [u:10s07j5n]/yourhomedir/.vavoom/debug.txt[/u:10s07j5n])
Wed, 06 Feb 2008 11:41:07

Duck Man

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: <!-- m --><a class="postlink" href="http://personal.piratehook.com/dm/stuff/error3.txt">http://personal.piratehook.com/dm/stuff/error3.txt</a><!-- m --> Not sure how useful it is.
Wed, 06 Feb 2008 18:59:31

Janis Legzdinsh

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.
Thu, 07 Feb 2008 01:33:35

Duck Man

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. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> 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. [u:35dor5r6]Download the Source[/u:35dor5r6] I stated just downloading the source with the hopes that a simple make and make install would do the trick. <!-- m --><a class="postlink" href="http://vavoom-engine.com/download.php">http://vavoom-engine.com/download.php</a><!-- m --> 2. [u:35dor5r6]Dependancies[/u:35dor5r6] 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. <!-- s:-P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":-P" title="Razz" /><!-- s:-P --> Here is a list that I can remember: Apple Developer Tools: <!-- m --><a class="postlink" href="http://developer.apple.com/tools/download">http://developer.apple.com/tools/download</a><!-- m --> - this is required for allegro and is more importantly where u get gcc. Allegro <!-- m --><a class="postlink" href="http://alleg.sourceforge.net/wip.html">http://alleg.sourceforge.net/wip.html</a><!-- m --> - You want allegro-4.2.2.tar.gz - Then I followed this page (<!-- m --><a class="postlink" href="http://alleg.sourceforge.net/stabledocs/en/build/macosx.html">http://alleg.sourceforge.net/stabledocs ... acosx.html</a><!-- m -->) which I will summarize.
chmod +x fix.sh
./fix.sh macosx
make
sudo make install
libpng <!-- m --><a class="postlink" href="http://www.libpng.org/pub/png/libpng.html">http://www.libpng.org/pub/png/libpng.html</a><!-- m --> - the normal ./configure && make && sudo make install. I don't think there was anything fancy. libjpeg <!-- m --><a class="postlink" href="http://www.ijg.org/">http://www.ijg.org/</a><!-- m --> - This one was different. I used <!-- m --><a class="postlink" href="http://snippets.dzone.com/posts/show/38">http://snippets.dzone.com/posts/show/38</a><!-- m -->
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. [u:35dor5r6]The making![/u:35dor5r6] Pretty normal except for the required option on the configure.
./configure --disable-asm
make
sudo make install
That should do it. 4. [u:35dor5r6]Running[/u:35dor5r6]
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. [u:35dor5r6]Finish Up[/u:35dor5r6] 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. <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D -->
Thu, 07 Feb 2008 01:46:22

Duck Man

Messing around a little more and it crashed. I think it is audio based. <!-- m --><a class="postlink" href="http://personal.piratehook.com/dm/stuff/error4.txt">http://personal.piratehook.com/dm/stuff/error4.txt</a><!-- m -->
Thu, 07 Feb 2008 12:47:47

Firebrand

It's cool that you made it work fine! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> As for the error, it could be something related to the renderer, I can detect these as error lines:
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 <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.

Back to the Vavoom Forum Archives