title: How to build a debian package and automatically get all dependency libraries
body: <p>I need to build a debian package for an executable that I wish to set up on several machines. Is it possible to create this package with: </p>
  
  <ul>
  <li>all dependencies for that executable (like shared libraries)</li>
  <li>install needed packages (like multiarch, ssl, etc)</li>
  <li>set up project directiry (like directories and some header files</li>
  </ul>
  
  <p>I dont need the debian package to have the compile files, just the dependencies for the executable to run in that machine (assuming all machines are running the same debian version) </p>
  
  <p>I see on the official ubuntu forums how to create a package but dont understand how I can do to get all dependencies and set up the machine to run that executable itself. </p>
  
  <p>Any ideas anyone? </p>
  
  <p>My system build: Ubuntu wheezy, GLIBC 2.13, 64bit
  My executable details: c/c++ executable, 32bit </p>