title: How to Install Wt into a Custom Folder Without "fatal error: Wt/WApplication: No such file or directory"
body: <p>I'm new to Wt and c++ and I just installed the Wt webframework on Ubuntu 16.04 LTS into a custom folder in my home directory. I cannot install or build any software into the <code>/usr</code> diretories of this computer. Even if I could, the <a href="https://launchpad.net/~pgquiles/+archive/ubuntu/wt" rel="nofollow noreferrer">PPA</a> hasn't been active for 2 1/2 years, and the official Ubuntu installation <a href="https://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_Ubuntu" rel="nofollow noreferrer">instructions</a> are also outdated. Aptitude no longer ships with Ubuntu and will eventually be discontinued.</p>
  
  <p>I compliled and installed everything successfully, yet when I try to compile the <a href="https://www.webtoolkit.eu/wt/doc/tutorial/wt.html#_hello_wt" rel="nofollow noreferrer">Hello World</a> example I get the following error:</p>
  
  <pre><code>g++ -o hello hello.cpp -lwt -lwthttp
  
  fatal error: Wt/WApplication: No such file or directory
  </code></pre>
  
  <p>Here are my installation steps:</p>
  
  <p>Boost:</p>
  
  <pre><code>wget https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2
  tar --bzip2 -xf boost_1_65_1.tar.bz2
  cd boost_1_65_1
  ./bootstrap.sh --prefix=../myfolder
  sudo ./b2 install --prefix=../myfolder
  </code></pre>
  
  <p>CMake:</p>
  
  <pre><code>wget https://cmake.org/files/v3.9/cmake-3.9.2.tar.gz
  tar -xvzf cmake-3.9.2.tar.gz
  cd cmake-3.9.2
  ./configure --prefix=../myfolder
  make
  sudo make install
  vim .profile
  export PATH=$PATH:/home/ubuntu/myfolder/bin
  </code></pre>
  
  <p>Wt:</p>
  
  <pre><code>git clone https://github.com/emweb/wt.git
  cd wt
  cmake -DCMAKE_INSTALL_PREFIX:PATH=../myfolder .
  -- Generating done
  -- Build files have been written to: /home/ubuntu/myfolder
  make
  sudo make install
  make -C examples
  </code></pre>
  
  <p>Since I'm lumping everything together in <code>/myfolder</code> I did not use the <code>/build</code> folder per the Wt installation <a href="https://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html" rel="nofollow noreferrer">instructions</a>. The <code>libwt</code> and <code>libboost</code> libraries are in <code>/myfolder/lib</code>. I assumed all of the linking was taken care of during installation.</p>
  
  <p>Any thoughts? Thanks in advance.</p>