Commit 7187fa44 authored by aziz's avatar aziz
Browse files

Merge remote-tracking branch 'origin/master' into 2802-FMU_Cosimulation

Signed-off-by: default avataraziz <>
parents 7d05a1d9 cccdb14e
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry exported="true" kind="lib" path="lib/"/> <classpathentry exported="true" kind="lib" path="lib/" sourcepath="lib/"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
documentation.html d453042662ce194dd18088037f800ed7c5b9f647 GREEN
<h1>Developer Documentation for Microsoft Z3 Bundle (<i></i>)</h1>
This plugin bundles the Microsoft Z3 Theorem Prover. It provides the following:
<li>Native libraries for Windows (x86, x64), Linux (x86, x64), and Mac OS X (x64)</li>
<li>Logic required to pre-load shared native libraries (implemented in the plugin activator)</li>
<li>Z3 Java bindings</li>
<li>API wrapper that implements convenience functions to work with Z3.</li>
The binary distribution of Z3 consists of several native shared libraries that depend on each other. This setup requires different measures on the different operating systems and AF3 versions (notably: developer installation and binary RCP distribution).
<h2>Developer Installation</h2>
The pre-loading logic implemented in the activator is sufficient.
In the <i>Run/Debug Configuration</i>, the <code>LD_LIBRARY_PATH</code> environment variable needs to be set to <code>&#36;&#123;workspace_loc&#125/../git/af3/</code>, or <code>&#36;&#123;workspace_loc&#125/../git/af3/</code>, respectively (see <i>Environment</i> tab).
<h3>Mac OS X</h3>
In the <i>Run/Debug Configuration</i>, the <code>DYLD_LIBRARY_PATH</code> environment variable needs to be set to <code>&#36;&#123;workspace_loc&#125/../git/af3/</code> (see <i>Environment</i> tab).
<h2>RCP Distribution</h2>
The pre-loading logic implemented in the activator is sufficient.
A wrapper shell script that sets <code>LD_LIBRARY_PATH</code> is generated by the following snippet in the <code>af3-phoenix-04-product-linux</code> Jenkins job.
msdir=$(find . -name '[\.0-9]*' -type d)
echo '#!/bin/bash' > autofocus3-phoenix
echo "LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${msdir}/lib/x64 ./autofocus3-phoenix.bin \$*" >> autofocus3-phoenix
chmod a+x autofocus3-phoenix
<h3>Mac OS X</h3>
<p>Since a native Mac OS application is desired, using the a wrapper script that sets the <code>LD_LIBRARY_PATH</code> environment variable in the UNIX sub system is not an option.</p>
<p>However, the equivalent <code>DYLD_LIBRARY_PATH</code> in the native Mac subsystem, is nowadays purged by <a href="">Mac OS X System Integrity Protection</a>.
Therefore, the native libraries are copied the Eclipse launcher directory (since shared libraries residing in the same directory as the application are found). This is performed by the following script in the <code>af3-phoenix-04-product-macosx</code> Jenkins job.
# See
echo "Copying native Z3 libs to Eclipse launcher directory"
Z3_LIB_DIR=$(find ../Eclipse -name '[\.0-9]*')
cp $Z3_LIB_DIR/lib/x64/*.dylib .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment