I had the same problem, but I fixed it by building octave3.2 from source. However, I think you need libfltk1.1-dev not ftgl-dev (I didn't even have ftgl-dev and it worked).
I had the same problem, but I fixed it by building octave3.2 from source. However, I think you need libfltk1.1-dev not ftgl-dev (I didn't even have ftgl-dev and it worked).