Download MUS COD II

Transcript
Reconfiguring the suite. We assume that you have checked out a fresh suite and have
it configured and compiled with bootstrap. The procedure to enable Matlab logging is the
following:
• Locate the Matlab installation on your file system. We assume here that Matlab has been
installed to /usr/local/matlab.
• Reconfigure the COMMON CODE package in the suite by calling the CMake-GUI, e.g.,
with
user@machine:~/MUSCOD_SUITE/Packages/COMMON_CODE/Debug> ccmake .
Enable the options PROVIDE_LOGGING_TO_MATLAB and PROVIDE_TYPE_CONVERSION_MATLAB.
Press “c” to configure the package. CMake will try to find your Matlab installation.
Sometimes, you have to help manually by setting the advanced variable MATLAB_DIR to
your Matlab installation path. Even that may not be enough: It is a known problem of
CMake (at least for version 2.6 and earlier) that libraries ending in a version number (e.g.,
.so.1.0, instead of .so) will not be found automatically. In Matlab 7.6, the following
needed libraries have that problem:
MATLAB_ICUDATA_LIBRARY
MATLAB_ICUI18N_LIBRARY
MATLAB_ICUIO_LIBRARY
MATLAB_ICUUC_LIBRARY
/usr/local/matlab/bin/glnxa64/libicudata.so.36
/usr/local/matlab/bin/glnxa64/libicui18n.so.36
/usr/local/matlab/bin/glnxa64/libicuio.so.36
/usr/local/matlab/bin/glnxa64/libicuuc.so.36
You can either create symbolic links, e.g., via
user@machine:/usr/local/matlab/bin/glnxa64> ln -s libicuuc.so.36 libicuuc.so
which is only possible if you have root access on your machine. Alternatively, you have to
type in the proper locations in the CMake-GUI. If you work in a 32bit environment, you
will have to exchange glnxa64 for glnx86. Press “c” and “g” to configure and generate
the Makefiles. Leave the CMake-GUI.
• Recompile COMMON CODE by calling
user@machine:~/MUSCOD_SUITE/Packages/COMMON_CODE/Debug> make install
• Call the CMake-GUI in your MC2 binary directory
user@machine:~/MUSCOD_SUITE/MC2/Debug> ccmake .
51