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

OF 1.7.0/CentOS/paraFoam installation problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2010, 04:14
Default OF 1.7.0/CentOS/paraFoam installation problems
  #1
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Hi,

Following the successfull installation of OF1.7.0 on my 32 bit CentOS linux computer I have now moved over to install paraFoam. The following error comes at the very end after the command ./makeParaView:
________________________________________
Linking CXX executable ../../../../bin/GraphicsCxxTests
../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QPainter::drawImage(QPointF const&, QImage const&)'
../../../../bin/libvtkRendering.so.pv3.8: undefined reference to `QTextDocument::setDocumentMargin(double)'
collect2: ld returned 1 exit status
make[2]: *** [bin/GraphicsCxxTests] Error 1
make[1]: *** [VTK/Graphics/Testing/Cxx/CMakeFiles/GraphicsCxxTests.dir/all] Error 2
make: *** [all] Error 2
---
Installation complete for paraview-3.8.0
Set environment variables:

export ParaView_DIR=/home/user/OpenFOAM/ThirdParty-1.7.0/platforms/linuxGcc/paraview-3.8.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.8
---

Done
_____________________________

Anybody out there that migth help me?

rgds
Bjorn
bhh is offline   Reply With Quote

Old   July 9, 2010, 08:07
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Bjorn,

I've seen people post about this issue for a while now with ParaView 3.8.0. I've had it with ParaView 3.6.1 in Ubuntu, but right now I don't remember what exact packages were missing nor do I have the time to build ParaView

So, please run it again like so:
Code:
./makeParaView > buildParaView.log 2>&1
Then compress it:
Code:
tar -cjf buildParaView.tar.bz2 buildParaView.log
Then please post the file buildParaView.tar.bz2 or a link to it...
Because:
  • the first errors are indicative of what went wrong;
  • the final errors only are indicative that something went wrong;
  • And near the beginning, there might be clues as to what's missing!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 9, 2010, 09:00
Default
  #3
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Hi Bruno,
Attached is the file you requested. Can you find out what is wrong?
rgds
Bjorn
Attached Files
File Type: gz buildParaView.log.gz (38.2 KB, 3 views)
bhh is offline   Reply With Quote

Old   July 9, 2010, 10:45
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Bjorn,

I had hopes that the whole log would give some light on the problem... but ironically it still points out to the same error

OK, I haven't tried this yet, but based on my experience, these are some of possible solutions:
  • Install Qt 4.6.x (doesn't matter which one, as long it's 4.6).
  • Install cmake 2.6.4, if you are using 2.8.0.
Other than this, I can only infer new possible solutions based on the results of these tests!

Additionally, there is one thread that can help you build ParaView 3.8.0, by basing yourself on the instructions for ParaView 3.6.1 + Qt 4.3.5. The thread is this one: New user needs help

Another possibility, in case you don't to waste more time trying to build ParaView 3.8.0, is to download the pre-built official version from www.paraview.org! There was a recent thread where I talked about this too: http://www.cfd-online.com/Forums/ope...tml#post265046

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 9, 2010, 19:30
Default
  #5
Senior Member
 
Travis Carrigan
Join Date: Jul 2010
Location: Arlington, TX
Posts: 161
Rep Power: 15
tcarrigan is on a distinguished road
I had similar problems with OpenFOAM 1.6 in CentOS 5.4. I never did resolve the issue, so I just downloaded and installed ParaView separately and used foamToVTK to convert the foam files to vtk format for ParaView and was able to postprocess the solutions just fine.

The only real difference is you can't just type 'paraFoam' and load your solutions directly into ParaView in the foam format, you have to do one more step and convert the files to vtk format then launch ParaView.

One of the reasons I like this setup is that once you install OpenFOAM and the other utilities, you don't really need to use ParaView, you can use whatever postprocessing tool you choose.
tcarrigan is offline   Reply With Quote

Old   July 13, 2010, 04:42
Default
  #6
New Member
 
Zheng Li
Join Date: Jul 2010
Posts: 1
Rep Power: 0
seraphlz is on a distinguished road
Hi Bjorn,

I have installed the OF1.7.0 on RHEL 5.5 x86_64 system. According to the official description of source pack installation, "the ParaView-3.8.0 version supplied in ThirdParty requires cmake-2.6.4 or higher and Qt-4.5 or higher". So I downloaded and installed the cmake-2.8.2 and qt-4.6.0 from source code pack, and added the path to .bashrc as following:

export PATH=$HOME/OpenFOAM/Qt-4.6/bin:$PATH
export LD_LIBRARY_PATH=$HOME/OpenFOAM/Qt-4.6/lib:$LD_LIBRARY_PATH
export PATH=$HOME/OpenFOAM/cmake-2.8.2/bin:PATH

Then type ". $HOME/.bashrc" in the current terminal window. After this step, I followed exactly the step as the official description "Compiling Paraview 3.8.0 and the PV3FoamReader module":

cd $WM_THIRD_PARTY_DIR
./Allclean
./makeParaView
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
./Allwclean
./Allwmake

Finally, I get it!

Please note that it is critical to add the path of Qt lib to the LD_LIBRARY_PATH!

Good luck!

Zheng

PS. I followed the steps as http://doc.qt.nokia.com/4.6/install-x11.html using qt-everywhere-opensource-src-4.6.0.tar.gz when installing Qt-4.6, and configured Qt for installation in the $HOME/OpenFOAM/Qt-4.6 directory by using the -prefix option.

Last edited by seraphlz; July 13, 2010 at 05:06.
seraphlz is offline   Reply With Quote

Old   July 14, 2010, 05:45
Default
  #7
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 72
Rep Power: 17
bhh is on a distinguished road
Dear Zeng,

I have tried your scheme but got stuck after submitting ./configure to start installing qt:

Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /home/user/OpenFOAM/qt-everywhere-opensource-src-4.6.0/mkspecs/linux-g++-64.

Any idea what went wrong?

rgds
Bjorn
bhh 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM Installation Ubuntu 9.04 Problems Sumontro OpenFOAM Installation 8 July 21, 2009 21:40
Installation problems indy OpenFOAM Installation 7 April 3, 2009 09:40
Problems with installation of OpenFoam sheyer OpenFOAM Installation 8 July 28, 2008 03:45
installation problems on upgrade from win 3.26 to mic Siemens 5 June 20, 2007 09:40
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 13:29


All times are GMT -4. The time now is 15:51.