[CMake] Re: CMake Digest, Vol 42, Issue 92

pingu pingu at moonstruckgames.com
Wed Oct 31 16:42:41 EDT 2007


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.

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


> From: "Brandon Van Every" <bvanevery at gmail.com>
> To: cmake at cmake.org
> Date: Wed, 31 Oct 2007 16:30:49 -0400
> Subject: Re: [CMake] Linking OpenGL in Win32
> On 10/31/07, pingu <pingu at moonstruckgames.com> wrote:
> > I've been trying to get OpenGL linked to my project for a fair while
> now,
> > and still not any closer to getting to done. FindOpenGL doesn't seem to
> work
> > (or I could just be using it improperly) and nothing I do will allow me
> to
> > use OpenGL. I'm absolutely sure I have it installed on my computer. I
> just
> > can't get it to properly link.
>
> So you can build and run a sample OpenGL app without CMake?  What
> compiler, build, environment, and OS?
>
> On Windows, when I encounter a problem such as this, I try it under
> every different compiler environment.  MSVC, Cygwin, MinGW with
> Command Prompt only, MinGW with MSYS.  If any 1 of 'em works, then
> probably what means is, the guy who wrote the FindOpenGL or whatever
> was using that platform and not your platform.  So there just hasn't
> been enough testing on the other platforms.
>
>
> Cheers,
> Brandon Van Every
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071031/05716c0f/attachment.html


More information about the CMake mailing list