CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM-1.6.x PV3FoamReader build failure. (https://www.cfd-online.com/Forums/openfoam-installation/68039-openfoam-1-6-x-pv3foamreader-build-failure.html)

aunola September 4, 2009 02:34

OpenFOAM-1.6.x PV3FoamReader build failure.
 
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.

linnemann September 4, 2009 03:29

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

aunola September 5, 2009 08:22

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


All times are GMT -4. The time now is 22:07.