Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Reading a two channel PNG (greyscale + alpha) via ImageIO::loadSTB() strips the alpha channel
- Weird code in BlockCTX1::evaluatePalette
- Assertion failed: isValidPtr(m_buffer) for nvdecompress
- Decompressing ETC2 and saving out as KTX HOT 2
- nvidia-texture-tools fails to build on aarch64 HOT 1
- make test failing for all tests
- MinGW build under Windows HOT 2
- /usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version (and fix)
- src/nvtt/tools/thumbnailer.cpp fails to build HOT 2
- src/nvtt/icbc.cpp compilation errors HOT 6
- Building error in GCC HOT 2
- RAW-output of a compressed image HOT 3
- Master fails to build, claims a file is missing: HOT 1
- Build errors in etcpack.cxx.o HOT 4
- Relation to NVIDIA Texture Tools exporter HOT 1
- Compile error on master branch. HOT 3
- For distribution please recompile nvtt library (Windows) with more recent Visual Studio HOT 2
- BC7 compression is very slow HOT 1
- seg fault with -bc1 -fast
- binaries faulty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvidia-texture-tools.