How to install / generate MathGL on Windows7 Qt 4.73 and VS2008

870 views
Skip to first unread message

d...@itec-home.info

unread,
Feb 22, 2012, 4:31:15 AM2/22/12
to MathGL
Hi,

I was looking for math lib which is able to calclate large arrays (e.
g. 4000 x 4000 points), gridding, world coordinates with tringulation
and so on.

I think, that MathGL is able to this!

But my home is not linux at this time, I am sorry, at this time, it is
Windows7 (shame on me) and I want to generate the dlls and libs
compiling the sources. So I need some help.
I hope that's OK?

So here are my quesetions:
- compiler: only MinGW is usable and not MS VS2008 ?
- which environment (variables, path and so on) is on Windoes needed?
- I have installed CMake 2.8.7 is this OK?
- where do I get more information about generating & installing MathGL
- I wan`t to use MathGl on Windows7 with Qt and Qt 4.7.3 has already a
MinGW, can I use that version of MinGW?

So you see, I am a newbe, but I want to learn ...

Thanks a lot
Walter

Alexey Balakin

unread,
Feb 22, 2012, 9:21:25 PM2/22/12
to mat...@googlegroups.com
Dear Walter,

> I was looking for math lib which is able to calclate large arrays (e.
> g. 4000 x 4000 points), gridding, world coordinates with tringulation
> and so on.
>
> I think, that MathGL is able to this!

I hope too.

> But my home is not linux at this time, I am sorry, at this time, it is
> Windows7 (shame on me) and I want to generate the dlls and libs
> compiling the sources. So I need some help.
> I hope that's OK?
>
> So here are my quesetions:
> - compiler: only MinGW is usable and not MS VS2008 ?

Both. I can cite the text from FAQ
(http://mathgl.sourceforge.net/mathgl_en/mathgl_en_6.html#FAQ):

"I use VisualStudio, CBuilder or some other compiler (not MinGW/gcc).
How can I link the MathGL library?
In version 1.10, you can use the header file #include <mgl/mgl_w.h>
which contains wrapper C++ classes, which should be acceptable for any
compiler. Note, that wrapper classes are incompatible with classes in
usual headers and you should use only one of them (wrapper or usual)!
However, I recommend to use the usual headers if you use GNU compilers
(like MinGW).

How I can build MathGL under Windows?
The simplest way is using the combination CMake+MinGW. Also you need
some extra libraries like GSL, PNG, JPEG and so on. All of them can be
found at http://gnuwin32.sourceforge.net/packages.html. After installing
all components, just run CMake configurator and make the MathGL itself."

This is for v.1.*. Version 2.* will be slightly different -- should be
fully compatible with non-GNU compilers even in binary library.

> - which environment (variables, path and so on) is on Windoes needed?

Nothing special. Just be sure that *.dll is placed in PATH.

> - I have installed CMake 2.8.7 is this OK?

Yes. I use 2.8.5 right now.

> - where do I get more information about generating & installing MathGL

It is standard procedure.

> - I wan`t to use MathGl on Windows7 with Qt and Qt 4.7.3 has already a
> MinGW, can I use that version of MinGW?

Yes. In fact I haven't tested it but I don't expect any problems.

All the best,
Alexey Balakin

Reply all
Reply to author
Forward
0 new messages