wdas / SeExpr

SeExpr is an embeddable, arithmetic expression language that enables flexible artistic control and customization in creating computer graphics images. Example uses include procedural geometry synthesis, image synthesis, simulation control, crowd animation, and geometry deformation. https://wdas.github.io/SeExpr
https://www.disneyanimation.com/open-source/seexpr/
Other
406 stars 86 forks source link

removed windows compile incompatibilities #65

Closed alfkr closed 7 years ago

alfkr commented 8 years ago

while compiling on windows 10 / VS 2015 I came across some glitches that I fixed, here some details:

src/SeExpr/ExprConfig.h.in - SEEXPR_ENABLE_LLVM_BACKEND only gets generated when compiling with LLVM, replacing it with ENABLE_LLVM_BACKEND makes it work

src/SeExpr/ExprNode.cpp - need to include algorithm for min/max

src/SeExpr/Expression.cpp - VERSION does not exist on windows, removed it

src/SeExpr/Interpreter.cpp - removed dlfcn, not really needed and incompatible with windows

src/SeExpr/Noise.cpp - compiler barfed about the const, so I added it

src/SeExpr/Platform.h - sys/time.h is gone on windows, removed it and added the missing bool to the class

src/SeExpr/Vec.h - had to add the TYPE for it to compile

This is for SeExpr src only, to build the libs. I did not test any of the ui/utils/tests etc.

ix-dcourtois commented 7 years ago

I have a pull request coming with proper fixes for Windows build:

It's in my TODO list to go back to Windows as soon as I'm done adding needed features and fixing what we need on Linux. When I do I'll try finding a way to replace dladdr and submit the pull request.

davvid commented 7 years ago

Sweet, it looks like #78 took care of this topic so I'm closing this PR for now. Let me know if there's anything missing. Thanks!