[quake3] Mac OS X Universal Binary (2nd try)

Daniel Lord daniellord at mac.com
Thu Jun 8 18:27:31 EDT 2006


On Jun 8, 2006, at 9:51, Tony J. White wrote:

> On Thu, Jun 08, 2006 at 09:05:48AM -0700, Daniel Lord wrote:
>>
>> On Jun 8, 2006, at 9:00, Tony J. White wrote:
>>
>>> On Thu, Jun 08, 2006 at 05:32:38PM +0200, Ludwig Nussel wrote:
> Daniel,
>
> I put up a new patch that uses the unmodified vm_x86.c:
>
> http://www.tjw.org/ioquake3-ub/ioquake3-svn801-default_vm_x86.patch
>
> Build instructions:
>
> svn co -r 801 svn://svn.icculus.org/quake3/trunk quake3.ub
> cd quake3.ub
> curl -O http://www.tjw.org/ioquake3-ub/ioquake3-svn801- 
> default_vm_x86.patch
> patch -p0 < ioquake3-svn801-default_vm_x86.patch
> cd code/libs/macosx/
> curl -O http://www.tjw.org/ioquake3-ub/libSDL-1.2.0.dylib
> curl -O http://www.tjw.org/ioquake3-ub/libopenal.dylib
> cd ../../../
> sh make-macosx-ub.sh


Well, we got a little farther this time. Maps and bots parsed.
  It chokes on a shared library stub for a helper interface (what  
ever _that_ is).

Since your commands didn't build the bundle and I was sure we needed  
the PAK files, I copied the ub build directory into the bundle's  
MacOS folder.
I'll write a python or shell script to do that automatically from now  
on.

Anyway, the run results are below...

Daniel

"I have come to believe that the whole world is an enigma, a harmless  
enigma
that is made terrible by our own mad attempt to interpret it as  
though it had
an underlying truth."
   -- Umberto Eco


[daniello at mercury.local]$ sh start_gdb.sh
GNU gdb 6.3.50-20050815 (Apple version gdb-477) (Sun Apr 30 20:01:44  
GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for  
shared libraries ....... done

(gdb) set args +set r_fullscreen 0
(gdb) run
Starting program: /Users/daniello/WIP/Quake3-Icculus/test/ioquake3- 
test.app/Contents/MacOS/ioquake3.ub +set r_fullscreen 0
Reading symbols for shared  
libraries .............................................................. 
................+ done
Reading symbols for shared libraries warning: Can't find  
LC_SEGMENT.__DATA.__data section in symbol file
. done
ioQ3 1.34-rc1 macosx-i386 Jun  8 2006
----- FS_Startup -----
Current search path:
/Users/daniello/Library/Application Support/Quake3/baseq3/pak8.pk3 (9  
files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak7.pk3 (4  
files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak6.pk3  
(64 files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak5.pk3 (7  
files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak4.pk3  
(272 files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak3.pk3 (4  
files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak2.pk3  
(148 files)
/Users/daniello/Library/Application Support/Quake3/baseq3/pak1.pk3  
(26 files)
/Users/daniello/Library/Application Support/Quake3/baseq3/PAK0.PK3  
(3539 files)
/Users/daniello/Library/Application Support/Quake3/baseq3
.//baseq3/pak8.pk3 (9 files)
.//baseq3/pak7.pk3 (4 files)
.//baseq3/pak6.pk3 (64 files)
.//baseq3/pak5.pk3 (7 files)
.//baseq3/pak4.pk3 (272 files)
.//baseq3/pak3.pk3 (4 files)
.//baseq3/pak2.pk3 (148 files)
.//baseq3/pak1.pk3 (26 files)
.//baseq3/PAK0.PK3 (3539 files)
.//baseq3
/Users/daniello/WIP/Quake3-Icculus/test/ioquake3-test.app/Contents/ 
MacOS/baseq3

----------------------
8146 files in pk3 files
execing default.cfg
execing q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
logfile opened on Thu Jun  8 15:22:10 2006

----- Initializing Renderer ----
-------------------------------
QKEY found.
----- Client Initialization Complete -----
----- R_Init -----

------- Input Initialization -------
Joystick is not active.
------------------------------------
...loading /System/Library/Frameworks/OpenGL.framework/Libraries/ 
libGL.dylib:
Calling SDL_Init(SDL_INIT_VIDEO)...
SDL_Init(SDL_INIT_VIDEO) passed.
Initializing OpenGL display
...setting mode 3: 640 480
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Using 8/8/8 Color bits, 24 depth, 8 stencil display.
GL_RENDERER: ATI Radeon X1600 OpenGL Engine
Initializing OpenGL extensions
...GL_S3_s3tc not found
...using GL_EXT_texture_env_add
...using GL_ARB_multitexture
...using GL_EXT_compiled_vertex_array
...ignoring GL_EXT_texture_filter_anisotropic
Trying SMP acceleration...
^3ERROR: SMP support was disabled at compile time
...failed.

GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: ATI Radeon X1600 OpenGL Engine
GL_VERSION: 1.5 ATI-1.4.26
GL_EXTENSIONS: GL_ARB_transpose_matrix GL_ARB_vertex_program  
GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects  
GL_ARB_vertex_shader GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint  
GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord  
GL_APPLE_client_storage GL_APPLE_specular_vector  
GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence  
GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators  
GL_APPLE_element_array GL_APPLE_flush_render GL_NV_texgen_reflection  
GL_NV_light_max_exponent GL_IBM_rasterpos_clip  
GL_SGIS_generate_mipmap GL_ARB_shading_language_100 GL_ARB_imaging  
GL_ARB_point_parameters GL_ARB_texture_env_crossbar  
GL_ARB_texture_border_clamp GL_ARB_multitexture  
GL_ARB_texture_env_add GL_ARB_texture_cube_map  
GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine  
GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat  
GL_ARB_shadow GL_ARB_depth_texture GL_ARB_shadow_ambient  
GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_occlusion_query  
GL_ARB_point_sprite GL_ARB_vertex_buffer_object  
GL_ARB_pixel_buffer_object GL_EXT_compiled_vertex_array  
GL_EXT_framebuffer_object GL_EXT_texture_rectangle  
GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color  
GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias  
GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap  
GL_EXT_texture_filter_anisotropic GL_EXT_separate_specular_color  
GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs  
GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1  
GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp  
GL_APPLE_ycbcr_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range  
GL_APPLE_float_pixels GL_ATI_texture_float GL_APPLE_pixel_buffer  
GL_NV_blend_square GL_NV_fog_distance GL_ATI_texture_mirror_once  
GL_ATI_text_fragment_shader GL_ATI_blend_equation_separate  
GL_ATI_blend_weighted_minmax GL_ATI_texture_env_combine3  
GL_ATI_separate_stencil GL_ATI_texture_compression_3dc  
GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGI_color_matrix
GL_MAX_TEXTURE_SIZE: 2048
GL_MAX_ACTIVE_TEXTURES_ARB: 8

PIXELFORMAT: color(24-bits) Z(24-bit) stencil(8-bits)
MODE: 3, 640 x 480 windowed hz:N/A
GAMMA: hardware w/ 0 overbright bits
CPU:
rendering primitives: single glDrawElements
texturemode: GL_LINEAR_MIPMAP_NEAREST
picmip: 1
texture bits: 0
multitexture: enabled
compiled vertex arrays: enabled
texenv add: enabled
compressed textures: disabled
Initializing Shaders
...loading 'scripts/lightningnew.shader'
...loading 'scripts/explode1.shader'
...loading 'scripts/gfx.shader'
...loading 'scripts/tim.shader'
...loading 'scripts/base.shader'
...loading 'scripts/base_button.shader'
...loading 'scripts/base_floor.shader'
...loading 'scripts/base_light.shader'
...loading 'scripts/base_object.shader'
...loading 'scripts/base_support.shader'
...loading 'scripts/base_trim.shader'
...loading 'scripts/base_wall.shader'
...loading 'scripts/common.shader'
...loading 'scripts/ctf.shader'
...loading 'scripts/eerie.shader'
...loading 'scripts/gothic_block.shader'
...loading 'scripts/gothic_floor.shader'
...loading 'scripts/gothic_light.shader'
...loading 'scripts/gothic_trim.shader'
...loading 'scripts/gothic_wall.shader'
...loading 'scripts/hell.shader'
...loading 'scripts/liquid.shader'
...loading 'scripts/menu.shader'
...loading 'scripts/models.shader'
...loading 'scripts/organics.shader'
...loading 'scripts/sfx.shader'
...loading 'scripts/shrine.shader'
...loading 'scripts/skin.shader'
...loading 'scripts/sky.shader'
...loading 'scripts/test.shader'
----- finished R_Init -----
------ Initializing Sound ------
Reading symbols for shared libraries . done
Allocated 96 sources.
OpenAL info:
   Vendor:     Any
   Version:    OpenAL 1.2
   Renderer:   Software
   Extensions:
Sound intialization successful.
--------------------------------
Loading vm file vm/ui.qvm...
VM file ui compiled to 594408 bytes of code
ui loaded in 1368576 bytes on the hunk
35 arenas parsed
32 bots parsed

Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/ 
operand.
0x8fe136e4 in __dyld_stub_binding_helper_interface ()
(gdb) backtrace
#0  0x8fe136e4 in __dyld_stub_binding_helper_interface ()
#1  0x00000000 in ?? ()
(gdb)





More information about the quake3 mailing list