Personal tools

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - keybounce

Pages: 1 2 [3] 4 5 ... 22
Newbie Coding / Re: How long does compiling usually take (etc) ATM?
« on: July 06, 2010, 07:04:51 am »
30 seconds? From clean, the code for the program (universal, so it's compiling twice) takes about 5 minutes on my machine

But yea, the maps take days.

Mac / Re: OSX installers
« on: July 06, 2010, 07:00:53 am »
Trying to figure out the sound issue.

Some debugging output yields
Code: [Select]
Installing contrib/installer/mac/
Installing contrib/installer/mac/
Installing contrib/installer/mac/
Installing contrib/installer/mac/
Installing contrib/installer/mac/
Finalizing ufo...
Debug contrib/installer/mac/
debug libs /opt/local/lib/libvorbis.0.dylib /opt/local/lib/libogg.0.dylib /opt/local/lib/libz.1.dylib /usr/lib/libcurl.4.dylib /opt/local/lib/libjpeg.8.dylib /opt/local/lib/libpng12.0.dylib /opt/local/lib/libSDL-1.2.0.dylib /opt/local/lib/libSDL_image-1.2.0.dylib /opt/local/lib/libSDL_mixer-1.2.0.dylib /opt/local/lib/libSDL_ttf-2.0.0.dylib /opt/local/lib/libtheora.0.dylib /opt/local/lib/libintl.8.dylib
install_name_tool -change /opt/local/lib/libvorbis.0.dylib @executable_path/../Libraries/libvorbis.0.dylib contrib/installer/mac/
install_name_tool -change /opt/local/lib/libogg.0.dylib @executable_path/../Libraries/libogg.0.dylib contrib/installer/mac/

So it *IS* changing the location of libvorbis in the executable.

... which makes me wonder if maybe the macports version of SDL_mixer has a hardcoded reference (nothing else I can think of that plays with sound).

Mac / Re: OSX installers
« on: July 05, 2010, 04:27:16 am »
... And there's a problem.

Testing on a second machine, with none of the needed libraries in from MacPorts (oddly, with all of SDL in /Library/Frameworks), yeilds this in the console.log:

2010/07/04 19:20:37 Using low resolution globe textures as requested.
2010/07/04 19:20:37 SDL_image version 1.2.10
2010/07/04 19:20:48 SDL_ttf version 2.0.9 - we need at least 2.0.7
2010/07/04 19:20:49 ------- sound initialization -------
2010/07/04 19:20:49 SDL_mixer version: 1.2.11
2010/07/04 19:20:49 ... requested audio rate: 44100
2010/07/04 19:20:50 ... driver: 'coreaudio'
2010/07/04 19:20:50 ... audio rate: 44100
2010/07/04 19:20:50 ... audio channels: 2
2010/07/04 19:20:50 ... could not load ogg vorbis support

2010/07/04 19:21:53 M_Start: Could not load music: 'music/van_theme' (Failed loa
ding /opt/local/lib/libvorbisfile.dylib: dlopen(/opt/local/lib/libvorbisfile.dyl
ib, 2): image not found)

That error message (a hardcoded library reference) is received on every sound.

2010/07/04 19:22:10 ********************
2010/07/04 19:22:10 ERROR: Invalid version of the mdx file, expected 1, found 16
2010/07/04 19:22:10 ********************

This one I have no clue on.

Mac / Re: OSX installers
« on: July 05, 2010, 04:08:40 am »
Universal i386/ppc build of 2.3 release

1. SDL is broken in macports. This was fixed, as indicated on the wiki, by patching it between the configure and compile stage. Reading the details on the SDL home page of what they have done with some linker tricks, I'm not sure that the macports version is "current". Sadly, the configure script for UfoAi doesn't like SDL as frameworks in /Library/Frameworks.

2. At least one change to the mathlib source file was made since 2.3 release. There may have been others. It seems that (and I may have used svn incorrectly) the tag is on a branch rather than on a specific version.

3. Maps are ppc compiled. They probably won't have identical checksums to the i386 compiled maps.

4. Not yet tested since packaging. The change to SDL reduces, but does not eliminate, the graphical issues on ppc.

Mac / Re: OSX installers
« on: July 04, 2010, 08:54:02 pm »
Currently uploading a ppc/i386 universal of Revision: 30748

Mac / Re: 2.3 release compilation issues
« on: July 04, 2010, 06:26:17 am »
Mattn? Any answers?

Btw: To produce a .dmg now, you also need the p7zip port installed.

Mac / Re: 2.3 release compilation issues
« on: July 02, 2010, 08:12:22 am »
Now that 2.3 does not have an intro movie, does it still need either DivX or libtheora?

2.3's configure checks for both of these.

Mac / Re: 2.3 dev version for mac question
« on: July 01, 2010, 12:02:35 am »
As I reported to them:

stbmac:trunk Michael$ port provides /opt/local/include/SDL/SDL_config.h
/opt/local/include/SDL/SDL_config.h is provided by: libsdl
stbmac:trunk Michael$ port installed libsdl
The following ports are currently installed:
 libsdl @1.2.13_6+universal
 libsdl @1.2.14_8+universal (active)
stbmac:trunk Michael$

I've got the right version installed and active? Right?

stbmac:trunk Michael$ egrep BYTE  /opt/local/include/SDL/SDL_config.h
#define SDL_BYTEORDER 1234
Remove that line from that file, and it should work.


Mac / Re: 2.3 dev version for mac question
« on: June 30, 2010, 11:58:35 pm »
Ahh. Now I remember.

The libsdl port in MacPorts does not properly work when compiled universal.
It hard codes a single byteswap order, and it hardcodes the x86 order.

The fix was to delete the -- from memory here -- #DEFINE BYTEORDER line from libsdl.h, and then at run-time it tests and determines on its own what the order is.

See if you see that line, and if so, clobber it.
Meanwhile, I'll double check with the macports people.

Mac / Re: 2.3 dev version for mac question
« on: June 30, 2010, 11:55:56 pm »
Yea, dang it.

Let me see if I can re-create what I did to fix that.
It was an issue with macports, and I thought I submitted the patch to them.

Mac / 2.3 release compilation issues
« on: June 30, 2010, 11:49:14 pm »
In an attempt to check the SDL issues by using the official release versions of SDL instead of the MacPorts versions, I'm getting an error from configure.

The problem turns out to be simple

gcc -o conftest  -I/opt/local/include -arch i386 -arch ppc   -L/opt/local/lib -arch i386 -arch ppc conftest.c -lSDL_image

Macports puts the SDL_image as a library in /opt/local/lib.
The official release puts it as a framework in /Library/Frameworks.

Changing that "-lSDL_image" into "-FSDL_image" makes it work.
But I can't figure out how to modify either or configure to test for that.

This is probably going to affect all of SDL -- SDL_mixer, SDL_ttf, etc.
(actually, are those the only SDL parts that UfoAi uses?)

FAQ / Compiling maps
« on: June 30, 2010, 06:36:51 am »
... Are the maps supposed to take this long?

10 hours just for facelights on maps/city/citybldl_4x4_2a.bsp on a 1.42 GHz G4.

Yea, yea, I know, just gotta bear with it...

Mac / Re: 2.3 dev version for mac question
« on: June 30, 2010, 06:29:05 am »
There's a number of additional SDL libraries.

If you're having trouble with this, grab the official distribution and copy ALL of the libraries and frameworks.

Mac / Re: 2.3 dev version for mac question
« on: June 29, 2010, 09:19:09 pm »
You may need to install jpeg.

Kleiman-ibook:~ michael$ port provides /opt/local/include/jpeglib.h
/opt/local/include/jpeglib.h is provided by: jpeg
Kleiman-ibook:~ michael$ port info jpeg
jpeg @8a (graphics)
Variants:             universal

Description:          This distribution contains the eighth public release of
                      the Independent JPEG Group's free JPEG software. You are
                      welcome to redistribute this software and to use it for
                      any purpose, subject to the conditions under LEGAL ISSUES,
                      below. Serious users of this software (particularly those
                      incorporating it into larger programs) should contact IJG
                      at to be added to our electronic
                      mailing list. Mailing list members are notified of updates
                      and have a chance to participate in technical discussions,

Platforms:            darwin, freebsd, sunos
License:              unknown
Kleiman-ibook:~ michael$

Mac / Re: Newbie question.
« on: June 28, 2010, 11:40:58 pm »
I was looking on video, not general.

No, it still is a dark 3D geoscape.

2D works fine.

Pages: 1 2 [3] 4 5 ... 22