Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

engrid build
  • admin March 2009
    Hi,
    I am trying to build engrid on 64 bit ubuntu 7.10 (gutsy). I was able to
    build netgen libs. But when I try engrid I am getting an error about not
    finding QVTKWidget.h. Then I found it in my OpenFOAM directory. So I
    added that in the Makefile. But I am still getting
    ---------------------------------------------------------------------------------------------------------------
    In file included from ui_guimainwindow.h:32,
    from guimainwindow.h:45,
    from main.cpp:30:
    /home/osman/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/VTK/GUISupport/Qt/QVTKWidget.h:48:29: error: QVTKWin32Header.h: No such file or directory
    In file included from createvolumemesh.h:31,
    from std_includes.h:33,
    from guimainwindow.h:51,
    from main.cpp:30:
    netgen_cvs/netgen/libsrc/interface/nglib.h:221:7: warning: no newline at
    end of file
    In file included from foamwriter.h:29,
    from std_includes.h:38,
    from guimainwindow.h:51,
    from main.cpp:30:
    polymesh.h:119:7: warning: no newline at end of file
    /home/osman/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/VTK/GUISupport/Qt/QVTKWidget.h:51: error: invalid function declaration
    /home/osman/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/VTK/GUISupport/Qt/QVTKWidget.h:248: error: invalid function declaration
    ui_guimainwindow.h:106: error: ISO C++ forbids declaration of
    ‘QVTKWidget’ with no type
    ui_guimainwindow.h:106: error: expected ‘;’ before ‘*’ token
    ui_guimainwindow.h: In member function ‘void
    Ui_GuiMainWindow::setupUi(QMainWindow*)’:
    ui_guimainwindow.h:405: error: ‘qvtkWidget’ was not declared in this
    scope
    ui_guimainwindow.h:405: error: expected type-specifier before
    ‘QVTKWidget’
    ui_guimainwindow.h:405: error: expected `;' before ‘QVTKWidget’
    optimisation.h: At global scope:
    optimisation.h:31: warning: ‘class Optimisation’ has virtual functions
    but non-virtual destructor
    make: *** [main.o] Error 1
    stargate:/home/osman/enGrid_20081119-bash->
    ----------------------------------------------------------------------------------------------------------------

    I checked that I have vtk5.0 installed. What am I missing??

    Thanks in advance,
    -osman
  • admin March 2009
    Hello,

    You need two things to compile Engrid:
    1. a recent Qt >= 4
    2. VTK with the Qt GUI support compiled
    Compiling Qt is very straightforward normally -- it might, however,
    already be on your system. Make sure you have the development headers
    and utilities installed as well; the package is probably called Qt4-dev
    or something similar. Compiling VTK got a lot easier lately. There are
    good instructions on the VTK website (www.vtk.org). Make sure that you
    enable GUI support in cmake. After that you will have an option to
    enable Qt support. Make sure you define QTDIR and VTKDIR before running
    qmake.

    'hope this helps

    Oliver