|
From: | Brad Pitcher |
Subject: | Re: [Mingw-cross-env-list] OpenCSG again |
Date: | Mon, 19 Sep 2011 18:48:12 -0700 |
cmake ... -DCMAKE_TOOLCHAIN_FILE=/where mingw-cross-env is installed/usr/i686-pc-mingw32/share/cmake/mingw-cross-env-conf.cmakeThanks again guys,
Is that enough to make a static build, or is there anything else that needs to be modified.
Also, are those *_STATIC definitions automatically available for use?
In other words, if I just statically build libCGAL and install the *.a files, can I then add a DEFINES += CGAL_STATIC in order
to use the library in another program? Or is there something else that needs to be done first?
On 19 September 2011 20:11, René Berber <address@hidden> wrote:It seems freeglut is the culprit here, it wasn't being built
> On 18 Sep 2011 15:58:57, Brad Pitcher wrote:
> [snip]
>> release/main.o:main.cpp:(.text+0x29f): undefined reference to
>> address@hidden'
> [snip]
>
> That means the linker is looking for dynamic libraries.
>
>> I hope this is a really obvious stupid mistake.
>
> No, the problem is that OpenCSG is not configured to build with static
> libraries.
statically in the first place. I've added a test program for both this
and glew:
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.
Cheers,
Tony
[Prev in Thread] | Current Thread | [Next in Thread] |