CassieMarie / heekscad

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

HeeksCad needs -lGLU on Fedora 14 #347

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Follow basic steps on BuildWithCmakeOnUbuntu
2. ccmake .
3. set OpenCASCADE_LINK_DIRECTORY to /usr/lib64
4. make

What is the expected output? What do you see instead?
/usr/bin/ld: CMakeFiles/heekscad.dir/ViewPoint.cpp.o: undefined reference to 
symbol 'gluLookAt'
/usr/bin/ld: note: 'gluLookAt' is defined in DSO /usr/lib64/libGLU.so.1 so try 
adding it to the linker command line

What version of the product are you using? 
svn rev 1450
OpenCASCADE 6.3.0-4.fc14 from fedora.danny.cz

On what operating system?
Fedora 14 x86_64

Please provide any additional information below.
If I manually add -lGLU to the link line, then it links.  My cmake skills 
aren't quite up to figuring out where to insert this in CMakeLists.txt

Original issue reported on code.google.com by DanChris...@gmail.com on 11 May 2011 at 11:06

GoogleCodeExporter commented 8 years ago
check this
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FindOpenGL

with
find_package(OpenGL REQUIRED)
you will find both opengl (sets OPENGL_FOUND=true) and glu (sets 
OPENGL_GLU_FOUND=true).

linking with these is done with:
target_link_libraries(mytarget ${OPENGL_LIBRARIES})

Original comment by anders.e...@gmail.com on 12 May 2011 at 5:08

GoogleCodeExporter commented 8 years ago

Original comment by neomil...@gmail.com on 28 Jun 2014 at 5:06

GoogleCodeExporter commented 8 years ago
Fixed in CMake.

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