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

How to Install OpenFOAM on 64 Ubuntu 9.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2010, 15:09
Default
  #61
vex
New Member
 
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16
vex is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
OK, if it's still the QT_RCC_EXECUTABLE issue... try this:
Code:
which rcc
If it shows something like:
Code:
/usr/bin/rcc
then it is installed.
To which I get
Code:
/home/vex/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/bin/rcc
Quote:
Also, have you tried:
Code:
cd $FOAM_APP/utilities/postProcessing/graphics/PV3FoamReader
./Allwclean
./Allwmake
To which I get:
Code:
[ 8%] Generating qrc_PV3FoamReader.cxx
make[2]: QT_RCC_EXECUTABLE-NOTFOUND: Command not found
make[2]: *** [qrc_PV3FoamReader.cxx] Error 127
make[1]: *** [CMakeFiles/PV3FoamReader.dir/all] Error 2
make: *** [all] Error 2
Quote:
If you've tried all of the above to no success, then lets go to the other possibility: Paraview needs to be (re)built. Do you know if you've already built Paraview that comes with OpenFOAM's ThirdParty? Or are you using the one that comes with the linuxGcc package?
I believe I've already built Paraview from OpenFOAM's ThirdParty.
Quote:
Either way, try:
Code:
cd $WM_THIRD_PARTY_DIR
./makeParaView
I'm not sure if it cleans after itself In other words, you might want to remove the folders "paraview-3.6.1/platforms/*" first, but do it only if it doesn't build at first.
I rebuilt it, I suppose this is where I have issues. I just noticed errors. Some of the ones I've noticed are:
Code:
CMake Error: The following variable are used in this project, but they are set to NOTFOUND.  Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTDESIGNER_INCLUDE_DIR (ADVANCED)
  Used as include directory in directory /home/vex/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/GUISupport/Qt
  Used as include directory in directory /home/vex/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/Qt/Chart
  Used as include directory in directory /home/vex/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/VTK/GUISupport/Qt/Testing/Cxx
There are additional warnings and what appears to be missing library files...
Code:
Qt QTGUI library not found.
Qt QTCORE library not found.
There's also a warning or two:
Code:
Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as /usr/local/Trolltech/Qt-4.3.5/lib
Warning: /usr/local/Trolltech/Qt-4.3.5/lib does NOT exist, Qt must NOT be installed correctly.
So I'm thinking my error may be there.
Quote:
If it builds successfully, then try building once again the PV3FoamReader
Thanks for your help, I'm really looking forward to actually being able to teach myself OpenFOAM.
vex is offline   Reply With Quote

Old   March 19, 2010, 15:28
Default
  #62
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 vex View Post
/home/vex/OpenFOAM/ThirdParty-1.6/qt-x11-opensource-src-4.3.5/bin/rcc
Ah HA! You're using the 4.3.5 custom build of Qt, so it pretty much doesn't matter how many packages you install via apt-get, because the custom build takes precedence in your system!

So... why are you using the custom version? I mean custom, because it isn't the system default version

OK, then let's take one step back. How did you build the custom Qt library? Did you execute the makeQt script that comes with the ThirdParty General package? If not, you should have


By the way, have you tried Mads OpenFOAM 1.6.x install cookbook for Ubuntu, available here (see Mads signature for the link)? There a variant of the same script, by Canesin here, which is a bit more generic for Ubuntu various versions. They aren't perfect, but seems to do the trick for many new users!


Either way, knowing what installation steps have you taken so far will make it simpler to help you making OpenFOAM work I didn't know you had installed the Qt 4.3.5, which makes a whole lot of difference, and knowing how you installed it is also important!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 19, 2010, 15:43
Default
  #63
vex
New Member
 
Anon
Join Date: Mar 2010
Posts: 22
Rep Power: 16
vex is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Ah HA! You're using the 4.3.5 custom build of Qt, so it pretty much doesn't matter how many packages you install via apt-get, because the custom build takes precedence in your system!

So... why are you using the custom version? I mean custom, because it isn't the system default version

OK, then let's take one step back. How did you build the custom Qt library? Did you execute the makeQt script that comes with the ThirdParty General package? If not, you should have


By the way, have you tried Mads OpenFOAM 1.6.x install cookbook for Ubuntu, available here (see Mads signature for the link)? There a variant of the same script, by Canesin here, which is a bit more generic for Ubuntu various versions. They aren't perfect, but seems to do the trick for many new users!


Either way, knowing what installation steps have you taken so far will make it simpler to help you making OpenFOAM work I didn't know you had installed the Qt 4.3.5, which makes a whole lot of difference, and knowing how you installed it is also important!

Best regards,
Bruno
Okay, I'll go ahead and scrap what I have so far and start anew.
Currently running the script as I type.
vex is offline   Reply With Quote

Reply

Tags
9.04, installing openfoam, ubuntu 9.04


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 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 04:14
qt4.3.4 with ubuntu 9.04 "jaunty jackalope"? sven OpenFOAM 4 May 30, 2009 19:22
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 12:32
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
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 11:23.