我想在Android Studio的assimp
项目中实现NDK
库,一切正常,但是一旦我尝试使用材质,就会出现以下错误:
assimp/types.h:208:19: error: taking address of packed member 'r' of class or structure 'aiColor3D' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
return *(&r + i);
这是CMakeLists
个标志
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wall -Werror")