I eventually was able to compile LyX by temporarily hiding my 32-bit
version of the GL library and creating a link to the 64-bit version.
There was the same problem with the artsd library as well.
Since the program now runs perfectly as a 64-bit binary, I suspect that Qt
is not improperly linked. Maybe there is some generic linking that LyX is
using for all of Qt that has a hardcoded path for some of these libraries?
I don't really know; I searched the Makefiles but could not figure it out.
LyX itself does not use libGL directly. Could it be that you Qt is
linked wrongly?
Andre'