Giter Site home page Giter Site logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Thanks for diagnosing the problem and providing the patches. Your solution for 
1 and
2 looks fine. I'm not sure that 3 is the right thing to do. There must be a way 
of
retrieving the caller address on Leopard. I'll see if I can get a leopard 
system and
figure that out.

Original comment by [email protected] on 19 May 2008 at 8:15

  • Changed state: Accepted

from nvidia-texture-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Hmm... I tried to compile on Leopard with your suggestions, and got the 
following error:

 execinfo.h: No such file or directory

I made sure that the file exists, and that its path (/usr/include) is in the 
include
directories. I also tried setting MACOSX_DEPLOYMENT_TARGET=10.5, but that 
didn't make
any difference.

Any ideas? This file was introduced in 10.5, is there anything special that 
needs to
be done for the compiler to find it?

Original comment by [email protected] on 23 May 2008 at 7:59

from nvidia-texture-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I also tried the -mmacosx-version-min=10.5 cflag, but the problem persists.

Original comment by [email protected] on 23 May 2008 at 8:02

  • Changed title: Compilation with mac os X 10.5 (leopard)

from nvidia-texture-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I think the problem is that the CheckIncludeFiles macro does not search in the 
appropriate SDK path, but only in /usr/include, that links to SDK10.5

So, HAVE_EXECINFO_H is not set correctly when compiling for the 10.4 SDK. I've
disabled that explicitely on DARWIN (#undef HAVE_EXEC_INFO_H) and that seems to 
work
fine. The other option is to add the following CFLAGS:

-mmacosx-version-min=10.5
-isysroot /Developer/SDKs/MacOSX10.5.sdk

I was not able to reproduce the third issue that you describe, but maybe that 
only
happens on Intel.

Original comment by [email protected] on 23 May 2008 at 10:22

from nvidia-texture-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I've checked in some changes, let me know how that works for you. Thanks!

Original comment by [email protected] on 23 May 2008 at 10:23

from nvidia-texture-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I just checkout the last version : 
. The issue 1 & 2 are fixed
. The third issue (ucontext) isn't specific to intel platform, but apparently 
because it assumes the last version of Darwin 
doesn't support ucontext.  

Suggestion of fix : 

    static void * callerAddress(void * secret)
    {
#   if NV_OS_DARWIN && NV_CPU_PPC && defined(_STRUCT_MCONTEXT)
#       if defined(_STRUCT_MCONTEXT)
            ucontext_t * ucp = (ucontext_t *)secret;
            return (void *) ucp->uc_mcontext->__ss.__srr0;
#       elif !defined(_STRUCT_MCONTEXT)
            ucontext_t * ucp = (ucontext_t *)secret;
            return (void *) ucp->uc_mcontext->ss.srr0;
#       endif
#   elif NV_OS_DARWIN && NV_CPU_X86 && defined(_STRUCT_MCONTEXT)
#       if defined(_STRUCT_MCONTEXT)
            ucontext_t * ucp = (ucontext_t *)secret;
            return (void *) ucp->uc_mcontext->__ss.__eip;

#       elif !defined(_STRUCT_MCONTEXT)
            ucontext_t * ucp = (ucontext_t *)secret;
            return (void *) ucp->uc_mcontext->ss.eip;
#       endif

Tested under MacOS 10.5.2 (with a G4 PPC and Intel Core Duo)

Sorry to be late to answer you. Did you solve your problem of path ? 


Original comment by [email protected] on 24 May 2008 at 3:35

from nvidia-texture-tools.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I've finally tested and checked in the fix that you proposed. Thanks!

Original comment by [email protected] on 27 Jun 2008 at 6:53

  • Changed state: Fixed

from nvidia-texture-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.