<br><br><div><span class="gmail_quote">On 1/28/07, <b class="gmail_sendername">Eric Noulard</b> &lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/1/27, David Morris &lt;<a href="mailto:dvmorris@gmail.com">dvmorris@gmail.com</a>&gt;:<br>&gt; I&#39;m new to cmake, and I have been trying to find a good comprehensive<br>&gt; tutorial to get myself started, but have had no luck. Does anyone know a
<br>&gt; good one besides the <a href="http://cmake.org">cmake.org</a> site and the linuxjournal one?<br><br>No but the Wiki <a href="http://www.cmake.org/Wiki/CMake">http://www.cmake.org/Wiki/CMake</a><br>is a good start.
<br><br>Moreover I advise you to read (even fast read) the<br>documentation &quot;man cmake&quot; or &quot;<a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a>&quot;.<br>
<br>&gt;From my experience with different collegue/friend<br>&quot;standalone&quot; startup time&nbsp;&nbsp;with CMake is from 1 to 3 days<br>where you find yourself &quot;lost&quot;.<br><br>After that period you keep getting things work as you want
<br>faster and faster.<br><br>&gt;<br>&gt; I will try to describe one problem i&#39;m having, but I&#39;m not really sure where<br>&gt; to begin. I&#39;m trying to compile a C++ project and I get this error:<br>&gt;<br>&gt; /usr/bin/ld: Undefined symbols:
<br>&gt; _glBegin<br>&gt;&nbsp;&nbsp;_glBindTexture<br>&gt; _glColor3d<br>&gt; _glColor3f<br>&gt; _glCullFace<br>&gt; ...<br>&gt; ...<br><br>Seems you need to link with OpenGL.<br>Try add the following to<br><br>FIND_PACKAGE(OpenGL)
<br>IF (OPENGL_FOUND)<br>&nbsp;&nbsp;MESSAGE(STATUS &quot;Looking for OpenGL - found : ${OPENGL_gl_LIBRARY}&quot;)<br>&nbsp;&nbsp;GET_FILENAME_COMPONENT(GLPATH ${OPENGL_gl_LIBRARY} PATH)<br>&nbsp;&nbsp;LINK_DIRECTORIES(${GLPATH})<br>ELSE (OPENGL_FOUND)
<br>&nbsp;&nbsp;MESSAGE(STATUS &quot;Looking for OpenGL - not found&quot;)<br>ENDIF (OPENGL_FOUND)<br><br><br>&gt;<br>&gt; SET(Libraries fltk_images fltk_gl fltk arcball vecmat)<br>&gt;<br>&gt; SET(CurrentExe &quot;TopMod&quot;)<br>
&gt; FILE(GLOB SRC *.cc)<br>&gt; ADD_EXECUTABLE(${CurrentExe} ${SRC})<br>&gt; TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})<br><br>ADD GL library<br><br>TARGET_LINK_LIBRARIES(${CurrentExe} ${OPENGL_gl_LIBRARY})<br><br>
--<br>Erk<br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake
</a></blockquote><div><br><br>That code seemed to work for OpenGL,&nbsp; thanks.<br><br>I am still getting some unresolved symbols, but none that have anything to do with OpenGL:<br><br>/usr/bin/ld: Undefined symbols:<br>_ClipRect
<br>_GetPort<br>_GetWindowPort<br>_SetPort<br>_SetRect<br>_GetWindowPortBounds<br>_AECountItems<br>_AECreateDesc<br>_AEDisposeDesc<br>_AEGetNthPtr<br>_AEGetParamDesc<br><br>searching for these terms on google always show me something that is Apple specific, and I found one old mailing list post about how CMake thinks I&#39;m not compiling on a OS X anymore, and that I need to trick it into changing the compiler. I checked out my 
CMakeCache.txt file in my project directory, and I found these lines:<br><br>//C compiler.<br>CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc<br><br>//CXX compiler.<br>CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++<br><br>I&#39;m not sure if the CXX compiler is correct, or if it should be g++. I tried changing it there but it didn&#39;t go anything. Any ideas?
<br>thanks for the help,<br>dave<br></div><br></div><br>