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
407 stars 86 forks source link

info on dependencies? #14

Closed fdan closed 8 years ago

fdan commented 10 years ago

Any chance some info on the dependencies could be provided (or pointed out if I'm overlooking it)? Trying to compile in Windows 7 with quite a few problems with zlib, libpng, qt. For instance I have qt installed, and cmake finds most of it, but outputs quite a few errors. The resulting VS file is only 1kb and can't be opened.

aselle commented 10 years ago

We'd be happy to try to help, but you'd need to post more details. We have a google group for discussion about the language that is a good place to seek this kind of help. -A

jberlin commented 10 years ago

Here are some of my notes from building on Windows:

set INCLUDE=%INCLUDE%;C:\Program Files (x86)\GnuWin32\include set LIB=%LIB%;C:\Program Files (x86)\GnuWin32\lib set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin;C:\Qt\4.8.5\bin

Some dependencies:

C:/Program Files (x86)/CMake 2.8 C:/Qt/4.8.5 C:\Program Files \Microsoft SDKs\Windows\v7.0A\Lib\OpenGL32.Lib C:/Program Files/doxygen zlib-1.2.3 libpng-1.2.37 make-3.81

HTH

Janet

On Wed, Mar 26, 2014 at 7:10 PM, Andrew Selle notifications@github.comwrote:

We'd be happy to try to help, but you'd need to post more details. We have a google group for discussion about the language that is a good place to seek this kind of help. -A

Reply to this email directly or view it on GitHubhttps://github.com/wdas/SeExpr/issues/14#issuecomment-38762330 .

jberlin commented 10 years ago

One more note, fwiw, the cmake command:

cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH=Z:\tmp\seexpr .. nmake

On Wed, Mar 26, 2014 at 7:10 PM, Andrew Selle notifications@github.comwrote:

We'd be happy to try to help, but you'd need to post more details. We have a google group for discussion about the language that is a good place to seek this kind of help. -A

Reply to this email directly or view it on GitHubhttps://github.com/wdas/SeExpr/issues/14#issuecomment-38762330 .

fdan commented 10 years ago

Hi Andrew, do you have a link for that google group? I couldn't see it anywhere.

Janet, that is very helpful thank you. I had been trying to track down deps one by one, but GnuWin32 makes it much easier. Cmake now completes ok, but I have alot of nmake errors which make me suspect I have something wrong with my environment, a couple are shown below. Happy to puruse this on the google group though if that is a more appropriate place.

nmake output:

cl /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /MD /O2 /Ob2 /D NDEBUG -IC:\ff\SeExpr\src\SeExpr -IC:\ff\SeExpr\src\SeExprEditor -DSeExpr_EXPORTS -DSEEXPR_WIN32 /TP /FoCMakeFiles\SeExpr.dir\SeCurve.obj /FdC:\ff\SeExpr\src\SeExpr\SeExpr.pdb -c C:\ff\SeExpr\src\SeExpr\SeCurve.cpp

SeCurve.cpp C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/INCLUDE\yvals.h(194) : warning C4068: unknown pragma C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/INCLUDE\yvals.h(199) : warning C4068: unknown pragma C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/INCLUDE\xtr1common(355) : error C2143: syntax error : missing ',' before '&&' C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/INCLUDE\xtr1common(356) : error C2143: syntax error : missing ';' before '{' C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/INCLUDE\xtr1common(358) : error C2143: syntax error : missing ';' before '}' ... NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2.0\VC\bin\amd64\cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop.

acrlakshman commented 10 years ago

Google group link: https://groups.google.com/forum/#!forum/seexpr-discuss

jberlin commented 10 years ago

I just tried a build and didn't see these same errors. Two things I'm doing that may or may not help you:

1) I'm running my build commands from the Visual Studio Command Prompt, rather than from the VS UI.

2) I took a shortcut and copied over these generated files from a Linux build to my Windows build, ie:

src/SeExpr/generated/SeExprParser.cpp src/SeExpr/generated/SeExprParserLex.cpp src/SeExpr/generated/SeExprParser.tab.h

src/SeExprEditor/generated/SeExprSpecParser.cpp src/SeExprEditor/generated/SeExprSpecParserLex.cpp src/SeExprEditor/generated/SeExprSpecParser.tab.h

Let me see how I can best share these generated files so you can try your build with them.

jberlin commented 10 years ago

Okay, I put these files in a /windows7 directory in the code base. It's currently awaiting a pull request into the mainline.

If you still need help with building for Windows, please see this discussion in the forum and feel free to add any comments or questions:

https://groups.google.com/forum/#!topic/seexpr-discuss/TAsGkXIjiH4

Janet