简体   繁体   English

使用 MSYS 构建 Assimp

[英]Building Assimp with MSYS

Hello i tried to build Assimp.您好,我尝试构建 Assimp。 I'm using gcc (10.2.0) and MSYS2.我正在使用 gcc (10.2.0) 和 MSYS2。

It's possible to download Assimp package from MSYS package repository but i prefer to build Assimp from scratch.可以从 MSYS package 存储库下载 Assimp package,但我更喜欢从头开始构建 Assimp。

while building Assimp a error message appeared:在构建 Assimp 时出现错误消息:

/c/Users/MY_NAME/Downloads/assimp-5.0.1/assimp-5.0.1/include/assimp/StringComparison.h: In function ‘int Assimp::ASSIMP_stricmp(const char*, const char*)’:
/c/Users/MY_NAME/Downloads/assimp-5.0.1/assimp-5.0.1/include/assimp/StringComparison.h:146:14: error: ‘::strcasecmp’ has not been declared; did you mean ‘strncmp’?

I executed cmake with following commands:我使用以下命令执行了 cmake:

cmake  CMakelists.txt  -S ./  -B ./BUILD_ASSIMP 

then i executed "make"然后我执行“make”

Could you help me?你可以帮帮我吗?

the function call, which is creating your issue is an extension of the Posix-standard.造成您的问题的 function 调用是 Posix 标准的扩展。 e have our own implementation for this when the function is not supported by your compiler.当您的编译器不支持 function 时,我们有自己的实现。 Unfortunately, the check if the call exists was not correct for your environment.不幸的是,检查调用是否存在对于您的环境不正确。

I just prepared an update on our current master to work around Asset-Importer-Lib@github this issue.我刚刚准备了我们当前 master 的更新来解决Asset-Importer-Lib@github这个问题。 It would be great if you can use the latest master.如果能用最新的master就好了。 The issue will be closed in the next release.该问题将在下一个版本中关闭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM