Menu

How to correctly reinstall version 2

Help
Anonymous
2012-06-18
2012-10-16
  • Anonymous

    Anonymous - 2012-06-18

    Hello,

    Until now I was gratefuly using mgl version 1 and today I installed version 2
    on linux using the instructions:

    cmake .
    cmake .
    make
    make install

    but then I realized that I forgot to enable-qt. I tried to make uninstall, in
    order to reinstall the library, but with no success. Then I just did:

    cmake enable-all .
    cmake enable-all .
    make
    make install

    The instalation finished, but there is no mgl/qt.h file. If I understand this
    correctly, I am supposed to use mgl/qt.h instead of mgl/mgl_qt.h which is from
    version 1. How can I make everything right again?

    I am not familiar with linux very much. I use synaptic package manager to
    install libraries, but I cannot find version 2 using synaptic package manager,
    so I decided to install it on my own and now I messed it up :(

    Please help. Any advice is appreciated.

    Martin

     
  • Alexey Balakin

    Alexey Balakin - 2012-06-19

    Dear Martin,

    Firstly, I recommend to use cmake-gui for setting non-standard option of
    MathGL.

    However, you can still use console mode as you wish, but please read cmake
    manual (or at least 'man cmake'). In yours case you need to use something like
    this

    cmake -D enable-all=1 .
    

    But possible you may require to setup paths for additional libraries too.

    Alexey

     
  • Anonymous

    Anonymous - 2012-06-20

    Thank you Alexey! I tried it again and this time it is correct. It was my
    mistake, the header was "mgl2/qt.h" and not "mgl/qt.h"

    Martin

     

Log in to post a comment.