dcharata / StyLit

An implementation of StyLit for CSCI 2240.
33 stars 7 forks source link

qt creator build error windows 10 #34

Open dloopd opened 3 years ago

dloopd commented 3 years ago

Sorry, I am a new user of Qt. Attempting to build from Stylit.pro will give me ~5000 flags, ex:

C:\Qt\6.0.1\mingw81_64\include\QtCore\qhashfunctions.h:166: warning: optimization attribute on 'size_t qHash(QStringView, size_t)' follows definition but the attribute doesn't match [-Wattributes] C:/Qt/6.0.1/mingw81_64/include/QtCore/qhashfunctions.h:166:83: warning: optimization attribute on 'size_t qHash(QStringView, size_t)' follows definition but the attribute doesn't match [-Wattributes] Q_CORE_EXPORT Q_DECL_PURE_FUNCTION size_t qHash(QStringView key, size_t seed = 0) noexcept; ^~~~ C:/Qt/6.0.1/mingw81_64/include/QtCore/qhashfunctions.h:131:37: note: previous definition of 'size_t qHash(float, size_t)' was here Q_DECL_CONST_FUNCTION inline size_t qHash(float key, size_t seed = 0) noexcept ^~~~~

No .exe is produced, the file structure is incomplete and somewhat different from trying to build with qmake, such as certain files appearing /debug rather than /release. I think the problem is reported here https://www.agner.org/optimize/vectorclass/read.php?i=160 and here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325 From what I can tell, it's an issue with the Mingw64 versions 7+. So far, no luck finding an older version to test this. Would appreciate some guidance on where to go from here.

vikasTmz commented 3 years ago

Hi,

I'm not sure if we have tested this on Windows (I believe we have only done it on Linux and Mac), but given everything was written in Qt, it should technically compile just fine.

The log you have shown seems to be just warnings, I don't see any errors.

dloopd commented 3 years ago

Thanks for your quick reply, I think these are the errors that get produced. errors

vikasTmz commented 3 years ago

which version of g++ are you using? See this issue: https://stackoverflow.com/questions/16518705/problems-with-stdchrono