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)

balkrishna December 26, 2011 09:02

paraview compilation error paraview-3.12.0
 
Hi ,
On running makeParaView in the Third Party folder i get the following error :
Code:

make: *** No targets specified and no makefile found.  Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 200%CPU (0avgtext+0avgdata 4048maxresident)k
0inputs+0outputs (0major+305minor)pagefaults 0swaps

The OpenFOAM installation proceeds without any problems. Does anyone have a clue to this ?

Thanks.

wyldckat December 26, 2011 10:47

Greetings Balkrishna,

OK... since my crystal ball is broken, so I'll have to ask:
  1. Which Operating System are you using? Or better yet, which Linux distribution/version are you using?
  2. Which OpenFOAM version are you trying to install?
  3. That is only the very final lines of the build output. Please provide the complete log by following these steps:
    1. Run it like this:
      Code:

      ./makeParaView > makePV.log 2>&1
    2. Edit the log file "makePV.log" and replace any sensitive data, such as user names and paths.
    3. Package the log:
      Code:

      tar -czf makePV.log.tar.gz makePV.log
    4. Attach "makePV.log.tar.gz" on your next post.
Best regards,
Bruno

balkrishna December 27, 2011 03:17

1 Attachment(s)
Thanks for the prompt reply. I shd have included the details in the previous post. Anyways the details are as follows :

i) OS : Ubuntu 10.04 32 bit
ii) OpenFOAM version : 2.1.0 - source pack

The file is attached with this post.

Thanks,
Balkrishna.

wyldckat December 27, 2011 07:17

Hi Balkrishna,

Mmm, this is odd... the specific error is this:
Quote:

Code:

CMake Error at CMakeLists.txt:70 (determine_version):
  determine_version Function invoked with incorrect arguments for function
  named: determine_version


I've tested in a virtual machine with Ubuntu 10.04 i686 and I didn't get this error. Which cmake version are you using?
Code:

cmake --version
Additionally, which version does Ubuntu say it's installed?
Code:

dpkg-query -W cmake
I've got this version:
Code:

cmake version 2.8.0
cmake    2.8.0-5ubuntu1

Best regards,
Bruno

balkrishna December 27, 2011 07:28

Hi,

I have got this version :
Code:

cmake version 2.8.0
cmake 2.8.0-5ubuntu1

It seems there is no difference in the cmake versions.

Balkrishna.

wyldckat December 27, 2011 07:32

Mmm... then I recommend that you erase the "ParaView-3.12.0" folder from "ThirdParty-2.1.0" and replace it with the official version available from here: http://www.paraview.org/files/v3.12/ - namely: http://www.paraview.org/files/v3.12/...-3.12.0.tar.gz

There shouldn't be any big differences between them, but sometimes downloading and unpacking packages fails in some point during the download or unpacking process, so it's either necessary to download the package again or unpack it again.

balkrishna December 27, 2011 07:35

Will try it out and post results here ...
Thanks for the help.

balkrishna December 27, 2011 07:54

1 Attachment(s)
The same error again. Attaching the log file with this mail.

Balkrishna.

wyldckat December 27, 2011 09:48

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

continua December 28, 2011 09:42

Thanks
 
I work with balkrishna, and thank you for your help in this.

wyldckat December 28, 2011 16:03

Quote:

Originally Posted by continua (Post 337184)
I work with balkrishna, and thank you for your help in this.

You're both welcome! I'm glad I could help.

Best regards,
Bruno

vmsandip2011 January 3, 2012 01:56

Paraview and paraFoam not working
 
1 Attachment(s)
i am tring to install the OpenFOAM-2.1.0 on Ubuntu10.04 using Virtual Box.
OpenFOAM-2.1.0 is installed properly but I am having problem in running Paraview and ParaFOAM.
I tried to follow the steps in this link http://www.openfoam.org/download/source.php .
But if I ran the command ./makeParaView paraview is not getting installed .
I tried to follow the above link written by wyldckatdownloading new Paraview , but the messgae log is ame .
I have attached here with makePV.log.
Please let me know the problem.

wyldckat January 3, 2012 04:57

Greetings Sandip and welcome to the forum!

Did you follow the steps indicated in post #9?

Best regards,
Bruno

vmsandip2011 January 3, 2012 06:54

Paraview and paraFoam not working
 
Thanks for quick reply.
i tried to follow the steps in #9 but still the log generated is same as attached in previous post.
Following message is getting created:
/************************************************** ***************/
make: *** No targets specified and no makefile found. Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 133%CPU (0avgtext+0avgdata 4064maxresident)k
0inputs+0outputs (0major+308minor)pagefaults 0swaps
Done make
Installing ParaView to /home/user/OpenFOAM/ThirdParty-2.1.0/platforms/linuxGcc/paraview-3.12.0
make: *** No rule to make target `install'. Stop.
---
Installation complete for paraview-3.12.0
Set environment variables:

export ParaView_DIR=/home/ravindra/OpenFOAM/ThirdParty-2.1.0/platforms/linuxGcc/paraview-3.12.0
export PATH=$ParaView_DIR/bin:$PATH
export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12
---

Done
/************************************************** ***************/

kebi112358 January 4, 2012 03:38

OF documentation
 
I'm just starting to learn OpenFOAM, but I can't find enough documentations.Could anybody help to pass the relevant resources to me?

wyldckat January 4, 2012 17:17

Greetings!

@Sandip:
Quote:

Originally Posted by vmsandip2011 (Post 337653)
Thanks for quick reply.
i tried to follow the steps in #9 but still the log generated is same as attached in previous post.

I've finally managed to reproduce the same problem you guys were and are having! I had to install Ubuntu 10.04 i686 on VirtualBox to achieve the same bug! I was using VMPlayer... not sure why that would make such a difference.

Anyway, after following my own suggestions/instructions, I noticed that on post #9 I forgot a line break on point #2! So, please follow once again the updated instructions from post #9!



@kebi112358:
Quote:

Originally Posted by kebi112358 (Post 337790)
I'm just starting to learn OpenFOAM, but I can't find enough documentations.Could anybody help to pass the relevant resources to me?

Go to the link on my signature and start following the links starting from the line: "Finally, a few links for starting to use OpenFOAM".

Best regards,
Bruno

vmsandip2011 January 5, 2012 09:11

Paraview and paraFoam not working
 
Thanks for the reply with your changes in #9 everything working fine for OpenFoam2.1.0
But if you follow the steps given at this link :
http://www.openfoam.org/download/source.php

OpenFoam2.0 is getting installed properly but not 2.1.0 version.
Anyway thanks for the information.

with regards,
sandip

wyldckat January 5, 2012 17:11

Hi Sandip,

According to your description, my guess is that you have at least two OpenFOAM installations. If this is the case, then edit your "$HOME/.bashrc" file and change the following lines (this is an example):
Code:

source $HOME/OpenFOAM/OpenFOAM-2.0.0/etc/bashrc
source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc

To this:
Code:

alias of200='source $HOME/OpenFOAM/OpenFOAM-2.0.0/etc/bashrc'
alias of210='source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc'

Start a new terminal window/tab and run the respective alias command. For example, to have OpenFOAM 2.0.0 active in the terminal window/tab you've just opened, run:
Code:

of200
Does this solve your problem? If not, I'll need a bit more information... otherwise I'll just be trying to guess what the problem might be :(

Best regards,
Bruno

vmsandip2011 January 6, 2012 12:12

Paraview and paraFoam not working
 
Hi ,
Thanks for the reply.
I am not saying 2.1.0 is not getting installed.
With your update to #9 , 2.1.0 is getting installed properly.
But with the steps written at link http://www.openfoam.org/download/source.php ,
OpenFoam 2.0.0 is getting installed properly , but paraview/paraFoam for 2.1.0 is not getting installed , this was just information i was sharing for somebody whoever is going to follow the steps at above link.

with regards.

wyldckat January 6, 2012 13:47

Hi Sandip,

Thanks for clearing that up! Indeed, Ubuntu 10.04 is already becoming outdated, when it comes to modern software such as ParaView 3.12.0.

To complement your posts, the older instructions are available here: http://www.openfoam.org/download/archive.php

Best regards,
Bruno

linch April 10, 2012 13: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 14: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 05:53

Thank Bruno Santos. Your method help me a lot.

Lisandro Maders October 29, 2015 10: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 08: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 20: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 18: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 15: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 10:21.