title: OpenGL setup for code::blocks "cannot find -lXxf86vm"
body: <p>I'm working on setting up a dev environment for school.  We're going to be using GLUT to do graphics programming. I installed freeglut on Ubuntu using</p>
  
  <pre><code>sudo apt-get install freeglut3-dev
  </code></pre>
  
  <p>I am going to be using code::blocks to write everything (as per the instructor's specifications) but when I try to build the default GLUT project in code::blocks, I get the following</p>
  
  <pre><code>Compiling: main.cpp 
  Linking console executable: bin/Debug/glut_test
  /usr/bin/ld: cannot find -lXxf86vm
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>It looks to me like I'm missing some dependency, but I can't for the life of me figure out what it is.  I have no idea what <strong>-lXxf86vm</strong> is, nor does Google or any other forum I can find.</p>
  
  <p>Does anyone have ideas?</p>
  
  <p>Update 1) this may have something to do with the fact that I have an Nvidia Optimus card in this laptop.</p>
  
  <p>I tried running the default OpenGL project as well and it's throwing the following error</p>
  
  <pre><code>main: X server has no OpenGL GLX extension
  </code></pre>
  
  <p>I'm going to try installing bumblebee and see if that gets me anywhere</p>