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

OpenFOAM-1.6.x PV3FoamReader build failure.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2009, 03:34
Default OpenFOAM-1.6.x PV3FoamReader build failure.
  #1
Member
 
Martin Aunskjaer
Join Date: Mar 2009
Location: Denmark
Posts: 53
Rep Power: 17
aunola is on a distinguished road
Building OF-1.6.x pulled with git 2009-09-03 using the gcc-4.3.3. provided in the binaries fails. It fails building the PV3FoamReader:

+ cd PV3FoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
CMake Error at /home/mar/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/CMake/ParaViewPlugins.cmake:762 (QT4_WRAP_CPP):
Unknown CMake command "QT4_WRAP_CPP".
Call Stack (most recent call first):
/home/mar/OpenFOAM/ThirdParty-1.6.x/paraview-3.6.1/CMake/ParaViewPlugins.cmake:878 (ADD_PARAVIEW_GUI_EXTENSION)
CMakeLists.txt:44 (ADD_PARAVIEW_PLUGIN)


-- Configuring incomplete, errors occurred!


System info:
---------------
uname -a
Linux wulf00 2.6.29.6-217.2.16.fc11.x86_64 #1 SMP Mon Aug 24 17:17:40 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Version info:
-------------
qmake -v
QMake version 2.01a
Using Qt version 4.3.5 in /home/mar/OpenFOAM/ThirdParty-1.6.x/qt-x11-opensource-src-4.3.5/platforms/linux64GccDPOpt/lib

which qmake
~/OpenFOAM/ThirdParty-1.6.x/qt-x11-opensource-src-4.3.5/bin/qmake

cmake -version
cmake version 2.6-patch 4

which cmake
~/OpenFOAM/ThirdParty-1.6.x/cmake-2.6.4/platforms/linux64/bin/cmake

which g++/gcc
~/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/bin/g++/gcc


What has been tried so far:
--------------------------------
It appears that cmake is unable to locate Qt4.

I therefore build cmake and Qt4 from souces with QTDIR set to where Qt4 is located. No change.

I then tried using cmake-2.4 patch 8 instead which worked for OF-1.5, but this fails because VTK requires cmake-2.6.

I tried building and using various versions of Qt (4.3.2, 4.3.5, 4.5.2). No change.

I googled and read everything I could find on this QT4_WRAP_CPP error and tried what was suggested. No change.

The problem is known also in the OF forum, but apart form the below, no-one seems to have solved this:

http://www.cfd-online.com/Forums/ope...ile-error.html
http://www.cfd-online.com/Forums/ope...n-problem.html

As we are setting up a large cluster for parallel execution of OF and ParaView, this is pretty much a show-stopper for the visualization bit. Suggestions for solutions will be much appreciated.
aunola is offline   Reply With Quote

Old   September 4, 2009, 04:29
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

I couldn't find out if you build gcc-4.3.3 from source or if it is from the binaries?

If you didn't build it from source, try that, since it seems its a c++ wrapper problem and most likely because something is missing (a library or something).

EDIT: just to make sure you did compile paraview in the ThirdParty folder before doing the PV3FoamReader build?

I have made a package available which works for rocks-cluster/CentOS/RedHat, maybe it will work for fedora-11 (haven't tried).

I would also suggest using a long-term supported operating system for clusters (stability), but thats just my opinion :-).

Best regards
Linnemann
linnemann is offline   Reply With Quote

Old   September 5, 2009, 09:22
Default
  #3
Member
 
Martin Aunskjaer
Join Date: Mar 2009
Location: Denmark
Posts: 53
Rep Power: 17
aunola is on a distinguished road
Thanks for your post.

This being a CMake complaint it makes no difference in what order things are build.

The problem has eventually been solved, but not quite satisfactorily since it is still unclear what the problem really was.

In case anyone should run into similar problems I will summarize below how this problem came about and what was tried to solve it:

1. OF-1.6.x failed to build using the stock 4.4.1 gcc. The error looks suspiciously like a parse error of the file surfaceFeatures.C and a bug report will be submitted.

2. Not trusting gcc 4.4.1, the 3rd part binaries including gcc 4.3.3 were downloaded. With this compilation of OF was successful except building of the PV3FoamReader failed with CMake reporting an inconsistency:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not

3. The above was fixed by building CMake-2.4.6 from sources using gcc-4.3.3 at which point the error in the original post occurred upon rebuild.

4. A number of things as mentioned above were tried, and in addition rebuilding glibc, binutils etc. using gcc-4.3.3 and building gcc-4.3.3 itself from sources. Nothing helped.

5. Then reverted to the stock gcc-4.4.1 and fixed the source-file such that the error mentioned in (1) disappeared. After that everything builds fine - including paraview3.6.1
aunola 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 1.6.x - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 68 April 22, 2013 12:03
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
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 05:27.