Page MenuHome

Beta patch to restore cmake MinGW compilation
Closed, ArchivedPublicPATCH

Description

Hey there! After a few hours of copying, pasting and reading through cmake docs I have finally managed to get blender compiled through cmake-MinGW.

There are still problems with rendering and display but the program seems to more or less (well, more less than more!)function in any case. I welcome feedback on how to correct these issues.

Thanks!

Event Timeline

- Could you configure your editor not to clear whitespace, makes evaluating patches more time consuming,
- This patch should use if/else/endif, rather then settings variables twice for mingw,

eg: the lines above this set OPENEXR settings too.

+ IF(NOT CYGWIN AND NOT MSVC)
+ SET(OPENEXR ${LIBDIR}/gcc/openexr)
+ SET(OPENEXR_INC ${OPENEXR}/include ${OPENEXR}/include/OpenEXR)
+ SET(OPENEXR_LIB Half IlmImf Iex)
+ SET(OPENEXR_LIBPATH ${OPENEXR}/lib)
+ ENDIF(NOT CYGWIN AND NOT MSVC)

- While I see you have -funsigned-char, the errors rendering buttons I have seen happen because this flag was omitted.

applied with modifications, thanks for the patch.
(fixed black UI)

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Unknown Status.May 28 2010, 11:31 PM