Error Building Coral Maya Plugin

58 views
Skip to first unread message

Craig Barnett

unread,
Jan 8, 2015, 4:35:57 PM1/8/15
to cora...@googlegroups.com
Been fighting with this for a couple days now and hoping someone on here may be able to help...

I'm able to build the standalone coral without any issues, but when I try to build the Maya plugin I get an error at the linking stage.

The command it runs and the error it produces is below:

link /MANIFEST:NO /INCREMENTAL:NO /export:initializePlugin /export:uninitializePlugin OpenGL32.lib glu32.lib /dll /out:coralMaya\plugin\coralMayaPlugin.mll /implib:coralMaya\plugin\coralMayaPlugin.lib /LIBPATH:coral /LIBPATH:coralUi /LIBPATH:coralMaya "/LIBPATH:C:\Program Files\Autodesk\Maya2015\lib" "/LIBPATH:C:\Program Files\Autodesk\Maya2015\lib" /LIBPATH:C:\coral-repo\libraries\vs10_x64\boost\
lib /LIBPATH:C:\coral-repo\libraries\vs10_x64\glew\lib coral\_coral.lib coralUi\_coralUi.lib coralMaya\_coralMaya.lib Python27.lib glew32.lib boost_python-vc100-mt-1_46_1.lib Foundation.lib OpenMaya.lib OpenMayaAnim.lib OpenMayaUI.lib coralMaya\plugin\debugCoralMaya\CoralDrawNode.obj coralMaya\plugin\debugCoralMaya\CoralMayaCmd.obj coralMaya\plugin\debugCoralMaya\CoralNetworkNode.obj coralMaya\plu
gin\debugCoralMaya\pluginMain.obj
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

   Creating library coralMaya\plugin\coralMayaPlugin.lib and object coralMaya\plugin\coralMayaPlugin.exp
CoralNetworkNode.obj : error LNK2001: unresolved external symbol "bool coral::pythonWrapperUtils::pyGILEnsured" (?pyGILEnsured@pythonWrapperUtils@coral@@3_NA)
coralMaya\plugin\coralMayaPlugin.mll : fatal error LNK1120: 1 unresolved externals
scons: *** [coralMaya\plugin\coralMayaPlugin.mll] Error 1120
scons: building terminated because of errors.


Also here is the hopefully relevant part of my buildenv:

# maya config
if os.environ.has_key("CORAL_BUILD_FLAVOUR"):
if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
   os.environ["CORAL_MAYA_INCLUDES_PATH"] = "C:/Program Files/Autodesk/Maya2015/include"
   os.environ["CORAL_MAYA_LIBS_PATH"] = "C:/Program Files/Autodesk/Maya2015/lib"
   
   os.environ["CORAL_PYTHON_LIB"] = "Python27"
   os.environ["CORAL_PYTHON_INCLUDES_PATH"] = "C:/Program Files/Autodesk/Maya2015/include/python2.7"
   os.environ["CORAL_PYTHON_LIBS_PATH"] = "C:/Program Files/Autodesk/Maya2015/lib"
   
   os.environ["CORAL_PARALLEL"] = ""

Any help would be greatly appreciated, thanks!

Craig Barnett

unread,
Jan 9, 2015, 12:41:02 PM1/9/15
to cora...@googlegroups.com
I managed to get around that error by adding the pythonwrapperutils file to the includes, but I still haven't been successful in getting this to build for Maya 2015. I know this is a fairly old project now, but has anyone else attempted building for a recent Maya version?

Cheers,
Craig

Joe Spataro

unread,
Jun 10, 2015, 1:23:19 PM6/10/15
to cora...@googlegroups.com
Hey Craig,

I'm hitting the same error you mentioned here.  How do I add the pythonwrapperutils to the includes?

J

Craig Barnett

unread,
Jun 11, 2015, 12:15:04 AM6/11/15
to cora...@googlegroups.com
Hey Joe,

It's been long enough ago I can't really give you a step by step, but from what I remember, I did a search in the source folder for pythonwrapperutils, found a file or two that matched, and added their folders to the includes path list in visual studio. That got me past that set of issues, but I never could get it 100% built and working, we had a limited amount of time for r&d for it.

Hopefully that helps lead you in the right direction and let us all know if you get it working, I'm sure there's a number of us that would like to get it going.

Cheers,
Craig Barnett

Craig Barnett

unread,
Jun 11, 2015, 12:19:58 AM6/11/15
to cora...@googlegroups.com
Sorry for the double post, but now that I think about it more I'm unsure that coral used visual studio for compile abd remember using scons somewhere in the process. Either way their should still be a list of includes paths in one of the config files, some googling/searching should bring it up. Sorry I can't help more, but good luck!

Cheers,
Craig Barnett

Reply all
Reply to author
Forward
0 new messages