project-navigation
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
31
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.

32
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/UFOAI.app/Contents/Libraries/libvorbis.0.dylib...done
Installing contrib/installer/mac/UFOAI.app/Contents/Libraries/libz.1.dylib...done
Installing contrib/installer/mac/UFOAI.app/Contents/Libraries/libcurl.4.dylib...done
Installing contrib/installer/mac/UFOAI.app/Contents/Libraries/libintl.8.dylib...done
Installing contrib/installer/mac/UFOAI.app/Contents/Libraries/libSDL_image-1.2.0.dylib...done
Finalizing ufo...
Debug contrib/installer/mac/UFOAI.app/Contents/MacOS/ufo
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/UFOAI.app/Contents/MacOS/ufo
install_name_tool -change /opt/local/lib/libogg.0.dylib @executable_path/../Libraries/libogg.0.dylib contrib/installer/mac/UFOAI.app/Contents/MacOS/ufo

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).

33
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
777216
2010/07/04 19:22:10 ********************

This one I have no clue on.

34
Mac / Re: OSX installers
« on: July 05, 2010, 04:08:40 am »
Universal i386/ppc build of 2.3 release
https://docs.google.com/leaf?id=0B5IJio6EJ3NBNTNhMTliNmMtZTM5Mi00NDkzLTlmY2ItNDM4YzExZjM1MDg0&sort=name&layout=list&num=50

Issues:
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.

35
Mac / Re: OSX installers
« on: July 04, 2010, 08:54:02 pm »
Currently uploading a ppc/i386 universal of https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/branches/ufoai_2.3 Revision: 30748

36
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.

37
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.

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

Quote
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.

EDIT: https://trac.macports.org/ticket/23674

39
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.

40
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.

41
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 configure.ac 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?)

42
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...

43
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.

44
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 jpeg-info@uunet.uu.net to be added to our electronic
                      mailing list. Mailing list members are notified of updates
                      and have a chance to participate in technical discussions,
                      etc.
Homepage:             http://www.ijg.org/

Platforms:            darwin, freebsd, sunos
License:              unknown
Maintainers:          waqar@macports.org
Kleiman-ibook:~ michael$

45
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