Compiling....error: cannot find -lglut

Hello everybody, i have been installed cudatoolkit and examples on fedora core 12, but when im trying to create the binaries of graphical examples (oclBox, oclNbody, et all…) there is an error:

$ make

/usr/bin/ld: cannot find -lglut
collect2: Id returned 1 exit status
make: ***…[…/…/…//OpenCL/bin/linux/release/oclBoxFilter] Error 1

Does someone have a hint ?

Many thanks in advance.

Hello everybody, i have been installed cudatoolkit and examples on fedora core 12, but when im trying to create the binaries of graphical examples (oclBox, oclNbody, et all…) there is an error:

$ make

/usr/bin/ld: cannot find -lglut
collect2: Id returned 1 exit status
make: ***…[…/…/…//OpenCL/bin/linux/release/oclBoxFilter] Error 1

Does someone have a hint ?

Many thanks in advance.

See the release notes. It suggests some systems might need to provide libglut.so via soft link. Assuming you do have a GLUT installed.

See the release notes. It suggests some systems might need to provide libglut.so via soft link. Assuming you do have a GLUT installed.

Hi.

I had this problem too, with Ubuntu 10.10 and 10.04. What you need to do is to install the following package:

libglut3-dev

On my Ubuntu 10.04 box, I wrote:

sudo apt-get install libglut3-dev

I am not familar with Fedora and Yum but I guess you have to write:

yum install libglut3-dev

Hope this helps.

Hi.

I had this problem too, with Ubuntu 10.10 and 10.04. What you need to do is to install the following package:

libglut3-dev

On my Ubuntu 10.04 box, I wrote:

sudo apt-get install libglut3-dev

I am not familar with Fedora and Yum but I guess you have to write:

yum install libglut3-dev

Hope this helps.