CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > enGrid

Installation issues on Ubuntu 13.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By Jeggi
  • 1 Post By stephie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2014, 11:15
Default Installation issues on Ubuntu 13.10
  #1
Member
 
Jógvan
Join Date: Feb 2014
Posts: 31
Rep Power: 12
Jeggi is on a distinguished road
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
Jeggi is offline   Reply With Quote

Old   February 15, 2014, 11:44
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   February 15, 2014, 11:54
Default
  #3
Member
 
Jógvan
Join Date: Feb 2014
Posts: 31
Rep Power: 12
Jeggi is on a distinguished road
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
Jeggi is offline   Reply With Quote

Old   February 15, 2014, 12:19
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   February 15, 2014, 12:35
Default
  #5
Member
 
Jógvan
Join Date: Feb 2014
Posts: 31
Rep Power: 12
Jeggi is on a distinguished road
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
Jeggi is offline   Reply With Quote

Old   February 15, 2014, 16:10
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
alp.tiken likes this.

Last edited by wyldckat; February 15, 2014 at 17:11.
wyldckat is offline   Reply With Quote

Old   February 15, 2014, 17:06
Default
  #7
Member
 
Jógvan
Join Date: Feb 2014
Posts: 31
Rep Power: 12
Jeggi is on a distinguished road
You are a genius !
It works perfectly. Thanks a lot for the help

Regards
Jógvan
wyldckat likes this.
Jeggi is offline   Reply With Quote

Old   April 8, 2015, 04:50
Default
  #8
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hello everyone,

I've got a similar problem... I try to install engrid on Ubuntu 14.04 and it doesn't work. I tried all of your hints but there is still the same mistake. Maybe you will find my mistake.

These are the last colums of the command make -j 2

g++ -m64 -Wl,-O1 -o engrid release/main.o release/qrc_engrid.o -L/usr/lib/x86_64-linux-gnu -L/usr/X11R6/lib64 -lm -ltcl8.5 -L./libengrid -lengrid -L./netgen_svn -lng -L/usr/lib -lQVTK -lvtkCommon -lvtkDICOMParser -lvtkexoIIc -lvtkFiltering -lvtkftgl -lvtkGenericFiltering -lvtkGraphics -lvtkHybrid -lvtkImaging -lvtkIO -lvtkRendering -lvtksys -lvtkVolumeRendering -lvtkWidgets -lpthread -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore -lGL
/usr/bin/ld: cannot find -ltcl8.5
collect2: error: ld returned 1 exit status
make[2]: *** [engrid] Fehler 1
make[2]: Verzeichnis »/home/stephanie/engrid/src« wird verlassen
make[1]: *** [release] Fehler 2
make[1]: Verzeichnis »/home/stephanie/engrid/src« wird verlassen
make: *** [sub-engrid-pro-app-make_default-ordered] Fehler 2

if I ask for the version, I got this answer:

QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu

It would be wonderful if anyone might find the solution for my problem.

Thank you so much and nice regards,

Stephie
stephie is offline   Reply With Quote

Old   April 8, 2015, 05:38
Default
  #9
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Okay, I found my mistake.. I had to install ltcl8.5 and now it works
wyldckat likes this.
stephie is offline   Reply With Quote

Old   April 20, 2015, 10:44
Default
  #10
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by stephie View Post
Okay, I found my mistake.. I had to install ltcl8.5 and now it works
Hi, I am getting the same error as you do. Could you kindly tell me how to install ltcl8.5?

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   April 20, 2015, 17:12
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by KateEisenhower View Post
I am getting the same error as you do. Could you kindly tell me how to install ltcl8.5?
Quick answer:
Code:
sudo apt-get install tcl8.5 tcl8.5-dev
At least in Ubuntu, although I haven't double-checked if it works as well in Ubuntu 14.04 and 14.10.
wyldckat is offline   Reply With Quote

Old   April 21, 2015, 03:02
Default
  #12
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer:
Code:
sudo apt-get install tcl8.5 tcl8.5-dev
At least in Ubuntu, although I haven't double-checked if it works as well in Ubuntu 14.04 and 14.10.
Thank you, it works now (Ubuntu 14.04)!
KateEisenhower is offline   Reply With Quote

Old   February 7, 2017, 18:36
Default
  #13
New Member
 
Join Date: May 2016
Posts: 25
Rep Power: 9
mgab is on a distinguished road
Hi!
I'm having problems installing enGrid on linux Mint 18.
At first i had the same problem as Jeggi, but it was solved by wyldckat. (Thanks!)

Now after a few minute compiling i have this error:
Code:
/usr/bin/ld: cannot find -lQtOpenGL
collect2: error: ld returned 1 exit status
Makefile.Release:417: recipe for target 'libengrid.so.1.0.0' failed
make[2]: *** [libengrid.so.1.0.0] Error 1
Does anyone know how to solve this?
Thanks!
mgab is offline   Reply With Quote

Old   February 8, 2017, 15:00
Default
  #14
New Member
 
Join Date: May 2016
Posts: 25
Rep Power: 9
mgab is on a distinguished road
I found he solution!
I just needed to install libqt4-opengl-dev
Good to know
mgab is offline   Reply With Quote

Old   July 22, 2023, 07:13
Default cannot install enGrid in Ubuntu 22.04LTS
  #15
New Member
 
Kunal Sharma
Join Date: Oct 2022
Posts: 1
Rep Power: 0
Kunal6996 is on a distinguished road
Dear all,
Special thanks to Bruno!! It made the installtion work a little longer...
Still with the necessary packages and installations...I couldn't install it in my Ubuntu 22.04 LTS system.
Followerd are the steps: (Similar to Github link) https://github.com/enGits/engrid/wik..._Ubuntu_system

1. Downlaoded .zip from github.
2. Extracted in a folder called enGrid.
3. cd src
4. source scripts/setup_pathes.bash
Got this
The script is unable to detect the location of your VTK installation.
Please set the following variables manually
- VTKINCDIR
- VTKLIBDIR
5. So ran "export VTKINCDIR=/usr/local/include/vtk
export VTKLIBDIR=/usr/local/lib
6. scripts/build-nglib.sh
7. qmake
8. make -j 4
Go this error
engrid.h:30:10: fatal error: vtkSmartPointer.h: No such file or directory
30 | #include <vtkSmartPointer.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
make[2]: *** [Makefile.Release:1585: release/cellneighbouriterator.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile.Release:1715:
release/correctsurfaceorientation.o] Error 1
make[2]: *** [Makefile.Release:1564: release/celllayeriterator.o] Error 1
make[2]: Leaving directory '/home/kunal/enGrid/engrid-release-
1.4/src/libengrid'
make[1]: *** [Makefile:42: release] Error 2
make[1]: Leaving directory '/home/kunal/enGrid/engrid-release-
1.4/src/libengrid'
make: *** [Makefile:92: sub-libengrid-libengrid-pro-make_first-ordered]
Error 2
9. To terminate this error I moved to opt/openFoam9 folder to find paraview
5.6 and then copied all the files from there to the enGrid/engrid-release-
1.4/src/libengrid
10. Ran Bruno's code in src folder
make clean
rm Makefile* libengrid/Makefile* netgen_svn/Makefile*
source scripts/setup_pathes.bash
export PATH=$PWD/scripts:$PATH
11. qmake
make -j 4
things started running
12. After many pink and blue ticks it showing the error in between as
egvtkobject.h:631:8: error: ‘class
vtkXMLUnstructuredGridWriter’ has no member named ‘SetInput’; did
you mean ‘GetInput’?
631 | vtu->SetInput(SubGrid);
Possible improvement: I think using older version of paraview files may help!
please suggest
Kunal6996 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 14:08
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 05:56
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 03:16
Installation of OpenFOAM-1.6 on Ubuntu 9.10 marval OpenFOAM Installation 2 March 17, 2010 09:33
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 19:50.