导入Assimp:Assimp.xcodeproj项目构建失败

时间:2019-06-06 15:05:03

标签: c++ opengl cmake assimp cmake-gui

我正在使用CMake gui将assimp导入Xcode中的openGL项目中。我正在按照此处的说明进行操作:How to import assimp to my my Xcode project?

但是,我的Assimp.xcodeproj无法生成。

这是Xcode中的错误消息:

Invalid operands to binary expression ('float (*)(const char *, const char *)' and 'nullptr_t')

(D3MFImporter.cpp行230)

这是我在CMake gui中得到的警告:

The C compiler identification is AppleClang 9.0.0.9000037
The CXX compiler identification is AppleClang 9.0.0.9000037
Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -- 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
Looking for ZLIB...
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
Found ZLIB: optimized;/usr/lib/libz.dylib;debug;/usr/lib/libz.dylib
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 pthread.h
Looking for pthread.h - found
Looking for pthread_create
Looking for pthread_create - found
Found Threads: TRUE  
Found Git: /usr/bin/git (found version "2.13.5 (Apple Git-94)") 
Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   assimp

This warning is for project developers.  Use -Wno-dev to suppress it.

Generating done

我不确定为什么会有语法错误,因为我确信很多人使用assimp都没有问题。任何帮助将不胜感激!

0 个答案:

没有答案