If you try to compile bgfx+bx+bimg right now you will most likely get this:
zoh.cpp
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/zoh.cpp:15:
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/tile.h:15:
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/zoh_utils.h:17:
In file included from ../../../../bimg/3rdparty/nvtt\nvmath/vector.h:6:
In file included from ../../../../bimg/3rdparty/nvtt\nvmath/nvmath.h:9:
In file included from ../../../../bimg/3rdparty/nvtt\nvcore/utils.h:6:
In file included from ../../../../bimg/3rdparty/nvtt\nvcore/debug.h:6:
In file included from ../../../../bimg/3rdparty/nvtt\nvcore/nvcore.h:24:
../../../../bimg/3rdparty/nvtt\nvcore/posh.h:540:4: error: POSH cannot determine target CPU
# error POSH cannot determine target CPU
^
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/zoh.cpp:15:
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/tile.h:15:
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/zoh_utils.h:17:
In file included from ../../../../bimg/3rdparty/nvtt\nvmath/vector.h:6:
In file included from ../../../../bimg/3rdparty/nvtt\nvmath/nvmath.h:9:
In file included from ../../../../bimg/3rdparty/nvtt\nvcore/utils.h:6:
In file included from ../../../../bimg/3rdparty/nvtt\nvcore/debug.h:6:
../../../../bimg/3rdparty/nvtt\nvcore/nvcore.h:143:5: error: "Unsupported CPU"
# error "Unsupported CPU"
^
../../../../bimg/3rdparty/nvtt\nvcore/nvcore.h:359:9: error: "GCC: Platform not supported"
# error "GCC: Platform not supported"
^
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/zoh.cpp:15:
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/tile.h:15:
In file included from ../../../../bimg/3rdparty/nvtt/bc6h/zoh_utils.h:17:
In file included from ../../../../bimg/3rdparty/nvtt\nvmath/vector.h:6:
In file included from ../../../../bimg/3rdparty/nvtt\nvmath/nvmath.h:9:
In file included from ../../../../bimg/3rdparty/nvtt\nvcore/utils.h:6:
../../../../bimg/3rdparty/nvtt\nvcore/debug.h:163:17: error: variable has incomplete type 'void'
NVCORE_API void NV_CDECL nvDebugPrint( const char *msg, ... ) __attribute__((format (printf, 1, 2)));
So I fixed it but not 100% sure if this is the best fix to do, but looks like it does the trick.
If you try to compile bgfx+bx+bimg right now you will most likely get this:
So I fixed it but not 100% sure if this is the best fix to do, but looks like it does the trick.