I've downloaded sample projects with OpenGL and those run fine. I can copy and paste that code into a new project and it won't compile, giving me linking errors. I've got the NVidia SDK and their sample programs run fine, so I'm certain OpenGL works on my PC.
<br><br>I&#39;m using MCVS 2005 and my efforts aren&#39;t working. I&#39;m trying this under Vista, but I can imagine the same error occurring on XP (and maybe my Linux partition). I&#39;d rather not have to hardcode directories to get this to work, as I&#39;m collaborating with a few people via SVN and it&#39;d be a real pain in the butt. I&#39;m pretty confident that it might just be the CMake files that I&#39;m setting up that are causing the issue, files of which I can&#39;t paste in here until I get home. I don&#39;t doubt the numbers of Win32 applications that use OpenGL and CMake, so if somebody is out there that can help me, it would be much appreciated. Don&#39;t make me do DirectX instead. :P
<br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>From:&nbsp;&quot;Brandon Van Every&quot; &lt;<a href="mailto:bvanevery@gmail.com">
bvanevery@gmail.com</a>&gt;<br>To:&nbsp;<a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>Date:&nbsp;Wed, 31 Oct 2007 16:30:49 -0400<br>Subject:&nbsp;Re: [CMake] Linking OpenGL in Win32<br>On 10/31/07, pingu &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pingu@moonstruckgames.com">
pingu@moonstruckgames.com</a>&gt; wrote:<br>&gt; I&#39;ve been trying to get OpenGL linked to my project for a fair while now,<br>&gt; and still not any closer to getting to done. FindOpenGL doesn&#39;t seem to work<br>&gt; (or I could just be using it improperly) and nothing I do will allow me to
<br>&gt; use OpenGL. I&#39;m absolutely sure I have it installed on my computer. I just<br>&gt; can&#39;t get it to properly link.<br><br>So you can build and run a sample OpenGL app without CMake? &nbsp;What<br>compiler, build, environment, and OS?
<br><br>On Windows, when I encounter a problem such as this, I try it under<br>every different compiler environment. &nbsp;MSVC, Cygwin, MinGW with<br>Command Prompt only, MinGW with MSYS. &nbsp;If any 1 of &#39;em works, then<br>probably what means is, the guy who wrote the FindOpenGL or whatever
<br>was using that platform and not your platform. &nbsp;So there just hasn&#39;t<br>been enough testing on the other platforms.<br><br><br>Cheers,<br>Brandon Van Every<br></blockquote></div><br>