Closed Artiom-M closed 8 years ago
I'm not familiar with CodeLite. This looks like a problem upstream with assimp, likely needs a #include <string>
in Assimp.cpp
. You can try modifying it locally and submitting a patch to them if that fixes your problem?
So for CodeLite it is a bug in Cmake generator : https://public.kitware.com/Bug/view.php?id=15054
#include <string>
: it have to be the first include
before all others in Assimp.cpp
in order to fix the issue. Now I have another one, still in Assimp:
||=== Build: all in Glitter (compiler: GNU GCC Compiler) ===| C:\src\Glitter\Glitter\Vendor\assimp\code\StringComparison.h||In function 'int Assimp::ASSIMPstricmp(const char, const char_)':| C:\src\Glitter\Glitter\Vendor\assimp\code\StringComparison.h|143|error: '::strcasecmp' has not been declared| C:\src\Glitter\Glitter\Vendor\assimp\code\StringComparison.h||In function 'int Assimp::ASSIMPstrincmp(const char, const char_, unsigned int)':| C:\src\Glitter\Glitter\Vendor\assimp\code\StringComparison.h|192|error: '::strncasecmp' has not been declared| Glitter\Vendor\assimp\code\CMakeFiles\assimp.dir\build.make|87|recipe for target 'Glitter/Vendor/assimp/code/CMakeFiles/assimp.dir/BaseImporter.cpp.obj' failed| CMakeFiles\Makefile2|308|recipe for target 'Glitter/Vendor/assimp/code/CMakeFiles/assimp.dir/all' failed| C:\src\Glitter\Build\Makefile|126|recipe for target 'all' failed| ||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 5 second(s)) ===|
Good to know about CodeLite.
I don't know anything about the compilation problem though. I'd suggest you open an issue in their project.
Is there anything else I can help you with?
Do you know an Assimp version which was successfully compiled by Mingw32 ?
Unfortunately, no. I don't use MinGW and haven't used it for several years now, so support for it from me will be ... spotty to say the least.
I took another quick look at this. It looks like ::strncasecmp()
is UNIX-only and that section of code needs to be wrapped in say, #ifdef WIN32
or similar. If you haven't already, I'd suggest opening an issue over with the Assimp project.
Is there anything else I can help you with? If not, may I close this ticket?
Thank you for your help. I will open an issue with Assimp, so you
can close the ticket
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/Polytonic/Glitter","title":"Polytonic/Glitter","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/Polytonic/Glitter"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Polytonic in #31: I took another quick look at this. It looks like `::strncasecmp()` is UNIX-only and that section of code needs to be wrapped in say, `#ifdef WIN32` or similar. If you haven't already, I'd suggest opening an issue over with the Assimp project. \r\n\r\nIs there anything else I can help you with? If not, may I close this ticket?"}],"action":{"name":"View Issue","url":"https://github.com/Polytonic/Glitter/issues/31#issuecomment-253111844"}}}
Just installed and generated CMake for CodeLite. First issue it that in CodeLite project file make is called with -j 0 switch.... may be not your project issue. If I fix it it starts to compile then fails in the middle with an error: error: 'wcslen' was not declared in this scope Full message (I tried from the command line, the result is the same as in GUI: