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] OpenCSG again


From: René Berber
Subject: Re: [Mingw-cross-env-list] OpenCSG again
Date: Mon, 19 Sep 2011 19:39:40 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0

On 9/19 Sep 2011 23:39:27, Tony Theodore wrote:

> It seems freeglut is the culprit here, it wasn't being built
> statically in the first place. I've added a test program for both this
> and glew:

Maybe so, but the real problem was really a user error, Brad has the
wrong order of libraries to link (Windows is different in this than
Linux, order is important), in example.pro:

LIBS        += -lglut -L../lib -lopencsg

is wrong, I changed it to:

LIBS        += -L../lib -lopencsg -lGLEW -lglut

still no go, Qt adds the dependencies before...

> http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/df85f59a791d
> http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/cad00a9e1f6d
> 
> Fortunately, glew has a pkg-config entry, but something like this:
> 
> -lglut -lglu32 -lopengl32 -lwinmm -lgdi32 -mwindows -DFREEGLUT_STATIC
> 
> from the test program works for freeglut.

So now with:

LIBS        += -L../lib -lopencsg -lGLEW -lglut -lglu32 -lopengl32
-lwinmm -lgdi32

it works!  A nice rotating solid on Windows (several, chosen with
right-mouse menu.)

Actually if it really works is left for an expert, Brad?  Concave shape
with CSG algorithms looks different (not solid) than Goldfeather.
-- 
René Berber




reply via email to

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