summaryrefslogtreecommitdiff
path: root/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html')
-rw-r--r--docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html173
1 files changed, 0 insertions, 173 deletions
diff --git a/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html b/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
deleted file mode 100644
index 10acac3..0000000
--- a/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
+++ /dev/null
@@ -1,173 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="theme-color" content="#6a9fb5">
-
- <title>Compiling AutoDock Vina on iOS</title>
-
- <!--
- <link rel="stylesheet" href="https://unpkg.com/latex.css/style.min.css" />
- -->
-
- <link rel="stylesheet" href="/assets/c-hyde.css">
-
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface">
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700">
-
- <link rel="stylesheet" href="/assets/main.css">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="og:site_name" content="Navan Chauhan">
- <link rel="canonical" href="https://web.navan.dev/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html">
- <meta name="twitter:url" content="https://web.navan.dev/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html">
- <meta name="og:url" content="https://web.navan.dev/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html">
- <meta name="twitter:title" content="Compiling AutoDock Vina on iOS">
- <meta name="og:title" content="Compiling AutoDock Vina on iOS">
- <meta name="description" content="Compiling AutoDock Vina on iOS">
- <meta name="twitter:description" content="Compiling AutoDock Vina on iOS">
- <meta name="og:description" content="Compiling AutoDock Vina on iOS">
- <meta name="twitter:card" content="summary_large_image">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="shortcut icon" href="/images/favicon.png" type="image/png">
- <link href="/feed.rss" type="application/atom+xml" rel="alternate" title="Sitewide Atom feed">
- <meta name="twitter:image" content="https://web.navan.dev/images/opengraph/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.png">
- <meta name="og:image" content="https://web.navan.dev/images/opengraph/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.png">
- <meta name="google-site-verification" content="LVeSZxz-QskhbEjHxOi7-BM5dDxTg53x2TwrjFxfL0k">
- <script data-goatcounter="https://navanchauhan.goatcounter.com/count"
- async src="//gc.zgo.at/count.js"></script>
- <script defer data-domain="web.navan.dev" src="https://plausible.io/js/plausible.js"></script>
- <link rel="manifest" href="/manifest.json">
-
-</head>
-<body class="theme-base-0d">
- <div class="sidebar">
- <div class="container sidebar-sticky">
- <div class="sidebar-about">
- <h1><a href="/">Navan</a></h1>
- <p class="lead" id="random-lead">Alea iacta est.</p>
- </div>
-
- <ul class="sidebar-nav">
- <li><a class="sidebar-nav-item" href="/about/">about/links</a></li>
- <li><a class="sidebar-nav-item" href="/posts/">posts</a></li>
- <li><a class="sidebar-nav-item" href="/3D-Designs/">3D designs</a></li>
- <li><a class="sidebar-nav-item" href="/feed.rss">RSS Feed</a></li>
- <li><a class="sidebar-nav-item" href="/colophon/">colophon</a></li>
- </ul>
- <div class="copyright"><p>&copy; 2019-2024. Navan Chauhan <br> <a href="/feed.rss">RSS</a></p></div>
- </div>
-</div>
-
-<script>
-let phrases = [
- "Something Funny", "Veni, vidi, vici", "Alea iacta est", "In vino veritas", "Acta, non verba", "Castigat ridendo mores",
- "Cui bono?", "Memento vivere", "अहम् ब्रह्मास्मि", "अनुगच्छतु प्रवाहं", "चरन्मार्गान्विजानाति", "coq de cheval", "我愛啤酒"
- ];
-
-let new_phrase = phrases[Math.floor(Math.random()*phrases.length)];
-
-let lead = document.getElementById("random-lead");
-lead.innerText = new_phrase;
-</script>
- <div class="content container">
-
- <div class="post">
- <h1 id="compiling-autodock-vina-on-ios">Compiling AutoDock Vina on iOS</h1>
-
-<p>Why? Because I can.</p>
-
-<h2 id="installing-makedepend">Installing makedepend</h2>
-
-<p><code>makedepend</code> is a Unix tool used to generate dependencies of C source files. Most modern programs do not use this anymore, but then again AutoDock Vina's source code hasn't been changed since 2011. The first hurdle came when I saw that there was no makedepend command, neither was there any package on any development repository for iOS. So, I tracked down the original source code for <code>makedepend</code> (https://github.com/DerellLicht/makedepend). According to the repository this is actually the source code for the makedepend utility that came with some XWindows distribution back around Y2K. I am pretty sure there is a problem with my current compiler configuration because I had to manually edit the <code>Makefile</code> to provide the path to the iOS SDKs using the <code>-isysroot</code> flag.</p>
-
-<h2 id="editing-the-makefile">Editing the Makefile</h2>
-
-<p>Original Makefile ( I used the provided mac Makefile base )</p>
-
-<pre><code>BASE=/usr/local
-BOOST_VERSION=1_41
-BOOST_INCLUDE = $(BASE)/include
-C_PLATFORM=-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.4
-GPP=/usr/bin/g++
-C_OPTIONS= -O3 -DNDEBUG
-BOOST_LIB_VERSION=
-
-include ../../makefile_common
-</code></pre>
-
-<p>I installed Boost 1.68.0-1 from Sam Bingner's repository. ( Otherwise I would have had to compile boost too 😫 )</p>
-
-<p>Edited Makefile</p>
-
-<pre><code>BASE=/usr
-BOOST_VERSION=1_68
-BOOST_INCLUDE = $(BASE)/include
-C_PLATFORM=-arch arm64 -isysroot /var/sdks/Latest.sdk
-GPP=/usr/bin/g++
-C_OPTIONS= -O3 -DNDEBUG
-BOOST_LIB_VERSION=
-
-include ../../makefile_common
-
-</code></pre>
-
-<h2 id="updating-the-source-code">Updating the Source Code</h2>
-
-<p>Of course since Boost 1.41 many things have been added and deprecated, that is why I had to edit the source code to make it work with version 1.68</p>
-
-<h3 id="error-1-no-matching-constructor">Error 1 - No Matching Constructor</h3>
-
-<pre><code>../../../src/main/main.cpp:50:9: error: no matching constructor for initialization of 'path' (aka 'boost::filesystem::path')
-return path(str, boost::filesystem::native);
-</code></pre>
-
-<p>This was an easy fix, I just commented this and added a return statement to return the path</p>
-
-<pre><code>return path(str)
-</code></pre>
-
-<h3 id="error-2-no-member-named-native_file_string">Error 2 - No Member Named 'native<em>file</em>string'</h3>
-
-<pre><code>../../../src/main/main.cpp:665:57: error: no member named 'native_file_string' in 'boost::filesystem::path'
- std::cerr &lt;&lt; "\n\nError: could not open \"" &lt;&lt; e.name.native_file_string() &lt;&lt; "\" for " &lt;&lt; (e.in ? "reading" : "writing") &lt;&lt; ".\n";
- ~~~~~~ ^
-../../../src/main/main.cpp:677:80: error: no member named 'native_file_string' in 'boost::filesystem::path'
- std::cerr &lt;&lt; "\n\nParse error on line " &lt;&lt; e.line &lt;&lt; " in file \"" &lt;&lt; e.file.native_file_string() &lt;&lt; "\": " &lt;&lt; e.reason &lt;&lt; '\n';
- ~~~~~~ ^
-2 errors generated.
-</code></pre>
-
-<p>Turns out <code>native_file_string</code> was deprecated in Boost 1.57 and replaced with just <code>string</code></p>
-
-<h3 id="error-3-library-not-found">Error 3 - Library Not Found</h3>
-
-<p>This one still boggles me because there was no reason for it to not work, as a workaround I downloaded the DEB, extracted it and used that path for compiling.</p>
-
-<h3 id="error-4-no-member-named-native_file_string-again">Error 4 - No Member Named 'native<em>file</em>string' Again.</h3>
-
-<p>But, this time in another file and I quickly fixed it</p>
-
-<h2 id="moment-of-truth">Moment of Truth</h2>
-
-<p>Obviously it was working on my iPad, but would it work on another device? I transferred the compiled binary and </p>
-
-<p><img src="/assets/posts/autodock-vina/s1.png" alt="&quot;AutoDock Vina running on my iPhone&quot;" /></p>
-
-<p>The package is available on my repository and only depends on boost. ( Both, Vina and Vina-Split are part of the package)</p>
-
- </div>
- <blockquote>If you have scrolled this far, consider subscribing to my mailing list <a href="https://listmonk.navan.dev/subscription/form">here.</a> You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.</blockquote>
- <script data-isso="https://comments.navan.dev/"
- src="https://comments.navan.dev/js/embed.min.js"></script>
- <div id="isso-thread">
- <noscript>Javascript needs to be activated to view comments.</noscript>
- </div>
-
- </div>
- <script src="assets/manup.min.js"></script>
- <script src="/pwabuilder-sw-register.js"></script>
-</body>
-</html> \ No newline at end of file