Installation on MacOS X¶
Preface: This information is kindly provided by Andrey Shkarin and Roman Shkarin.
Install the MacPorts from http://macports.org
If you previously installed MacPorts, and it can not be started after latest installation. Error: port dlopen (... You must download the tar.gz file and install it using a terminal:
./configure make sudo make install
Install the necessary packages through macports:
sudo port install glib2 sudo port install gtk2 sudo port install json-glib
Install CMake from http://cmake.org
Got to the directory ufo-core and run:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig cmake .
make sudo make install
Installation is complete, perhaps the last lines are as follows:
-- Installing: /usr/local/lib/pkgconfig/ufo.pc CMake Error at src/bindings/cmake_install.cmake:33 (FILE): file INSTALL cannot find "/Users/Andrey/Desktop/ufo-distr/ufo-core/src/bindings/../src/Ufo-0.1.gir". Call Stack (most recent call first): src/cmake_install.cmake:60 (INCLUDE) cmake_install.cmake:32 (INCLUDE) make: *** [install] Error 1
1. Go to ufo-filters directory. Now, since libufo was installed in lib64, we must update the paths to look for shared libraries:
export DYLD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
cmake . make sudo make install
Build the test project and verify that everything works.