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'm using MCVS 2005 and my efforts aren't working. I'm trying this under Vista, but I can imagine the same error occurring on XP (and maybe my Linux partition). I'd rather not have to hardcode directories to get this to work, as I'm collaborating with a few people via SVN and it'd be a real pain in the butt. I'm pretty confident that it might just be the CMake files that I'm setting up that are causing the issue, files of which I can't paste in here until I get home. I don'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'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: "Brandon Van Every" <<a href="mailto:bvanevery@gmail.com">
bvanevery@gmail.com</a>><br>To: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>Date: Wed, 31 Oct 2007 16:30:49 -0400<br>Subject: Re: [CMake] Linking OpenGL in Win32<br>On 10/31/07, pingu <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pingu@moonstruckgames.com">
pingu@moonstruckgames.com</a>> wrote:<br>> I've been trying to get OpenGL linked to my project for a fair while now,<br>> and still not any closer to getting to done. FindOpenGL doesn't seem to work<br>> (or I could just be using it improperly) and nothing I do will allow me to
<br>> use OpenGL. I'm absolutely sure I have it installed on my computer. I just<br>> can't get it to properly link.<br><br>So you can build and run a sample OpenGL app without CMake? 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. MSVC, Cygwin, MinGW with<br>Command Prompt only, MinGW with MSYS. If any 1 of '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. So there just hasn't<br>been enough testing on the other platforms.<br><br><br>Cheers,<br>Brandon Van Every<br></blockquote></div><br>