- Use VS2012 to open alembic.sln
- Choose the Solution Configuration and Platform you prefer (I choose Release, x64)
- In Solution Explorer, right-click at the solution -> properties. At the Configuration Properties -> Configuration, uncheck the project "CookingWithAlembic" (It's only a test project)
- Build the Solution.
2. AbcImport and AbcExport
- Download the project files prepared by Jonny
http://goo.gl/VVuqJU (alembic_maya_2014_projects.zip)
- Copy the solution file (.sln) and project file (.vcxproj) to maya\AbcImport and maya\AbcExport respectively
- Copy AbcImportStrings.cpp and AbcImportStrings.h from your Maya sample codes (C:\Program Files\Autodesk\Maya2014\devkit\plug-ins\AbcImport) to maya\AbcImport
- For each of the solution:
- Use VS2012 to open the solution file (.sln)
- In Solution Explorer, right-click at project name -> properties
- Choose the configuration and platform you prefer and change the following (I choose all config and all platform):
- Refer the Include paths to suitable locations (configuration properties -> C/C++ -> Additional Include Directories):
.;C:\Program Files\Autodesk\Maya2014\include;..\..\lib;..\..\contrib\ilmbase-1.0.2\Half;..\..\contrib\ilmbase-1.0.2\Iex;..\..\contrib\ilmbase-1.0.2\IlmThread;..\..\contrib\ilmbase-1.0.2\Imath;%(AdditionalIncludeDirectories)
- Refer the Library paths to suitable locations (configuration properties -> Linker -> Additional Library Directories):
C:\Program Files\Autodesk\Maya2014\lib;..\..\lib\$(configuration);..\..\contrib\hdf5-1.8.9-win64\lib;..\..\build\vs2012\$(platform)\$(configuration);%(AdditionalLibraryDirectories)
- Add the missing libraries (configuration properties -> Linker -> Input -> Additional Dependencies):
OpenMaya.lib;Foundation.lib;OpenMayaAnim.lib;OpenMayaFX.lib;OpenMayaRender.lib;OpenMayaUI.lib;libzlib.lib;hdf5.lib;hdf5_hl.lib;libszip.lib;AlembicAbc.lib;AlembicAbcGeom.lib;AlembicAbcCoreFactory.lib;AlembicAbcCoreAbstract.lib;AlembicAbcCoreHDF5.lib;AlembicAbcCoreOgawa.lib;AlembicOgawa.lib;AlembicUtil.lib;AlembicZLIB.lib;AlembicIlmBase.lib;%(AdditionalDependencies)
- Build the Solution.
Remember if you want your maya plug-ins to be able to load in another machine, make sure the machine has vc redist installed (vc2012 redist for my case)
Jonathan Garrett於 2014年1月2日星期四UTC+8下午1時01分20秒寫道: