|
[Sponsors] |
July 11, 2011, 02:21 |
Compilation error OF 2.0.x (UIPstream)
|
#1 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
I was trying to compile OF 2.0.x from source. I got all the dependent packages installed as per website. But in stressAnalysis/solidEquilibriumDisplacementFoam/ I am getting the following error:
undefined reference to `Foam::UIPstream::UIPstream(int, Foam::PstreamBuffers&)' collect2: ld returned 1 exit status I am on a 64 bit Ubuntu box. I installed posixthread development libraries from my package manager and tried again and it gave me the same error. Please help. |
|
July 12, 2011, 06:17 |
|
#2 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
It is to be noted that, I am able to compile OF 1.7.0 successfully on the same box. Are there any additional dependencies that come with OF 2.0, which are not mentioned in OF website?
|
|
July 12, 2011, 19:09 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Prapanj,
When they released OpenFOAM 2.0.0, I was one of the guys that gave some feedback of what packages were needed in Ubuntu. I tested the options in a clean install on a new Ubuntu installation to verify which packages were needed, as well as keeping up with feedback from other forum users. In other words, if you followed the instructions at www.openfoam.com for the specific installation you are trying to do, then you should have everything you need. You'll only lack packages it you try to build the git or source version, while only having installed the OpenFOAM packages for Ubuntu. My advice is to do the following commands, similarly to what I suggested the other day on a nearby thread: Code:
foam git stash git pull git stash pop wcleanAll wcleanLnIncludeAll ./Allwmake > make.log 2>&1 Good luck! Bruno
__________________
Last edited by wyldckat; July 12, 2011 at 19:10. Reason: 1200th post!! woot! :D |
|
July 14, 2011, 14:24 |
|
#4 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
Hi Wyldckat,
I am trying to install from source. And I am getting the above error for both OF 2.0.0 and 2.0.x . On 2.0.x, i tried the commands you mentioned, to no avail. Surprisingly OF 1.7 compiles on the same machine. I have installed all the packages as mentioned in the OF website. Any more suggestions? |
|
July 16, 2011, 09:24 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Prapanj,
I've tried to reproduce the same issues you've had on an Ubuntu 10.04 x86_64 and I've only be able to do so replicate these issues if I:
So, I'll need to know if this was what you did or not. On the other hand, if you followed all of the instructions on that web page, I suggest that you attach the log from the build made with that last command I posted before. To generate a file small enough to be attached, run the following command: Code:
tar -czf make.log.tar.gz make.log Otherwise, I would need a magical crystal ball Best regards, Bruno
__________________
|
|
July 19, 2011, 13:58 |
magic crystal ball
|
#6 |
Senior Member
Prapanch Nair
Join Date: Mar 2009
Location: Bangalore, India
Posts: 105
Rep Power: 17 |
Often we find ourselves fantasize situations which can be handled only by magical crystal balls. We end up realizing that either a crystal ball is not needed or that nothing on earth can save us.
So here, you are right, spot on. I was trying to fiddle with the old third party folder that I had and assumed, like you mentioned, that the mpi and scotch installation would take care of everything. So all we need to do is follow the instruction step by step exactly. Thank you for the help and btw, you have an amazing insight into how things may go wrong (I know no one that can reproduce errors exactly!) Thanks again. |
|
July 19, 2011, 17:32 |
|
#7 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Prapanj,
Quote:
The story doesn't end there, it gets crazier and funnier But it pretty much sums up that no matter how smart/intelligent we think we are, only by asking the right questions will we be able to find at the very least good solutions Quote:
You're very welcome I'm glad I was able to help you! Only by combining my experience with me liking a good challenge, was I able to help you! Best regards, Bruno
__________________
|
|||
Tags |
compilation, openfoam 2.0.x, uipstream |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ParMetis Thirdparty Compilation error in OpenFoam-1.6-ext | juliasp | OpenFOAM Installation | 1 | June 30, 2011 11:14 |
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 | ftec | OpenFOAM Installation | 7 | February 23, 2011 07:07 |
Compilation Error when running Tutorial 2.4 | zhihuali | Siemens | 7 | April 1, 2008 08:34 |
Compilation error with uparm.f | Raghu | Siemens | 2 | May 30, 2007 03:09 |
Compilation Error.... | Arnab | Siemens | 4 | September 12, 2004 16:54 |