[Top][All Lists]

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

Re: [Mingw-cross-env-list] Fwd: Re: Compiling OpenCSG

From: Brad Pitcher
Subject: Re: [Mingw-cross-env-list] Fwd: Re: Compiling OpenCSG
Date: Thu, 26 May 2011 17:13:10 -0700

Wow, all it took was one word. You are a wizard. Thank you!

2011/5/26 René Berber <address@hidden>
On 5/26/2011 9:10 AM, Brad Pitcher wrote:

> So what should I use to get a .lib file? I just want to test to see if
> it works. Actually, I probably do want a .a since I will be using this
> as a dependency to cross-compile other projects? My main goal is to
> cross-compile openscadpy (https://github.com/hmeyer/openscadpy), which
> has a few dependencies.

Forget about .lib, those are for the Microsoft compiler... and even if
OpenCSG is made to be built with Microsoft tools and the non free Qt,
try this:

1. cd OpenCSG-1.3.1/src and edit the src.pro file's 6th line to this:
       CONFIG                += staticlib opengl warn_on release
2. run i686-pc-mingw32-qmake src.pro
3. run make release (unless you want the debug version, then use make or
make debug -- which is the same thing)
4. run ls -al ../lib

src $ ls -al ../lib
total 200
drwxr-xr-x  2 rberber rberber   4096 May 26 10:00 ./
drwxr-xr-x 10 rberber rberber   4096 May 26 09:39 ../
-rw-r--r--  1 rberber rberber 191704 May 26 10:00 libopencsg.a

Notice I didn't use your define (-DGLEW_STATIC) or added any libraries.
 Those are needed for creating the dynamic library (.dll not .lib) and
any executable.
René Berber

reply via email to

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