Skip to content

Compiling NxGraphics Dependencies

Stephane Kyles edited this page Feb 15, 2015 · 44 revisions

COMPILATION ON WINDOWS ( Targeting Windows or Android )
You will need

  1. download latest NxGraphics source dependencies package : here
  2. unpack NxGraphicsDeps
  3. download and copy Ogre3D source (1.9) to NxGraphicsDeps/src/Ogre
    ( overwrite the existing CmakeLists.txt )
    the path should look like NxGraphicsDeps/src/Ogre/OgreMain

Windows:

  • download Ogre3D dependencies : here
  • decompress the file, and open folder with cmake gui, click "configure"
  • if you are missing dinput8.lib, you should download the windows kit.
  • if you are missing d3d9.lib you are missing the Microsoft DirectX SDK (June 2010).
  • click generate, then open OGREDEPS.sln in Visual Studio, choose "Release", then build.
  • once compilation succeeded, right click "install" project then build, this will copy required files.
  • copy ogredeps folder to NxGraphicsDeps/src/Ogre/
  • open NxGraphicsDeps folder with cmake gui, click "configure".
  • in cmake gui, goto the attribute OGRE_DEPENDENCIES_DIR, and copy the path to your ogredeps folder.
  • re click "configure"
  • tick BUILD_CURL_STATIC
  • untick
    BUILD_CURL_EXE BUILD_CURL_TESTS Ogre_BUILD_SAMPLES Ogre_BUILD_RENDERSYSTEM_D3D11 Ogre_BUILD_TOOLS Ogre_INSTALL_DOCS Ogre_INSTALL_PDB Ogre_INSTALL_SAMPLES Ogre_INSTALL_TOOLS
  • re click "configure"
  • click "generate", open NxGraphicsEngineDeps.sln solution in Visual studio, and build in release mode
  • once compilation succeeded,
    right click "install" project then build, this will copy required files to "nxdeps" folder.

Compile NxGraphics

  • Clone NxGraphics sources to a folder.
  • copy "nxdeps" folder to the root folder.
  • open NxGraphics folder with cmake gui, click "configure" and "generate"
  • open NxGraphicsEngine.sln in Visual studio, compile in Release mode.

Android:

  • download Ogre3D dependencies : here
Clone this wiki locally