mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] cannot find -lGL


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] cannot find -lGL
Date: Tue, 08 Dec 2015 19:03:13 +1100

> On 8 Dec 2015, at 18:43, Christian Felter <address@hidden> wrote:
> 
> In the meantime I found another solution to my problem: I simply removed the 
> reference to GL and GLU. Here are the details:
> 
> Building the application on Linux for Linux with GCC I did this:
> 
> 1) qmake -project
> 2) Open <my-project>.pro and append the lines:
> QT += opengl
> LIBS += -lGL -lGLU
> 3) qmake <my-project>.pro
> 4) make
> 
> Without step 2) I had unresolved symbols.
> 
> Using MXE I was able to compile for Windows by following these steps
> 
> 1) qmake -project
> 2) Open <my-project>.pro and append the line:
> QT += opengl
> 3) qmake <my-project>.pro
> 4) make
> 
> So I simply removed the explicit reference to GL and GLU. I guess MXE somehow 
> was smart enough to link with opengl32 and glu32 by itself.

Good to hear. `qmake` is very good at finding things with minimal 
configuration. Another thing you can do in your *.pro file is:

  !win32:LIBS += -lGL -lGLU

so that `qmake` will skip those libs for Windows builds.

Cheers,

Tony





reply via email to

[Prev in Thread] Current Thread [Next in Thread]