There are two pieces of Softimage Version information: the runtime version, which is available from the Application::GetVersion function, and the version which is used for the compilation check. The compilation version is accessible via the XSI_VERSION preprocessor define.
In a shell (tcsh) window, type:
source <Softimage home directory>/.xsi_2013This ensures that environment variables such as XSISDK_ROOT are set (otherwise you'll get build and link errors).
Change directories to the location of the plug-in source code.
To remove all intermediate files before building the example, run this command:
gmake cleanTo compile the example, run this command:
gmakeLoad the plug-in into Softimage by doing one of the following:
You can compile both 32-bit and 64-bit plug-ins for Linux and differentiate them using the path: for example, $xsi_home/Application/bin/linux/x86/MyPlugin.so and Application/bin/linux/x64/MyPlugin.so. For more information, see Cross-Platform Deployment.
In order to compile Softimage plug-ins for both the x86 and x64 platforms, you need to launch Visual Studio with the proper options, which you can set up using a batch file (.bat) as demonstrated below.
If you are using Visual Studio 2010, you can set the batch file that most closely fits your situation:
Using a 32-bit environment to compile Softimage x86 plug-ins
Using a 32-bit environment to compile Softimage x64 plug-ins
Using a 64-bit environment to compile Softimage x86 plug-ins
Using a 64-bit environment to compile Softimage x64 plug-ins
Using these batch files to set up and launch Visual Studio ensures that environment variables such as XSISDK_ROOT are set properly in order to avoid build and link errors. This is because these batch files simulate opening a Softimage command prompt to start Visual Studio.
In Visual Studio open the project file .vcproj.
If a Source Control dialog box appears, click OK, and then in the Change Source Control dialog box, click Work Disconnected.
Select one of the following from the Active solution configuration drop-down list:
Select one of the following from the Active solution platform drop-down list:
The first time you build the plug-in, you will be prompted to save a Solution File (.sln).
Load the plug-in into Softimage by doing one of the following:
@echo off call "C:\Softimage\Softimage_2013\Application\bin\Setenv.bat" call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 set PATH set "XSISDK_ROOT=C:\Softimage\Softimage_2013\XSISDK" "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /useenv echo on
@echo off call "C:\Softimage\Softimage_2013_x64\Application\bin\Setenv.bat" call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 set PATH set "XSISDK_ROOT=C:\Softimage\Softimage_2013_x64\XSISDK" "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /useenv echo on
@echo off call "C:\Softimage\Softimage_2013\Application\bin\Setenv.bat" call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 set PATH set "XSISDK_ROOT=C:\Softimage\Softimage_2013\XSISDK" "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /useenv echo on
@echo off call "C:\Softimage\Softimage_2013_x64\Application\bin\Setenv.bat" call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 set PATH set "XSISDK_ROOT=C:\Softimage\Softimage_2013_x64\XSISDK" "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /useenv echo on
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License