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

Trouble installing EnGrid on Ubuntu 12.04
  • RocheDEM July 2012

    Hi,

    I tried to install engrid using the build.bash from git. The script appears to run properly and install the program. Then I use engrid/setup_generic.bash, which appears to function correctly (I have the EnGrid icon in my start menu).

    When I try to run Engrid from the start menu or by typing engrid in a terminal nothing happens, here is the error message that I get;

    laurie@Anzac:~$ engrid
    /home/laurie/Documents/engrid/run.bash: line 26: /home/laurie/Documents/engrid/src/engrid: No such file or directory

    Please help me to understand what has gone wrong and what I need to do to fix the install.

    Thank you,

    Kirk
  • wyldckat July 2012
    Greetings Kirk,

    It looks like things did not go as well as you had expected.
    Have you checked if the file "/home/laurie/Documents/engrid/src/engrid" exists or not?
    ls -l /home/laurie/Documents/engrid/src/engrid

    Additionally, what was the last message(s) you saw for you to say that the build.bash script installed the program?

    Best regards,
    Bruno
  • RocheDEM July 2012
    Hi Bruno,

    There are 4files titled engrid in the src directory;

    engrid.kdevelop
    engrid.pro
    engrid.pro.app
    engridFoam

    Here are the last few message lines in the terminal;

    In file included from egvtkobject.h:30:0,
    from operation.h:29,
    from iterator.h:28,
    from cellneighbouriterator.h:28,
    from cellneighbouriterator.cpp:23:
    engrid.h:30:29: fatal error: vtkSmartPointer.h: No such file or directory
    compilation terminated.
    In file included from egvtkobject.h:30:0,
    from operation.h:29,
    from iooperation.h:28,
    from cgnswriter.h:28,
    from cgnswriter.cpp:23:
    engrid.h:30:29: fatal error: vtkSmartPointer.h: No such file or directoryIn file included from egvtkobject.h:30:0,
    from operation.h:29,
    from iterator.h:28,
    from layeriterator.h:28,
    from celllayeriterator.h:28,
    from celllayeriterator.cpp:23:
    engrid.h:30:29: fatal error: vtkSmartPointer.h: No such file or directory

    compilation terminated.
    compilation terminated.
    In file included from egvtkobject.h:30:0,
    from operation.h:29,
    from iterator.h:28,
    from cellneighbouriterator.h:28,
    from correctsurfaceorientation.h:28,
    from correctsurfaceorientation.cpp:23:
    engrid.h:30:29: fatal error: vtkSmartPointer.h: No such file or directory
    compilation terminated.
    make[2]: *** [release/cellneighbouriterator.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: *** [release/cgnswriter.o] Error 1
    make[2]: *** [release/celllayeriterator.o] Error 1
    make[2]: *** [release/correctsurfaceorientation.o] Error 1
    make[2]: Leaving directory `/home/laurie/Documents/engrid/src/libengrid'
    make[1]: *** [release] Error 2
    make[1]: Leaving directory `/home/laurie/Documents/engrid/src/libengrid'
    make: *** [sub-libengrid-libengrid-pro-make_default-ordered] Error 2

    You can start enGrid by typing: /home/laurie/Documents/engrid/run.bash (as non-root user)
    If you want to install a link in '/usr/bin' as well as an entry in the
    desktop menus, please execute 'engrid/setup_generic.bash'

    Now I can see that there was a fatal error message, something to do with vtkSmartPointer.h. Is it possible that this is the reason my install was corrupt?

    Kirk
  • wyldckat July 2012
    Hi Kirk,

    Didn't the build.bash script ask for permissions to install packages, right at the start? Because this error is due to missing the VTK development files...

    Install the packages listed here on step #2: https://github.com/enGits/engrid/wiki/Installation#wiki-Building_enGrid_on_an_Ubuntu_system
    You can then skip to step #4 and follow instructions from there!

    Best regards,
    Bruno
  • RocheDEM July 2012
    Thanks Bruno,

    I got it installed properly, just went through the damper tutorial, everything work well.

    Kirk
  • moles August 2012
    I'm having the same problem and have tried from the start a couple of times in a fresh installation of various versions of ubuntu (12.04, 11.04 etc) getting the same issue each time vtkSmartPointer.h is missing. I am running the sudo apt-get install libvtk5-qt4-dev line and it goes through with no errors...
  • wyldckat August 2012
    Greetings moles,

    Which specific instructions are you following?
    Is it this one: https://github.com/enGits/engrid/wiki/Installation#wiki-Building_enGrid_on_an_Ubuntu_system - section "Building enGrid on an Ubuntu system"?

    Best regards,
    Bruno
  • moles September 2012
    Hi Bruno,

    Thanks for your reply, I was following those exact instructions. I followed every step on a fresh install of Ubuntu 12.04 and 11.04. It is running on a vmware virtual machine if that makes any difference and the first apparent error is the one as Kirk found above but reinstalling the vtk package has no effect...

    Regards,

    Nick
  • wyldckat September 2012
    Hi Nick,

    I'm guessing that you ran the following command as-is:
    source scripts/setup_pathes.bash ubuntu

    The instructions were left generic enough for people to notice that it gives an error and demands that the proper version is provided ;)
    For example, for Ubuntu 12.04 you should run:
    source scripts/setup_pathes.bash ubuntu-12.04

    To confirm if this command worked properly, run:
    echo $VTKINCDIR
    echo $VTKLIBDIR

    These should output on 12.04:
    /usr/include/vtk-5.8/
    /usr/lib


    edit: By the way, the page has been renamed. The new link is: https://github.com/enGits/engrid/wiki/%5BenGrid-1.3%5D-Installation#wiki-Building_enGrid_on_an_Ubuntu_system

    Best regards,
    Bruno
  • moles September 2012
    Thank you very much Bruno that was the issue. I appreciate the spoon feeding! I'm a noob to this system if that wasn't obvious already.

    Kind regards,
    Nick