arpg / SceneGraph

Auxiliary library for object management of 3D scenes.
Other
15 stars 8 forks source link

Fail to install SceneGraph due to Devil #10

Closed lumark closed 9 years ago

lumark commented 9 years ago

Not sure how to install SceneGraph as I cannot install Devil under clang.. If I do:

brew install devil --use-llvm -verbose=1

I got the following error:

./../src-IL/include/il_internal.h:230:54: error: expected ',' or '...' before 'FileName' ILboolean ilIsValidBmp(ILconst_string CONST_RESTRICT FileName); ^ It seems this is an issues in homebrew:

https://github.com/Homebrew/homebrew/issues/12353

Not sure how to fix it..

crheckman commented 9 years ago

It should be optional to install devil or boost's GIL. Obviously without either one there will be no support of texture loading.

crheckman commented 9 years ago

I just checked this homebrew issue and it doesn't seem to be the exact problem you're running into; also the issue is from 2012, so I suspect it may no longer be relevant. Have you run brew update recently?

MrColdbird commented 9 years ago

It's an issue with your GCC/G++ version you are facing here... Starting at GCC/G++ 5 and higher the header ifdef doesn't work out in your favor any longer.

You can work around the issue for now using a patch from BSD which you can find here: http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/devIL/patches/patch-include_IL_il.h

crheckman commented 9 years ago

Thanks for finding a solution to the problem! I am closing the issue; @lumark please contact me directly for future assistance.