Building SpReticle for Maya 2014 successfully in Windows

15 views
Skip to first unread message

Vivek C Reddy

unread,
Apr 28, 2014, 10:43:02 PM4/28/14
to spReti...@googlegroups.com
Follow these to get the plugin to build successfully . 

This is inside Visual studio 2012

Install the below files in appropriate locations:


In openGLrenderer.h add this gl\glext.h 

#if defined (OSMac_MachO_)
#      include <OpenGL/gl.h>
#else
#      include <GL/GL.h>
#include <gl\glext.h>
#endif


And then I need to define NOMINMAX . Add this to pre-processor directives , doing this tell visual studio not to use its  min and max ,but that it should use the ones in std . 

#define SOURCE_MEL_SCRIPT       true   in defines.h  making it to 1
also in defines.h make it       #define USE_MUIDRAWMANAGER       0
  

In OpenGLrender.cpp 
change this 

    FROM THIS      TextureGlyph *glyphs[numChars] ;
       TO      vector< TextureGlyph*> glyphs(numChars);
        //TextureGlyph *glyphs[] = new TextureGlyph[numChars] ;

    FROM THIS   double kerning[numChars];
     TO  std:: vector< double> kerning(numChars);

        //double *kerning = new double[numChars];
        //double kerning= new double[numChars];


You should be able to get the plugin to build properly, let me know if you have any issues . In case if you want to download the plugin for Maya 2014 , use this link to download a 
working .mll file 

Luke Harris

unread,
May 9, 2014, 7:37:03 AM5/9/14
to spReti...@googlegroups.com
Thanks Vivek you're tips were appreciated!

We were experiencing some crazy slowdowns working in VS that were caused by intellisense parsing the very large font.h file. To work around it our developer made a stripped down version of font.h (attached) that intellisense could parse as we were working. Then once it was building successfully, replacing back in the original one.

Also in the PreProcessor definitions add REQUIRE_IOSTREAM 
Add opengl32.lib to library list.
add
#pragma warning( disable : 4309 4305 )
to prevent reporting of millions of warnings that were slowing build and creating 200MB build log

attached compiles for 2013.5 and 2014
font_small.h
spReticle.zip

Sreemanendu Bhatta

unread,
Jul 2, 2014, 10:59:24 AM7/2/14
to spReti...@googlegroups.com
hi vivek could you compile it for maya 2013 x32 bit ?

Matt Tucker

unread,
Jul 11, 2014, 11:53:25 AM7/11/14
to spReti...@googlegroups.com
This was not working for me.  When I try and load the .mll from the Plug-in Manager:

// Error: line 1: Unable to dynamically load : U:/matt/dev/ate_toolset/thirdparty/plugins/maya2014/sonyRectile.mll
The specified module could not be found.

Vivek C Reddy

unread,
Jul 11, 2014, 2:42:25 PM7/11/14
to spReti...@googlegroups.com

Vivek C Reddy

unread,
Jul 11, 2014, 2:43:01 PM7/11/14
to spReti...@googlegroups.com
Sure, I will build it over the weekend and post the link for it. 

Vivek C Reddy

unread,
Jul 11, 2014, 2:45:41 PM7/11/14
to spReti...@googlegroups.com
And Matt the Below build is for Maya 2014,  Windows-64 bit 

Matt Tucker

unread,
Jul 11, 2014, 3:21:05 PM7/11/14
to spReti...@googlegroups.com
Yes, I saw the link in your original post.  I tried that.  Did you see my reply?
When I added to the plugin path and tried to load the plugin it gave me this error:

// Error: line 1: Unable to dynamically load : U:/matt/dev/ate_toolset/thirdparty/plugins/maya2014/sonyRectile.mll
The specified module could not be found.
- show quoted text -

Ravi Jagannadhan

unread,
Jul 11, 2014, 3:50:25 PM7/11/14
to spReti...@googlegroups.com
Are you using the right compiler?


--
You received this message because you are subscribed to the Google Groups "spReticle Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spReticle-de...@googlegroups.com.
To post to this group, send email to spReti...@googlegroups.com.
Visit this group at http://groups.google.com/group/spReticle-dev.
For more options, visit https://groups.google.com/d/optout.



--
Where we have strong emotions, we're liable to fool ourselves - Carl Sagan

Matt Tucker

unread,
Jul 11, 2014, 5:14:46 PM7/11/14
to spReti...@googlegroups.com
Hi Ravi, 
I'm not compiling anything.  Vivek has supplied an .mll that's already been compiled for Maya 2014 on Windows x64, as stated.
Reply all
Reply to author
Forward
0 new messages