mayingzhen / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Mac compile problem (easy fix) #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Compile on OSX 10.6
1.1. configure
1.2. make -> fails here

What is the expected output? What do you see instead?
make gives this error: "In file included from 
./nvidia-texture-tools/src/nvcore/Debug.cpp:41:
/usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, 
and require 
_XOPEN_SOURCE to be defined"

What version of the product are you using? On what operating system?
2.0.6 on OSX 10.6.1

Please provide any additional information below.
Apple deprecated the functions to manipulate ucontexts, but not the structure 
for them. 
Including just the file with the struct fixes the problem. This solution was 
discovered by Joe of 
Duraian Software ( 
http://duriansoftware.com/joe/PSA:-avoiding-the-%22ucontext-routines-
are-deprecated%22-error-on-Mac-OS-X-Snow-Leopard.html )

Original issue reported on code.google.com by gabebear@gmail.com on 12 Oct 2009 at 5:49

GoogleCodeExporter commented 8 years ago
Probably should have actually put the fix in...

On line 41 of src/nvcore/Debug.cpp, change
#   include <ucontext.h>
to
#   include <sys/ucontext.h>

Original comment by gabebear@gmail.com on 12 Oct 2009 at 5:51

GoogleCodeExporter commented 8 years ago
Thanks for the bug report, this was just fixed a couple of days ago. Can you 
confirm
that the latest version from branch/2.0 compiles fine on OSX 10.6? I do not 
have that
OS available yet. Thanks!

Original comment by cast...@gmail.com on 14 Oct 2009 at 2:09

GoogleCodeExporter commented 8 years ago
Yep, it works

Original comment by gabebear@gmail.com on 14 Oct 2009 at 2:19

GoogleCodeExporter commented 8 years ago
Excellent, thanks!

Original comment by cast...@gmail.com on 14 Oct 2009 at 5:02