CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   enGrid (http://www.cfd-online.com/Forums/engrid/)
-   -   Installation issues on Ubuntu 13.10 (http://www.cfd-online.com/Forums/engrid/129891-installation-issues-ubuntu-13-10-a.html)

Jeggi February 15, 2014 11:15

Installation issues on Ubuntu 13.10
 
Hi
I am currently having issues installing enGrid on Ubuntu 13.10. The error report I am getting is:

In file included from ui_guimainwindow.h:37:0,
from guimainwindow.h:64,
from egvtkobject.cpp:24:
/usr/include/vtk-5.8/QVTKWidget.h:40:25: fatal error: QtGui/QWidget: No such file or directory
#include <QtGui/QWidget>
^
compilation terminated.
make[1]: *** [release/egvtkobject.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [release/createvolumemesh.o] Error 1
make[1]: *** [release/cgnswriter.o] Error 1
make[1]: *** [release/deletepickedcell.o] Error 1
make[1]: Leaving directory `/home/s093203/Software/engrid/src/libengrid'
make: *** [release] Error 2
cd netgen_svn/ && ( test -e Makefile.ng || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/s093203/Software/engrid/src/netgen_svn/ng.pro -o Makefile.ng ) && make -f Makefile.ng
make[1]: Entering directory `/home/s093203/Software/engrid/src/netgen_svn'
make -f Makefile.ng.Release
make[2]: Entering directory `/home/s093203/Software/engrid/src/netgen_svn'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory `/home/s093203/Software/engrid/src/netgen_svn'
make[1]: Leaving directory `/home/s093203/Software/engrid/src/netgen_svn'
cd libengrid/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/s093203/Software/engrid/src/libengrid/libengrid.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory `/home/s093203/Software/engrid/src/libengrid'
make -f Makefile.Release
make[2]: Entering directory `/home/s093203/Software/engrid/src/libengrid'
g++ -c -m64 -pipe -Wall -Wno-deprecated -fno-omit-frame-pointer -g -O2 -D_REENTRANT -Wall -W -fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I.. -I./libengrid-build -I../netgen_svn/netgen-mesher/netgen/nglib -I../netgen_svn/netgen-mesher/netgen/libsrc/general -I/usr/include/vtk-5.8 -I/usr/include/qt5 -I/usr/include/qt5/QtOpenGL -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Irelease -I. -o release/cgnswriter.o cgnswriter.cpp
In file included from ui_guimainwindow.h:37:0,
from guimainwindow.h:64,
from cgnswriter.cpp:26:
/usr/include/vtk-5.8/QVTKWidget.h:40:25: fatal error: QtGui/QWidget: No such file or directory
#include <QtGui/QWidget>
^

I am quite new with Ubuntu, but as I see it it is missing some files in vtk-5.8, but even though I try reinstalling vtk, the same error shows. Has anyone else had issues with installing enGrid on Ubuntu 13.10 ?
I've the installation methods on https://github.com/enGits/engrid/wik...D-Installation without any luck.

- Jeggi

wyldckat February 15, 2014 11:44

Greetings Jeggi and welcome to the forum!

Have you tried following these instructions: https://github.com/enGits/engrid/wik..._Ubuntu_system - namely the ones from section "Building enGrid on an Ubuntu system"?
Because the error you've gotten indicates that the development files for Qt have not been installed.

For example, if you run:
Code:

qmake --version
What does it give you?

Best regards,
Bruno

Jeggi February 15, 2014 11:54

Hi Bruno, thanks for the quick answer !
I've tried following those instructions without any result.
When I run Qumake --version I get
Code:

QMake version 3.0
Using Qt version 5.0.2 in /usr/lib/x86_64-linux-gnu

- Jeggi

wyldckat February 15, 2014 12:19

Hi Jeggi,

Qt 5.0.2 is not supported. You need to install Qt 4.8.4.
You can check if you have both versions installed, by running:
Code:

qmake-qt4 --version
qmake-qt5 --version

If you do have qmake-qt4, then before step #7, run:
Code:

sudo apt-get install libqt4-dev
make clean

Then continue from step #7.

Best regards,
Bruno

Jeggi February 15, 2014 12:35

Hi again Bruno

Running
"qmake-qt4 --version"
Gives
Using Qt version 4.8.4 in /usr/lib/x86_64-linux-gnu
and running
qmake-qt5 --version
gives the message
"Command not found"

When I run
"sudo apt-get install libqt4-dev"
I get
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt4-dev is already the newest version.


and when I run
make clean
I get
make: *** No rule to make target `clean'. Stop

When I then run
qmake
make -j 4

after running step 1-6, I get the same error as in the first post.

Do you have any other suggestions on what I should do ?

- Jógvan

wyldckat February 15, 2014 16:10

Hi Jógvan,

I made new installation of Ubuntu 13.10 64bit in a virtual machine, updated the packages to the latest for 13.10 and then installed the packages specified in the wiki page, along with installing the Qt5 files and respective development files.
The following steps, starting from where you are, should work:
  1. Go into the folder "engrid/src".
  2. Run:
    Code:

    make clean
    rm Makefile* libengrid/Makefile* netgen_svn/Makefile*
    source scripts/setup_pathes.bash
    export PATH=$PWD/scripts:$PATH

  3. Continue following the instructions from the step #7 from here: https://github.com/enGits/engrid/wik..._Ubuntu_system
Let us know if this fixes the problem!

Best regards,
Bruno

Jeggi February 15, 2014 17:06

You are a genius !
It works perfectly. Thanks a lot for the help :)

Regards
Jógvan


All times are GMT -4. The time now is 04:43.