CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How to Install OpenFOAM on 64 Ubuntu 9.04 (https://www.cfd-online.com/Forums/openfoam-installation/65945-how-install-openfoam-64-ubuntu-9-04-a.html)

vex March 19, 2010 14:09

Quote:

Originally Posted by wyldckat (Post 250840)
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.

wyldckat March 19, 2010 14:28

Quote:

Originally Posted by vex (Post 250853)
/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 :D


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

vex March 19, 2010 14:43

Quote:

Originally Posted by wyldckat (Post 250858)
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 :D


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.


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