Menu

How to statically build MathGL with Qt

Anonymous
2015-05-26
2015-09-27
  • Anonymous

    Anonymous - 2015-05-26

    First of all, I'd like to thank for the nice library.
    My question is how to statically build MathGL with Qt. I built Qt-4.8.6 statically, of course, without WebKit. But I cannot switch off WebKit support using cmake-gui

    What should I do? I'm intrested both Linux and Windows (MinGW with MSYS) solutions

    Thanks in advance

     
  • Alexey Balakin

    Alexey Balakin - 2015-05-26

    Just comment in main file CMakeLists.txt the line

    add_subdirectory( json )
    
     
  • Anonymous

    Anonymous - 2015-05-26

    Thank you for quick answer

    cmake-gui still complains about missing: QT_QTWEBKIT_LIBRARY

    In particular, I cannot exclude Phonon and Arthur stuff
    QT_ARTHURPLUGIN_LIBRARY
    QT_PHONON_LIBRARY

    Another question, is it so critical to omit WebKit?

    Thanks in advance

     
  • Dmitry Kulagin

    Dmitry Kulagin - 2015-05-26

    Set in cmake-gui "Ungrouped Entries/enable-json-sample" to off.
    This will disable QtNetwork and QtWebKit.
    On my computer cmake also can't find QT_ARTHURPLUGIN_LIBRARY
    QT_PHONON_LIBRARY, but MathGL is building and working.

     
  • Anonymous

    Anonymous - 2015-05-27

    Thank you very much
    I built the subject with qt4, png and zlib enabled, without openmp

    Then, when I tried to build my test example, I've got the linker message
    undefined reference to '_imp___ZTV8mglDataA'

    Then I put the next string in my source file

    define MGL_STATIC_DEFINE

    but now I have
    undefined reference to 'mgl_data_save'

    Of cource, I link against -lmgl -lmgl-qt, statically (-static)

    What should I do now? I'd like to avoid using dlls

    Thanks in advance

     

Anonymous
Anonymous

Add attachments
Cancel