Created
May 12, 2012 00:21
-
-
Save jeremyselan/2663280 to your computer and use it in GitHub Desktop.
OCIO Static link example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ main.cpp -I/net/homedirs/jeremys/git/ocio.js/build/dist/include -ostatictest /net/homedirs/jeremys/git/ocio.js/build/dist/lib/libOpenColorIO.a /net/homedirs/jeremys/git/ocio.js/build/ext/dist/lib/libyaml-cpp.a /net/homedirs/jeremys/git/ocio.js/build/ext/dist/lib/libtinyxml.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <OpenColorIO/OpenColorIO.h> | |
namespace OCIO = OCIO_NAMESPACE; | |
int main(int argc, const char **argv) | |
{ | |
OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig(); | |
OCIO::ConstColorSpaceRcPtr lin = config->getColorSpace(OCIO::ROLE_SCENE_LINEAR); | |
std::cerr << lin->getName() << std::endl; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p build && cd build | |
mkdir -p dist | |
cmake -D CMAKE_INSTALL_PREFIX=dist -D CMAKE_SKIP_RPATH=YES -D PYTHON=/usr/bin/python2.6 -D OCIO_BUILD_STATIC=YES ../ | |
make install -j8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment