Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
154 views
in Technique[技术] by (71.8m points)

c++ - Building Assimp with MSYS

Hello i tried to build Assimp. I'm using gcc (10.2.0) and MSYS2.

It's possible to download Assimp package from MSYS package repository but i prefer to build Assimp from scratch.

while building Assimp a error message appeared:

/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  CMakelists.txt  -S ./  -B ./BUILD_ASSIMP 

then i executed "make"

Could you help me?

question from:https://stackoverflow.com/questions/65643503/building-assimp-with-msys

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

the function call, which is creating your issue is an extension of the Posix-standard. e have our own implementation for this when the function is not supported by your compiler. Unfortunately, the check if the call exists was not correct for your environment.

I just prepared an update on our current master to work aroundAsset-Importer-Lib@github this issue. It would be great if you can use the latest master. The issue will be closed in the next release.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...