- This topic has 2 replies, 2 voices, and was last updated 8 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Errors occurred in building with VS2012 on Win 7 64bit
I use V15.12 version 8a6bc950f3eafca13625525ec1b93d188a93bda9, but errors occurred when sofa was being built.
1.syntax error
d:\qt\qt5.2.1\5.2.1\msvc2012_64\include\qtcore\qdatetime.h line 122
static inline qint64 nullJd() { return std::numeric_limits<qint64>::min(); }
2.redefinition
D:\Qt\Qt5.2.1\5.2.1\msvc2012_64\include\QtGui\qopengl.h line 97
typedef GLfloat GLdouble;
I guess QT_OPENGL_ES_2 that is defined leads to the error.
The files above are official source files of QT(should not be wrong), so I think the errors are still attributed to sofa source code.
3.syntax error
D:\sofa\applications\projects\runSofa\Main.cpp line 258
sofa::helper::Logger::getMainLogger().log( sofa::helper::Logger::Warning, std::string( “Invalid argument ‘”) + colorsStatus + std::string(“‘ for ‘–colors‘” ) );
After I changed it into
sofa::helper::Logger::getMainLogger().log( sofa::helper::Logger::Warning, std::string( “Invalid argument ‘”) + colorsStatus + std::string(“‘ for ‘–colors'” ) );
(modified the single quotes )
it was built successfully.
Hi Wong,
This topic may help: https://www.sofa-framework.org/community/forum/topic/building-errors-of-v15-12-on-vs2012-win7-64bits
For the qdatetime.h problem, I fixed it by replacing return std::numeric_limits<qint64>::min();
with return (std::numeric_limits<qint64>::min)();
Hope this helps,
Guillaume.
Thank you. I have built sofa successfully.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.