namoamitof / heekscad

Automatically exported from code.google.com/p/heekscad
Other
0 stars 0 forks source link

Build failure: undefined reference to gluXXX #344

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Linking CXX executable ../bin/heekscad
CMakeFiles/heekscad.dir/GraphicsCanvas.cpp.o: In function 
`CViewport::glCommands()':
/home/nissarin/workdir/git/svn/heekscad/src/GraphicsCanvas.cpp:100: undefined 
reference to `gluOrtho2D'
CMakeFiles/heekscad.dir/HDimension.cpp.o: In function 
`HDimension::glCommands(bool, bool, bool)':
/home/nissarin/workdir/git/svn/heekscad/src/HDimension.cpp:167: undefined 
reference to `gluProject'
CMakeFiles/heekscad.dir/ViewPoint.cpp.o: In function 
`CViewPoint::SetProjection2(bool)':
/home/nissarin/workdir/git/svn/heekscad/src/ViewPoint.cpp:263: undefined 
reference to `gluPerspective'
CMakeFiles/heekscad.dir/ViewPoint.cpp.o: In function 
`CViewPoint::SetPickProjection(wxRect&)':
/home/nissarin/workdir/git/svn/heekscad/src/ViewPoint.cpp:295: undefined 
reference to `gluPickMatrix'
CMakeFiles/heekscad.dir/ViewPoint.cpp.o: In function 
`CViewPoint::SetModelview()':
/home/nissarin/workdir/git/svn/heekscad/src/ViewPoint.cpp:302: undefined 
reference to `gluLookAt'
CMakeFiles/heekscad.dir/ViewPoint.cpp.o: In function 
`CViewPoint::glUnproject(gp_Pnt const&) const':
/home/nissarin/workdir/git/svn/heekscad/src/ViewPoint.cpp:322: undefined 
reference to `gluUnProject'
CMakeFiles/heekscad.dir/ViewPoint.cpp.o: In function 
`CViewPoint::glProject(gp_Pnt const&) const':
/home/nissarin/workdir/git/svn/heekscad/src/ViewPoint.cpp:330: undefined 
reference to `gluProject'
collect2: ld returned 1 exit status

SVN rev. 1446
Gentoo AMD64

Adding -lGNU and -lglut to linker flags (using ccmake) fixes the problem.

Original issue reported on code.google.com by nissa...@gmail.com on 21 Apr 2011 at 9:13

GoogleCodeExporter commented 9 years ago

Original comment by neomil...@gmail.com on 28 Jun 2014 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by neomil...@gmail.com on 28 Jun 2014 at 4:57

GoogleCodeExporter commented 9 years ago
CMake file does now include OpenGL package.

https://code.google.com/p/heekscad/source/browse/trunk/src/CMakeLists.txt

Original comment by neomil...@gmail.com on 29 Jun 2014 at 6:32