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.org] paraview compilation error paraview-3.12.0 (https://www.cfd-online.com/Forums/openfoam-installation/95634-paraview-compilation-error-paraview-3-12-0-a.html)

linch April 10, 2012 12:21

I have the same problem with Debian 2.6.32-5-amd64. The post #9 solution worked in my case also and I could install cmake 2.8.3 and rebuild paraview 3.12. The error was still there:

Quote:

FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
But then, after building the reader module, everything went fine.

Thank you Bruno.

iamed18 May 15, 2012 13:15

ParaView Out-of-Source Build?
 
Quote:

Originally Posted by wyldckat (Post 337103)
OK, then lets try building a custom CMake with a more recent version:
  1. Go into the ThirdParty folder, get a script for downloading the CMake source code and make it executable:
    Code:

    foam3rdParty
    wget "http://www.openfoam.com/mantisbt/file_download.php?file_id=143&type=bug" -O getCmake
    chmod +x get*

  2. Build CMake:
    Code:

    ./getCmake
    ./makeCmake > mkcmake.log 2>&1

  3. Update the shell environment:
    Code:

    wmSET
  4. Confirm that you now have a different and more up-to-date version:
    Code:

    cmake --version
  5. Try to build ParaView once again:
    Code:

    ./makeParaView > makePV.log 2>&1
Hopefully this will fix the problem!


Good luck!
Bruno

I have a quick query about this. I'm working with ParaView 3.12.0 and when I follow these directions, all's well until the last step, during the actual cmake of ParaView. The make runs into the following error:

Code:

----

CMake Error at CMakeLists.txt:58 (MESSAGE):
  ParaView requires an out of source Build.  Please create a separate binary
  directory and run CMake there.


-- Configuring incomplete, errors occurred!

Should I be editing the make file to fix this or is there a different solution I should look for?

Thanks!

EDIT: This has been resolved; I had unintentionally copied over an incorrect file, leaving CMakeCache.txt in the ParaView-3.12.0 directory, causing the error. All's well now!

sunlight June 11, 2012 04:53

Thank Bruno Santos. Your method help me a lot.

Lisandro Maders October 29, 2015 09:58

Followed steps but still not working
 
2 Attachment(s)
Hello,

I am not being able to compile the ThirdParty properly. Here is soem information:

- OpenFoam 2.1.0 installed and working fine
- OS System: Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux

After having OF installed and have download Third-Party and also the ParaView you suggested (in case the Third-Party itsel does not work). Here is my /opt/OpenFOAM/ folder listing:

Code:

OpenFOAM-2.1.0    ParaView-3.12.0  ParaView-3.12.0.tar.gz  ThirdParty-2.1.0.tgz
Then I did the following, with OpenFOAM already sourced:

Code:

tar xzf ThirdParty-2.1.0.tgz
cd $WM_THIRD_PARTY_DIR

It goes to the right directory -> /opt/OpenFOAM/ThirdParty-2.1.0, then:

Code:

./makeParaView > makePV.log 2>&1
The makePV.log is attached.

As you can see,it gave me a similar error than the guys above had. So I tried to follow the steps you suggested (step #9),by using the ParaView downloaded from the link you suggested.

First I removed the Paraview folder from ThirdParty folder, and copied the one downloaded from the link. Then, I followed the step #9 and the log result is also attached.

It did not work as well and when I try to run paraFoam it returns me the following message:
Code:

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake

Whose commands I have already done. Then I found that the file Allwmake from such directory has a environment variable called $ParaView_DIR that should go to: /opt/OpenFOAM/ThirdParty-2.1.0/platforms/linux64Gcc/paraview-3.12.0

But actually, there is no paraview-3.12.0 folder in this directory.

I have no idea anymore what to do, I do not have very good knowledge on this stuff, so I would be glad if someone could help me with this..


Regards,

Lisandro

wyldckat October 31, 2015 07:15

Greetings Lisandro,

For the error in the first log file, the problem is the same as documented here:
Quote:

Originally Posted by wyldckat (Post 569696)
Quick answer: http://openfoamwiki.net/index.php/In...u#Ubuntu_15.04 - step #9, sub-step #1, has the fix necessary for this problem.

In addition, this is documented at the end of the README file in the ThirdParty folder: https://github.com/OpenFOAM/ThirdPar...g-paraview-410

As for the second log file, if I remember correctly, it's because a few packages are missing that can be installed with this command:
Code:

sudo apt-get install libglu1-mesa-dev libqt4-opengl-dev
Best regards,
Bruno

Lisandro Maders November 1, 2015 19:44

1 Attachment(s)
Well, it did not work. But I decided to check if it was everything really ok with OpenFOAM installation and it was not. So let's go step by step..

Here is the make.log from OF compilation, there are some errors I could not identify.. Just to be sure, is there a compatibilty between my Debian version and OF210, right? I am finding very weird it is giving me such errors, since I have already installed sometimes other versions of OF in Ubuntu systems without problems... Anyway, the make.log is attached and this is the log file after running ./Allwmake twice in order to get a summary from the previous compilation.

Thanks a lot for your help.


Regards,

LIsandro.

wyldckat November 2, 2015 17:45

Hi Lisandro,

Mmm... OK, those errors you've gotten seem a bit strange:
Code:

/home/lmaders/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so: undefined reference to `Foam::Reaction<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > >::typeName'
collect2: error: ld returned 1 exit status

This usually either has to do with:
  • the original library not having been compiled with success, which does not seem to be the situation in this case;
  • or ld is not able to automatically load libraries that would otherwise find them missing.
Please run the following commands:
Code:

gcc --version
g++ --version
ld --version

You can find the compatible GCC version list here: http://openfoamwiki.net/index.php/In...ibility_Matrix
And ld should be of type "bfd" and not "gold".

Best regards,
Bruno

jnanabrao June 10, 2021 14:05

Same error but 10 years later
 
I know this is a really old thread but I'm facing the exact same problem with OF-6 and Ubuntu 20.04. OpenFOAM builds fine but Paraview and Third-Party do not. As the log file exceeds the .txt attachment size limit, I am adding the error lines here.



Code:

[  5%] Built target QtTesting
make: *** [Makefile:152: all] Error 2
Command exited with non-zero status 2
315.00user 25.09system 0:43.66elapsed 778%CPU (0avgtext+0avgdata 251968maxresident)k
15360inputs+228448outputs (31major+9504290minor)pagefaults 0swaps


I believe the script described for building Cmake in post #9 is already part of the Third-Party folder now. So I didn't try that solution. Any help is most welcome.



JBR


All times are GMT -4. The time now is 19:48.