- This topic has 4 replies, 2 voices, and was last updated 7 years, 10 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] CImg error by adding flexible plugin
Tagged: msvc12, sofa 16.12, win 10 64 bits
Hi,
I added the flexible plugin in CMAKE and recompiled, but I received an error relating to CImg:
…\src\applications\plugins\Flexible\..\image/ImageTypes.h(34): fatal error C1083: Cannot open include file: ‘CImg/SOFACImg.h’: No such file or directory …\src\applications\plugins\Flexible\Flexible_test\FramesBeamMaterial_test.cpp)
I found out that the CImg directory is not at the desired path.
Can any one help me to fix this problem?
best,
Zahra
Hi Zahra,
You are using v16.08, right ?
There has been changes with CImg since then.
Did you activate the image plugin as well?
Cheers,
Hugo
Hi Hugo,
Thank you for the quick reply and sorry for the delay in my response; I always try to go further based on your hints and then reply with more feedback.
Yes I used v16.08 and I did not activate image plugin.
Since your reply, I tried to build v16.12, and I activate flexible and image plugins. I received the following error:
v16.12\src\applications\plugins\flexible\quadrature\GaussPointSmoother.h(60): error C2899: typename cannot be used outside a template declaration
I fixed the problem by deleting the “typename” from the GaussPointSmoother.h, using the hint in the link below:
And sofa built successfully.
Nice to hear !
Thanks for sharing your solution.
Shall we close the topic then ?
Hugo
Yes, Thank you.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.