This link may be useful for 64-bit compilation and the express edition:

Creating an Empty Shader Project

Here are the steps to create a project in Visual Studio 2008 and compile a shader into a DLL. If you are using another compiler, go to the bottom of the tutorial.

  1. Click File > New > Project to create a new project.

  2. In the New Project window, click Win32 Project, type a name in the Name box, and click OK.

  3. In the Win32 Application Wizard, click Next.

  4. Select DLL as the application type, click the Empty project checkbox, and click Finish.

    The Solution Explorer will show an empty project:

  5. To compile in 64-bit, we must add a new platform from the Configuration Manager:

  6. In the Active solution platform list, click <New...>.

    And then select x64 as the solution platform, and copy the settings from the Win32 platform.

  7. Add a .cpp file or create one:

  8. We now have to configure the project. Right-click the project and then click Properties.

  9. Add the Arnold SDK include folder.

  10. Then we add the Arnold lib folder where the ai.lib file is located:

  11. Add ai.lib to the Additional Dependencies we can link our project with Arnold:

You should now be able to compile the project. This will create a DLL in a folder next to the Solution (depending on the configuration). You must copy this .dll file into your target Arnold project. If you are using Softimage, you'll want to copy the file to the SItoA bin folder, for example, C:\solidangle\sitoa\Addons\SItoA\Application\Plugins\bin\nt-x86-64.

Other Compilers

If you are trying to use Visual Studio Express make sure to follow these additional steps:

  1. First, download the Windows SDK 7.1 from the Microsoft website (you MUST have the SDK installed FIRST before trying to switch compiler configurations). The link to the website is here.
  2. Verify that you have the x64 compiler for Windows by going into Start->Control Panel->Programs and Features. Scroll down to the bottom and you should see this: Microsoft Visual C++ 2010 Compilers Standard - enu - x64. If you do NOT see this, then you didn't install the SDK properly! If you already installed the Visual C++ 2010 before the SDK you should deinstall the 2010 x86/x64 redistributables otherwise the SDK will not install. Then install the SDK but without compilers. After that you should install the 2010 compiler update: Also make sure that you installed the 2010 C++ Sp1 before:
  3. You must download the Visual C++ Express package (2008 or 2010). You can get this download here in 2008 or 2010.
  4. Follow the instructions for compiling to 64-bit from the tutorial.
  5. IMPORTANT: At this time, it will NOT link. It will complain about not finding the file kernel32.lib. This is because Visual Studio is pointing to the Win32 library directories instead of the x64 directories. You should again point Visual Studio to the new location: C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64 in the Linker->General->Additional Directories tab.

  • No labels