[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: |
René Berber |
Subject: |
Re: [Mingw-cross-env-list] Fwd: Re: Compiling OpenCSG |
Date: |
Thu, 26 May 2011 10:11:25 -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 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.
[snip]
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