title: Unknown command line option '-skip'
body: <p>I'm trying to build <code>Qt 5.11.1</code> from source for android using the <a href="http://wiki.qt.io/Android" rel="nofollow noreferrer">guide</a> but it fails at <code>Preparing build tree</code>.
  The command I use is:</p>
  
  <pre><code>../qtbase/configure -prefix /home/user/Qt/5.11.1/android_armv7 -release -xplatform android-g++ --disable-rpath -nomake tests -nomake examples -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -android-ndk /home/user/source_qt/android-ndk-r10e/ -android-sdk /home/user/Android/Sdk/ -no-warnings-are-errors -skip qttranslations -skip qtserialport -skip qtserialbus -skip qtscxml -skip qtscript -skip qtcharts -skip qt3d -skip qtdatavis3d -skip qtcanvas3d -skip qtgamepad -skip qtvirtualkeyboard -skip qtwayland -skip qtwebengine -skip qtwebchannel -skip qtwebsockets -android-arch armeabi-v7a
  </code></pre>
  
  <p>Which gives the following output:</p>
  
  <pre><code>Preparing build tree...
  &lt;srcbase&gt; = /home/user/source_qt/qtbase 
  &lt;bldbase&gt; = /home/user/source_qt/build 
  &lt;outbase&gt; = /home/user/source_qt/build 
  Creating qmake...
  .Done.
  ERROR: Unknown command line option '-skip'.
  </code></pre>
  
  <p>The <code>-skip</code> part in necessary to exclude components not supported by android, so I'm completely lost to why it says that "-skip is an unknown command".</p>
  
  <p>I'm using <code>Linux Mint 18.3</code>
  The <code>NDK</code> and <code>SDK</code> paths should be correct, and my java version is</p>
  
  <pre><code>java -version
  openjdk version "1.8.0_171"
  OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
  OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
  </code></pre>
  
  <p>I tried searching for some info about that error, but not much comes up.
  If anyone has any idea what could be the cause of that error, I would be thankful. </p>