I am sure that many people can manage without help, but so far I have not
succeeded in compiling a single MathGL program under Windows. I have installed
the PGN and GSL executables from the GNU repository, tried with several
compilers, with several MathGL versions, with source and with DLLs, but no
luck.
I also followed the suggestion on the FAQ page to try CMake, but it complains
that there are many things not installed, when in fact they are in my system.
Could anyone please provide a simple walk-through on how to compile
successfully MathGL from scratch? Say, to make a simple program that shows a
plot on screen. Because I didn't manage at all, and believe me, I have tried.
Ideally, I'd love to know how to make it work under Visual Studio C++, but I'd
settle for gcc or any other option that runs under Windows.
Thanks a lot,
Stig
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I guess I need to provide a few more details on what didn't work so far. I
tried with VC++ 2008, but there are no .lib files, only .a, so I actually went
ahead and produced them myself from the .dll files. However, although the
problem compiles correctly in that case, it fails while linking, as there are
many referenced functions that are not found inside the dlls.
I also tried with the source code, with tons of errors at the compilation
stage. The next step was gcc, also unsuccessful. And CMake GUI complains that
there are some missing libraries, like PNG, that are in fact installed in my
computer, and I couldn't find any variables to specify their location
manually.
So this is how things are, any help would be really appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It turns out that there in one "undocumented" package that I didn't find on
that page and it was needed for the compilation. Can't recall the name off the
top of my head. However, if one installs the LGPL version, then it's not
needed any longer, and it compiles correctly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am sure that many people can manage without help, but so far I have not
succeeded in compiling a single MathGL program under Windows. I have installed
the PGN and GSL executables from the GNU repository, tried with several
compilers, with several MathGL versions, with source and with DLLs, but no
luck.
I also followed the suggestion on the FAQ page to try CMake, but it complains
that there are many things not installed, when in fact they are in my system.
Could anyone please provide a simple walk-through on how to compile
successfully MathGL from scratch? Say, to make a simple program that shows a
plot on screen. Because I didn't manage at all, and believe me, I have tried.
Ideally, I'd love to know how to make it work under Visual Studio C++, but I'd
settle for gcc or any other option that runs under Windows.
Thanks a lot,
Stig
I guess I need to provide a few more details on what didn't work so far. I
tried with VC++ 2008, but there are no .lib files, only .a, so I actually went
ahead and produced them myself from the .dll files. However, although the
problem compiles correctly in that case, it fails while linking, as there are
many referenced functions that are not found inside the dlls.
I also tried with the source code, with tons of errors at the compilation
stage. The next step was gcc, also unsuccessful. And CMake GUI complains that
there are some missing libraries, like PNG, that are in fact installed in my
computer, and I couldn't find any variables to specify their location
manually.
So this is how things are, any help would be really appreciated.
Hi Sig,
I also try to go on with Window7 and MathGL ... find the PNG, GSL, ZLIB ...
and so on here:
http://gnuwin32.sourceforge.net/packages.html
All the best,
Walter
Thank you Walter,
It turns out that there in one "undocumented" package that I didn't find on
that page and it was needed for the compilation. Can't recall the name off the
top of my head. However, if one installs the LGPL version, then it's not
needed any longer, and it compiles correctly.