xcode 3.1 compile error

Bug #290018 reported by Hypnos
2
Affects Status Importance Assigned to Milestone
Panda3D
Invalid
High
Unassigned

Bug Description

when compiling the current cvs version with the supplied thirdparty tools compilation works, however there are missing lib-links:

i did test it using this method (it may be correct, or not)

to test after compilation and installing do the following:

run this script in /Applications/Panda3d/1.6.0/lib
# change the linkings of the dylib files
import os, sys, commands
for filename in os.listdir('.'):
  file, ext = os.path.splitext( filename )
  if ext == '.dylib':
    #print file, ext
    output = commands.getstatusoutput("otool -L %s" % file+ext)[1]
    for liblink in output.split('\n'):
      #print liblink.split()[0]
      if 'built/lib/' in liblink.split()[0]:
        orig = liblink.split()[0]
        new = liblink.split()[0].split('/')[-1]
        print orig, new
        commands.getstatusoutput("install_name_tool -change %s %s %s" % (orig, new, file+ext))
# end of script

in console:
bash-3.2# cp libpandagl.dylib libpandagl.so
bash-3.2# python
imPython 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import libpandagl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(./libpandagl.so, 2): Symbol not found: _gl_dispatch_stub_356
  Referenced from: /usr/X11/lib/libOSMesa.7.dylib
  Expected in: /usr/X11/lib/libGL.1.dylib

(this does not yield a error using a version compiled with xcode 3.0)

the symbol gl_dispatch_stub_356 is part of the mesa lib, it seems it is nowhere defined
NAME_FUNC_OFFSET(14508, glGetConvolutionFilter, gl_dispatch_stub_356, gl_dispatch_stub_356, _gloffset_GetConvolutionFilter),

in panda3d the glGetConvolutionFilter is defined in:
panda3d/panda/src/glstuff/panda_glext.h:GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum, GLvoid *);
panda3d/panda/src/glstuff/panda_glext.h:GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum, GLenum, GLenum, GLvoid *);

commenting this out didnt help, thats how far i got yet...

Tags: makepanda osx
Revision history for this message
rdb (rdb) wrote :

Interesting. When I have time, I'll grab myself an XCode version 3.1 and see if I can get it to work.

Changed in panda3d:
importance: Undecided → High
milestone: none → 1.6.0
rdb (rdb)
Changed in panda3d:
milestone: 1.6.0 → none
Revision history for this message
rdb (rdb) wrote :

Does this issue still exist?

Revision history for this message
Hypnos (rspoerri) wrote :

i'd close it, i cant test it anymore.

rdb (rdb)
Changed in panda3d:
status: New → Incomplete
rdb (rdb)
Changed in panda3d:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.