compiling cortex master with maya 2015 support

68 views
Skip to first unread message

lorenzo angeli

unread,
Aug 4, 2015, 1:09:57 PM8/4/15
to cortexdev
Hi All,
I'm in the process of trying to compile cortex with maya 2015 support under centos 6.6 with gcc 4.4.7
I'm hitting this problem, and I'm not sure whether I'm doing something wrong, of some flags are missing:

cc1plus: warnings being treated as errors
src/IECoreMaya/SceneShapeUI.cpp: In member function 'virtual bool IECoreMaya::SceneShapeUI::snap(MSelectInfo&) const':
src/IECoreMaya/SceneShapeUI.cpp:500: error: 'closestVertex.Imath_2_1::Vec3<double>::x' may be used uninitialized in this function
src/IECoreMaya/SceneShapeUI.cpp:500: error: 'closestVertex.Imath_2_1::Vec3<double>::y' may be used uninitialized in this function
src/IECoreMaya/SceneShapeUI.cpp:500: error: 'closestVertex.Imath_2_1::Vec3<double>::z' may be used uninitialized in this function
scons: *** [src/IECoreMaya/SceneShapeUI.os] Error 1


Any hint is appreciated !
Thanks.
L.

Andrew Kaufman

unread,
Aug 4, 2015, 1:20:20 PM8/4/15
to cort...@googlegroups.com
If you replace that line with
Imath::V3d closestVertex( 0 ); 
then I'd expect it to work.

I'm not sure why gcc 4.4.7 is complaining about that (gcc 4.8 doesn't seem to mind, at least not here), but I'm also not sure why you're using gcc 4.4.7 for Maya 2015... We've admittedly skipped 2015 entirely, but as far as I knew, while Maya 2016 has some odd cross breed of compiler versions (Autodesk recommends using gcc 4.8), I was under the impression they still recommended gcc 4.1.2 for all other Maya versions. Is that not the case?

Andrew
--
--
You received this message because you are subscribed to the "cortexdev" group.
To post to this group, send email to cort...@googlegroups.com
To unsubscribe from this group, send email to cortexdev-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cortexdev?hl=en
---
You received this message because you are subscribed to the Google Groups "cortexdev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cortexdev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rob Pieke

unread,
Aug 5, 2015, 4:02:41 AM8/5/15
to cort...@googlegroups.com
This one caught my eye and I'm now curious too.

I think this code is more-or-less the same:

int main(int argv, char**)

{

int closest;

for(int i = 10; i < argv; ++i) closest = i;

closest *= 12345;

return closest;

}


On OSX, I can trigger the warning via gcc(-5.1.0), but not clang(-600.0.56), if I explicitly use "-Wuninitialized" (which should be a subset of Cortex's "-Wall -Werror" build flags).






From: Andrew Kaufman [and...@image-engine.com]
Sent: 04 August 2015 18:20
To: cort...@googlegroups.com
Subject: Re: [cortex] compiling cortex master with maya 2015 support

lorenzo angeli

unread,
Aug 11, 2015, 12:27:30 PM8/11/15
to cortexdev
Thanks , I'll try to move to centos 7 asap so I can test with the newer gcc.
I managed to get it compile by the end.

here the full compilation stack if you are curious:
https://bitbucket.org/efestolab/docker-buildgaffer/src/aedc69cdcfe5b8eff6213d79175c5a646e8470c8/Dockerfile?at=master
Reply all
Reply to author
Forward
0 new messages