Compiling for os x 10.6.8

Here is my dump. I am stumped, so any help is appreciated.

Zeno-Gerakins-iMac:panda3d-1.7.2 zenogerakin$ python makepanda/makepanda.py --everything --installer --osxtarget 10.6
Generating library cache...
WARNING: Could not locate thirdparty package artoolkit, excluding from build
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package fmodex, excluding from build
WARNING: Could not locate framework OpenGLES, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
WARNING: Could not locate thirdparty package osmesa, excluding from build
WARNING: Could not locate pkg-config package gtk+-2.0, excluding from build
WARNING: Could not locate framework Cg, excluding from build
WARNING: Could not locate thirdparty package ode, excluding from build
WARNING: Could not locate thirdparty package opencv, excluding from build
WARNING: Could not locate thirdparty package squish, excluding from build
WARNING: Could not locate thirdparty package tiff, excluding from build
WARNING: Could not locate thirdparty package vrpn, excluding from build
Generating dependencies...
[ 92%] Generating 'pandac' tree 
Importing code library: libpandaexpress
  Found extensions for class: Ramfile
  Found extensions for class: StreamReader
  Found extensions for class: HTTPChannel
Importing code library: libpanda
Traceback (most recent call last):
  File "direct/src/ffi/jGenPyCode.py", line 94, in <module>
    DoGenPyCode.run()
  File "/Users/zenogerakin/Projects/tile_rts/panda3d-1.7.2/built/direct/ffi/DoGenPyCode.py", line 305, in run
    generateNativeWrappers()
  File "/Users/zenogerakin/Projects/tile_rts/panda3d-1.7.2/built/direct/ffi/DoGenPyCode.py", line 258, in generateNativeWrappers
    Dtool_PreloadDLL(moduleName)
  File "/Users/zenogerakin/Projects/tile_rts/panda3d-1.7.2/built/direct/extensions_native/extension_native_helpers.py", line 79, in Dtool_PreloadDLL
    imp.load_dynamic(module, pathname)
ImportError: dlopen(/Users/zenogerakin/Projects/tile_rts/panda3d-1.7.2/built/lib/libpanda.dylib, 2): Symbol not found: _av_close_input_file
  Referenced from: /Users/zenogerakin/Projects/tile_rts/panda3d-1.7.2/built/lib/libpanda.dylib
  Expected in: flat namespace
 in /Users/zenogerakin/Projects/tile_rts/panda3d-1.7.2/built/lib/libpanda.dylib
Storing dependency cache.
Elapsed Time: 1 sec

Build terminated.

Thanks in advance!

It looks like a problem with your ffmpeg installation. Do you have multiple/conflicting versions installed?

I sure do - 32 and 64 bit versions. I don’t know how to specify to use the 32bit only, so I’ll try compiling with --no-ffmpeg for now and see what happens.
Thanks!

Victory! I’ll be back once I try to figure out this ffmpeg business… but until I need it I’m calling this a success.

Thanks rdb!

Unfortunately the need to swap libraries came up quickly… =(

After installing my custom built copy I have no PNG support:


Zeno-Gerakins-iMac:project zenogerakin$ ppython main.py
DirectStart: Starting the game.
Known pipe types:
  osxGraphicsPipe
(all display modules loaded.)
Sun Oct  9 10:28:21 Zeno-Gerakins-iMac.local ppython[57193] <Error>: kCGErrorIllegalArgument: CGSCopyRegion : Null pointer
Sun Oct  9 10:28:21 Zeno-Gerakins-iMac.local ppython[57193] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
:audio(error):   load_dso(libp3fmod_audio.so) failed, will use NullAudioManager
:audio(error):     No error.
:pnmimage:png(warning): Application was compiled with png.h from libpng-1.5.4
:pnmimage:png(warning): Application  is  running with png.c from libpng-1.2.44
:pnmimage:png(error): Incompatible libpng version in application and library
:pnmimage:png(error): Returning before opening file.
libpng error: Incompatible libpng version in application and library
:gobj(error): Texture::read() - couldn't read: /Users/zenogerakin/Projects/tile_rts/project/assets/img/1.png
:gobj(error): Texture "/Users/zenogerakin/Projects/tile_rts/project/assets/img/1.png" exists but cannot be read.
Traceback (most recent call last):
  File "main.py", line 11, in <module>
    tiles[tex] = tile.tile(tex)
  File "/Users/zenogerakin/Projects/tile_rts/project/engine/tile.py", line 11, in __init__
    tex = loader.loadTexture(texture) 
  File "dstroot/pythoncode/Developer/Panda3D/lib/direct/showbase/Loader.py", line 533, in loadTexture
IOError: Could not load texture: assets/img/1.png
Sun Oct  9 10:28:21 Zeno-Gerakins-iMac.local ppython[57193] <Error>: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 4425
Sun Oct  9 10:28:21 Zeno-Gerakins-iMac.local ppython[57193] <Error>: kCGErrorIllegalArgument: CGSRemoveSurface: Invalid window 0x1149

I imagine the audio error will be solved if I change the prc settings to push openAL. For the PNG support I assume I need to recompile using the libraries included with the panda src, rather than whatever version it is I have installed on my computer. Is this an edit to makepanda.py?

Thanks in advance!

You have two conflicting versions of libpng installed. OSX already ships with its own version of libpng, why would you want to install your own?

When I started trying to compile makepanda was throwing libpng module not found warnings, and I knew I needed png support so I installed a universal binary.

Now I have to figure out how to remove it and point to the correct one.
Thanks for the help rdb.