Menu

Need Windows walk-through

Help
2012-01-24
2012-10-16
  • stig kardat

    stig kardat - 2012-01-24

    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

     
  • stig kardat

    stig kardat - 2012-01-25

    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.

     
  • Michael Mechan

    Michael Mechan - 2012-02-23

    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

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.