You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using freebsd machine 10.3-RELEASE, i386, clang version 3.4.1, and cmake version 3.3.1.
I got these message after cmake . .
-- The C compiler identification is Clang 3.4.1
-- The CXX compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
-- package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib/libz.so;debug;/usr/lib/libz.so
-- checking for module 'minizip'
-- package 'minizip' not found
-- Enabled formats: 3DS AC ASE ASSBIN ASSXML B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X GLTF 3MF
-- Disabled formats:
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Git: /usr/local/bin/git (found version "2.6.3")
-- Configuring done
-- Generating done
-- Build files have been written to: ......./assimp-master
It looks like done well. But when start make, it fails with reinterpret_cast error.
anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
/assimp-master/code/BlenderTessellator.cpp:382:32: error:
reinterpret_cast from 'nullptr_t' to 'Assimp::Blender::PointP2T ' is not allowed
unsigned int pointOffset = OffsetOf( PointP2T, point2D );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/assimp-master/code/BlenderTessellator.cpp:377:35: note: expanded from
macro 'OffsetOf'
reinterpret_cast<uint8_t>(&( reinterpret_cast< Class* >( NULL )->( &Class::Member ) )) -
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 warnings and 1 error generated.
** Error code 1
Stop.
make[2]: stopped in /assimp-master
*** Error code 1
Stop.
make[1]: stopped in /assimp-master
*** Error code 1
Stop.
make: stopped in /assimp-master
Is it a version problem or a compiler problem? What should I do in this situation?
The text was updated successfully, but these errors were encountered:
Looks like this might be caused by a nonstandard OffsetOf macro. It casts a nullptr to a real type and references it. This is not allowed. Just replace it with standard compiler-provided offsetof and see if that works.
I'm using freebsd machine 10.3-RELEASE, i386, clang version 3.4.1, and cmake version 3.3.1.
I got these message after cmake . .
-- The C compiler identification is Clang 3.4.1
-- The CXX compiler identification is Clang 3.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- Looking for ZLIB...
-- checking for module 'zzip-zlib-config'
-- package 'zzip-zlib-config' not found
-- Found ZLIB: optimized;/usr/lib/libz.so;debug;/usr/lib/libz.so
-- checking for module 'minizip'
-- package 'minizip' not found
-- Enabled formats: 3DS AC ASE ASSBIN ASSXML B3D BVH COLLADA DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OBJ OGRE OPENGEX PLY MS3D COB BLEND IFC XGL FBX Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X GLTF 3MF
-- Disabled formats:
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Git: /usr/local/bin/git (found version "2.6.3")
-- Configuring done
-- Generating done
-- Build files have been written to: ......./assimp-master
It looks like done well. But when start make, it fails with reinterpret_cast error.
/assimp-master/code/BlenderTessellator.cpp:382:32: error:
reinterpret_cast from 'nullptr_t' to 'Assimp::Blender::PointP2T ' is not allowed
unsigned int pointOffset = OffsetOf( PointP2T, point2D );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/assimp-master/code/BlenderTessellator.cpp:377:35: note: expanded from
macro 'OffsetOf'
reinterpret_cast<uint8_t>(&( reinterpret_cast< Class* >( NULL )->( &Class::Member ) )) -
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 warnings and 1 error generated.
** Error code 1
Stop.
make[2]: stopped in /assimp-master
*** Error code 1
Stop.
make[1]: stopped in /assimp-master
*** Error code 1
Stop.
make: stopped in /assimp-master
Is it a version problem or a compiler problem? What should I do in this situation?
The text was updated successfully, but these errors were encountered: