fynv / nvidia-texture-tools

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

Patches for building on OSX #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
r1394 fails to build on MacOS. The fixes in the attached patch are mostly minor 
and self-evident, apart from the following:
- patch to src/nvtt/CompressorDXT1.cpp includes regularising line endings in 
color_to_vector3() and vector3_to_color().
- patch to src/nvimage/CMakeLists.txt is an ugly hack reflecting changes made 
in r1394, r1380 etc. A proper fix would probably be to refactor.

Tested basic functionality with clang on OSX 10.9 and gcc-4.2 on OSX 10.6.
Not tested on UNIX, but I'd imagine UNIX would need these changes too.
Not tested on Windows.

Original issue reported on code.google.com by MARGINA...@gmail.com on 25 Nov 2014 at 3:42

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. I've integrated some of these changes. OSX should be building fine now.

Original comment by cast...@gmail.com on 2 Dec 2014 at 8:25