Netglub

Really Open Source Information Gathering

How to compile netglub GUI on GNU linux

5  334 Comments »

    Netglub GUI (also called qng) can be compiled on windows, GNU linux and mac os X distributions, however, you will find here how to install it on linux ones

    Step 1 : Prerequisites

    The sources are not available yet

    Mandatory Dependencies and package needed

    To compile Netglub qng, it is necessary to manually install the following packages :

    • build-essential
    • zlib1g-dev
    sudo aptitude install build-essential zlib1g-dev

    Step 2 : Qt framework install

    Netglub qng depend on Qt framework (version 4.6 at least).

    Actually, the latest release of Qt framework is the 4.6.3. The packages available on Ubuntu official repository being too old, two solutions may be used :

    First Solution: Install Qt SDK.

    You can download the 64bit version of Qt SDK at http://qt.nokia.com/downloads/sdk-linux-x11-64bit-cpp or download it from our local mirror (private link). netglub qng can be used on a 32bit processor too, if you made this choose, you should dowload the Qt SDK 32bit version http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86-opensource-2010.03.bin or dirrectly here (private link)

    The SDK take up more disk space than compiling Qt sources, but it contains a inary version of Qt libraries which avoid a complete compile. Furthermore, the compilation is trivial via graphical wizard.

    wget http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86_64-opensource-2010.03.bin
    chmod +x qt-sdk-linux-x86_64-opensource-2010.03.bin 
    ./qt-sdk-linux-x86_64-opensource-2010.03.bin

    Second solution : Compiling Qt Sources

    the first solution is recomended

    This solution, more laborious, is to download the Qt source (« http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src -4.6.3.tar.gz ») and to make yourself compile it

    Here is a hint :

    sudo aptitude install libxq11-dev libxext-dev 
    tar xf qt-everywhere-opensource-src-4.6.3.tar.gz 
    cd qt-everywhere-opensource-src-4.6.3 cd qt-everywhere-opensource-src-4.6.3
    ./configure -opensource -fast -nomake examples -nomake demos 
    make 
    sudo make install
    to compile Qt in debug mode:

     ./configure -opensource -fast -nomake examples -nomake demos \ -debug -no-separate-debug-info
    Qt chould be now installed

    step 3 : install graphviz

    You can get graphviz by downloading it at : http://www.graphviz.org/
    we are using the 2.26.3 version.

    wget http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.26.3.tar.gz
    tar -xzvf graphviz-2.26.3.tar.gz
    cd graphviz-2.26.3
    ./configure
    make
    sudo make install
    graphviz is now installed

    Step 4 : Compil qng

    now that all the dépendencies are installed, you can compile qng :

    cd (@Netglub location)/trunk/qng
    qmake
    make

    you can now run qng from : ./(@Netglub location)/trunk/qng/bin/unix-debug/netglub

    5  334 Responses

    Bonjour,
    Et quel est censé etre le parametrage du client graphique ensuite ? l’url demandé correspond à quelque chose à configurer autre part ?

  • Le paramétrage du client graphique consiste à renseigner l’url de votre « master » netglub. Pour une installation en local sur le même poste que l’IHM, c’est http://localhost:8080/RPC2 . Bien entendu il faut que ce « master » soit compilé, installé et démarré (de même pour l’un de ses « slaves »).

  • Merci pour votre réponse.
    Pourquoi il y a t’il une limite à 50 transforms par jour actuellement ? Comment passer outre ?

  • Hey, i tried to compile on Debian Squeeze but i got a bunch of error messages, like this:

    You are here: /home/mxs/install/netglub-1.0/qng

    mxs@pad: make
    g++ -c -pipe -g -D_REENTRANT -D_Debug -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_COREclude/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I. -Iph.o src/graph.cpp
    In file included from src/graphview.h:29,
    from src/graph.cpp:23:
    src/layouts/abstractlayout.h:26:26: error: graphviz/gvc.h: No such file or directory
    In file included from src/graphview.h:29,
    from src/graph.cpp:23:
    src/layouts/abstractlayout.h:52: error: ISO C++ forbids declaration of ‘Agnode_t’ with no type
    src/layouts/abstractlayout.h:52: error: expected ‘;’ before ‘*’ token
    In file included from src/graphview.h:29,
    from src/graph.cpp:23:
    src/layouts/abstractlayout.h:112: error: ISO C++ forbids declaration of ‘Agraph_t’ with no type
    src/layouts/abstractlayout.h:112: error: expected ‘;’ before ‘*’ token
    src/layouts/abstractlayout.h:113: error: ISO C++ forbids declaration of ‘GVC_t’ with no type
    src/layouts/abstractlayout.h:113: error: expected ‘;’ before ‘*’ token
    src/layouts/abstractlayout.h:115: error: ISO C++ forbids declaration of ‘Agnode_t’ with no type
    src/layouts/abstractlayout.h:115: error: expected ‘;’ before ‘*’ token
    make: *** [build/build-unix/graph.o] Error 1

  • Hello,
    I compiled with qt 4.7.0 and when I’m trying to connect to http://localhost:8080/RPC2 in GUI, it just freezes and nothing else happened. There are no errors in the logs. How to get this work?
    Thanks.

  • Why is the client asking me for a serial? I’m getting an error saying that the serial was not valid
    QSslCertificate( « 3″ , « 6″ , « VOryOmF2Tt7DdU8Y6wm6UA== » , « Diateam Corp. » , « Diateam Corp. » , QMap() , QDateTime(« Thu Feb 4 11:01:12 2010″) , QDateTime(« Fri Feb 4 11:01:12 2011″) )

  • [...] only references the 32-bit version of the Qt SDK. You might want to take a look at the Netglub site for a link to the 64-bit edition of the Qt [...]

  • Same. « Failed to connect: [-32300] Connection refused (or timed out) (Compromised URL)

  • @mxs this probably because you didn’t compile graphviz from sources, but via an apt-get install graphviz. Please try again with source compilation. I had the same error this morning.

  • step 3 : install graphiz
    Correct it please, graphviz!

  • Leave a Reply

    *