CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Paraview and Qt installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2010, 22:57
Default Paraview and Qt installation
  #1
New Member
 
maverick
Join Date: Feb 2010
Posts: 9
Rep Power: 16
maverick is on a distinguished road
Hi everbody,
am trying to install open foam 1.6

i have installed open foam without installing Qt
after that i have dowloaded Qt 4.3.5 from link given in open foam site
i have kept the Qt in third party directory untarred it and ran ./qmake and the installation was complete.

Now when i run ./makeParaView -qmake /home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5 (the path where qmake is present) am getting the following error

cannot find qmake either at $QMAKE_PATH or in current $PATH

can somebody guide me on this
thanks
maverick is offline   Reply With Quote

Old   February 2, 2010, 03:28
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by maverick View Post
Now when i run ./makeParaView -qmake /home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5 (the path where qmake is present) am getting the following error

cannot find qmake either at $QMAKE_PATH or in current $PATH

can somebody guide me on this
Did you try specifying the full path to the qmake executable?
eg,

Code:
./makeParaView -qmake /home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/qmake
olesen is offline   Reply With Quote

Old   February 2, 2010, 03:35
Default
  #3
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi,

I guess you need to add qmake to your environment variables, i.e. add

Code:
PATH=/home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5:$PATH
export PATH
to .bashrc in your home directory (assuming you have a bash shell). That is, if the executable qmake actually lives in /home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5 of course.

Hope this helps.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 2, 2010, 05:02
Default
  #4
New Member
 
maverick
Join Date: Feb 2010
Posts: 9
Rep Power: 16
maverick is on a distinguished road
Quote:
Originally Posted by olesen View Post
Did you try specifying the full path to the qmake executable?

[/CODE]
i get the following mesage when i add qmake

specified QMAKE_PATH does not exist on this machine
QMAKE_PATH=home/xxxx/OpenFOAM/ThirdParty-1.6/qmake leaving unspecifed
*** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH


Quote:
Originally Posted by gwierink View Post
Code:
PATH=/home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5:$PATH
export PATH
to .bashrc in your home directory (assuming you have a bash shell). That is, if the executable qmake actually lives in /home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5 of course.
I have added the code

PATH=/home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5:$PATH
to .bashrc file in home directory and then updated the envirnmental variables by

. $HOME/.bashrc
still the same problem exists

and qmake directory is available in the qt-x11-opensouce-src-4.3.5 directory

also when i try finding whether Qt is installed by usind qmake --version , its not able to detect the version instead i get the packages list

have i installed Qt

am kinda new to linux , donno wat to do.

thanks both of u for reply
maverick is offline   Reply With Quote

Old   February 2, 2010, 05:29
Default
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by maverick View Post
i get the following mesage when i add qmake

specified QMAKE_PATH does not exist on this machine
QMAKE_PATH=home/xxxx/OpenFOAM/ThirdParty-1.6/qmake leaving unspecifed
*** Error: cannot find qmake either at $QMAKE_PATH or in current $PATH
This message has "home/xxxx/ and not "/home/xxxx/", did you forget the slash?


Quote:
Originally Posted by maverick View Post
PATH=/home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5:$PATH
to .bashrc file in home directory and then updated the envirnmental variables by

. $HOME/.bashrc
still the same problem exists

and qmake directory is available in the qt-x11-opensouce-src-4.3.5 directory
What? A qmake directory is now available? This is getting really confusing.

First make sure you can actually use qmake. According to your information qmake is found somewhere under the qt-x11-opensource-src-4.3.5 directory which is located somewhere on your system, or perhaps it is a qmake directory (presumably with a qmake executable in it).

Make sure you can actually call qmake. For example,
Code:
/SOME/PATH/THAT/YOU/KNOW/AND/WE/CANNOT/qmake -v
On my system,
Code:
/usr/bin/qmake -v
 
QMake version 2.01a
Using Qt version 4.5.3 in /usr/lib64
Once you have this, you can either add "/SOME/PATH/THAT/YOU/KNOW/AND/WE/CANNOT" to your path, or use makeParaView with
Code:
-qmake /SOME/PATH/THAT/YOU/KNOW/AND/WE/CANNOT/qmake
olesen is offline   Reply With Quote

Old   February 2, 2010, 06:57
Default
  #6
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Quote:
I have added the code

PATH=/home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5:$PATH
to .bashrc file in home directory and then updated the envirnmental variables by

. $HOME/.bashrc
still the same problem exists
And (besides having the right path), did you add also
Code:
export PATH
after
Code:
PATH=/home/xxxx/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5:$PATH
?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 2, 2010, 07:07
Default
  #7
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by gwierink View Post
And (besides having the right path), did you add also
Code:
export PATH
after ...
This shouldn't be required since the PATH is normally exported anyhow, which can be verified by the output of 'export' (without any arguments).
Unless something is really weird on the system, you should see "declare -x PATH=....", which shows that PATH is indeed exported.
olesen is offline   Reply With Quote

Old   February 2, 2010, 07:29
Default
  #8
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Quote:
This shouldn't be required since the PATH is normally exported anyhow, which can be verified by the output of 'export' (without any arguments).
Unless something is really weird on the system, you should see "declare -x PATH=....", which shows that PATH is indeed exported.
Thanks, Mark, didn't know
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 2, 2010, 09:51
Default
  #9
New Member
 
maverick
Join Date: Feb 2010
Posts: 9
Rep Power: 16
maverick is on a distinguished road
[QUOTE=olesen;244542]This message has "home/xxxx/ and not "/home/xxxx/", did you forget the slash?

I have not forgotten the slash and i have included export PATH


What? A qmake directory is now available? This is getting really confusing.

qmake directory is available in home/usr/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5 directory.it contains lots of files with .o extension.

i went in the qt-x11 directory where qmake is available and when i typed qmake -v, i get this

* qt3-dev-tools ( You will have to enable component called 'main' )
* qt4-qmake ( You will have to enable component called 'main' )
Try : sudo apt-get install <selected package>
qmake: command not found


should i reinstall qt again, how do i uninstall it, will it solve the problem
maverick is offline   Reply With Quote

Old   February 3, 2010, 03:48
Default
  #10
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Well, it is becoming a bit unclear to me now what is going on.
First of all, what linux distribution are you using? This is important because you may need to install different packages on which Qt depends (or at least the compilation of Qt). If I were you, I would start installing Qt from scratch. Just make a folder containing the qt-x11-opensource-src-4.3.5.tar.gz file and untar it. Then, configure it ("./configure"), make it ("make" or "gmake", depending on the system), and install it (as root, "make install" or "gmake install", and log out of root again). And last but not least, put the right path in .bashrc.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 3, 2010, 09:45
Default
  #11
New Member
 
maverick
Join Date: Feb 2010
Posts: 9
Rep Power: 16
maverick is on a distinguished road
am using ubuntu 9.10
i will tyr it
thanks a lot
maverick is offline   Reply With Quote

Old   February 3, 2010, 09:47
Default
  #12
New Member
 
maverick
Join Date: Feb 2010
Posts: 9
Rep Power: 16
maverick is on a distinguished road
am using ubuntu 9.10
iwill try it
thanks a lot
maverick is offline   Reply With Quote

Old   February 3, 2010, 10:14
Default
  #13
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Great, there is a quite extensive "cookbook" discussion for installing OF in Ubuntu in this thread. Have a good one!
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 7, 2010, 08:29
Default
  #14
New Member
 
maverick
Join Date: Feb 2010
Posts: 9
Rep Power: 16
maverick is on a distinguished road
hi i was able to install paraview
i used the following code

Code:
sudo apt-get install qt4
sudo apt-get install libqt4-dev
and then i installed paraview and pv3foamreader in the way given in readme file

thanks both of u for your help
i hope working in openfoam will be a pleasant experience for me
regards
maverick is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 18:20.