diff --git a/README b/README index bfe042f..4c32625 100644 --- a/README +++ b/README @@ -98,3 +98,29 @@ sudo emacs /System/Library/Frameworks/Python.framework/Versions/2.6/Headers/pypo #endif +#endif +#################################### +### Building on GNU/Linux Gentoo ### +#################################### + +Some Gentoo files are named different from what is assumed in the pvr +installation scripts, minor modifications are required: + +The following example assumes python2.7 installation and will place everything +into pvr_dir/libpvr/install/linux2/g++/m64/release/python26/pvr. + +First we need to define the directory where the python library will be installed: +$ cd pvr_dir/libpvr +$ export PVR_PYTHON_PATH="." + +Depending on the installed python version, we may need to create a few +symbolic links to satisfy the dependencies: +$ cd /usr/lib +$ sudo ln -s ./libboost_python-2.7.so ./libboost_python.so +$ sudo ln -s ./libpython2.7.so ./libpython2.6.so +$ sudo ln -s pvr_dir/libpvr.so ./libpvr.so + +Now things should get built. Proceed as described in "Building PVR" section. + +Finally, after the pvr pylib is built and installed, create a symlink to it: +$ cd /usr/lib/python2.7 +$ sudo ln -s pvr_dir/libpvr/install/linux2/g++/m64/release/python26/pvr/ ./pvr \ No newline at end of file