|
[Sponsors] |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#21 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
Code:
+ wmake libso triSurface /usr/bin/ld: cannot find -lmeshTools ... + wmake libso meshTools /usr/bin/ld: cannot find -ltriSurface
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#22 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
I don't know. Here is my file:
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#23 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
Looks like you downloaded a broken version. I've emailed Hrv to let him know. All the changes listed here are suspect:
http://openfoam-extend.git.sourcefor...a38695618ae72a At the very least, you could remove the -lmeshTools from that file. If that doesn't work, go back to an older version: git checkout b68eb75c1b4f86a5d6de1402cf81962d0ebbd766 Then make those wmake rules changes mentioned by Bruno, and the scotch changes mentioned be me... then try again.
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#24 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Ok David, thank you for your kind help. I removed that line, and restarted compilation. If it is ready, I'll post the results.
Best Regards, Attila |
|
![]() |
![]() |
![]() |
![]() |
#25 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Hi,
I compiled the modified code, but again with errors. Now it's better because I can run simulations, but I got a lot error messages. Hereby I attach the log file again. Did you receive answer from Hrv? log_Allwmake_1_111110.zip Regards |
|
![]() |
![]() |
![]() |
![]() |
#26 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
The first error in your log is your problem. In this case it's:
Code:
/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:41:32: fatal error: twoDPointCorrector.H: No such file or directory
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#27 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Hi,
Quote:
I will start over the whole compilation. Thank you, Attila |
||
![]() |
![]() |
![]() |
![]() |
#28 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Finally, I used
Quote:
Regards, Attila |
||
![]() |
![]() |
![]() |
![]() |
#29 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
I'm not sure. I'm not very strong with git. The thing you want to happen is: you want your OpenFOAM files to match those that were on 1.6-extend's repository at the commit with the number: b68eb75c1b4f86a5d6de1402cf81962d0ebbd766.
I think your clone command copied the *latest* version into a *directory* with the name b68eb... etc.. How about you start with a fresh clone of the latest version. Use the standard git clone command. Go to the directory you want it in and do this: Code:
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/openfoam-extend Code:
git checkout -b myCustomBranch b68eb75c1b4f86a5d6de1402cf81962d0ebbd766 You can switch back and forth between branches with: Code:
git checkout master git checkout myCustomBranch Code:
git checkout master git pull Code:
git commit -a -m "A short message decribing the changes you made" Hope that helps!
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#30 |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 ![]() |
I thought I'd add a comment to this thread summarizing my experiences building 1.6-ext on Ubuntu 11.10
1) Try as I might I couldn't get mesquite to build with gcc 4.6. I had to revert to gcc 4.5. Alternate versions of gcc are usually installed on Ubuntu and if not they are there. You can use the 'update-alternatives' command to switch to a different version. Here's an article explaining how: http://www.infohit.net/blog/post/alt...nd-jaunty.html 2) When I used the scotch from the ThirdParty directory (which compiled OK), the OF compilation complained about an undefined reference to 'clock_gettime'. I used the Ubuntu provided scotch, libscotch-5.1 and libscotch-dev packages to get it to build. 3) I made a symbolic link to /usr/bin/make called /usr/bin/gmake because ParMGridgen Makefile looks for gmake and not make. 4) I made the changes to the wmake rules per Dave Gaden's advice. See the diff from the 2.0.x repo: https://github.com/OpenFOAM/OpenFOAM...3e8d0e85b889d9 5) I tried once to get Paraview to compile and it complained about not finding the OpenGL libraries. I was lazy and installed the pre-built one from Kitware and told OpenFOAM to use the system installed version. Of course, it goes without saying that even within 11.10, YMMV. A general comment regarding the use of ThirdParty provided packages, I think you can use the Ubuntu (i.e. system) provided packages for all but mesquite and libccmio - all the rest are in the Ubuntu repos. As the Ubuntu repos tends to be a little newer and comprehensive than, say, RedHat and its derivatives, I might be inclined to use the system provided packages where possible. |
|
![]() |
![]() |
![]() |
![]() |
#31 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
Yes, the third party packages are a nightmare with GCC 4.6. I forget the details, but getting them to build required me to edit some of the source files... it was inelegant. I never did more than add a #include at the top of some of the files, mind you.
The problem you describe in #2 is solved by adding -lrt to one of the Make/options in OpenFOAM... I forget which one, I describe it earlier in this thread. Your solution to #3 is far more elegant than mine... I like it! I usually edit the make file to force it to call make. The guys at fedora were looking into packaging OpenFOAM, but the third party library was deemed totally unacceptable. We would have to package each one seperately, and then call them prerequisites.
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#32 | |||
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 ![]() |
Quote:
Quote:
I was actually more surprised that Ubuntu didn't have a gmake link by default. Quote:
With Martin already going to the effort of using RPM to install and manage the ThirdParty stuff, I wonder if it would be better to just work with the distro devs (e.g. Fedora, Ubuntu) and have the ThirdParty RPMs that aren't already included with the distros repo. Some of them are a bit obscure and would likely never make it in a distros repo without someone from the OF community doing so. This way the distros would likely be more willing to provide OpenFOAM in their repos and it would make maintenance of the OF simpler as the third party stuff wouldn't need to be in the source code repos. |
||||
![]() |
![]() |
![]() |
![]() |
#33 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Thank you all! I modified everything as you suggested and switched back to gcc 4.5. Now it's compiling, I will post the results if it's ready.
I think I would write a manual to compile it. I'm working on it sine 2 weeks without any step in the real project, it's a bit annoying. Regards, Attila |
|
![]() |
![]() |
![]() |
![]() |
#34 | ||||
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Hi,
I'm getting errors again. I attach the log file, and also quote the lines: log_Allwmake_1.zip Quote:
Quote:
Quote:
Quote:
Did you experienced the same problem? Regards, Attila |
|||||
![]() |
![]() |
![]() |
![]() |
#35 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
An other two questions:
1. should I compile first the ThirdParty package before OF16ext? Because the compiler is always looking for those files... 2. should I switch to older gcc than 4.5? |
|
![]() |
![]() |
![]() |
![]() |
#36 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Quote:
Thanks, Attila |
||
![]() |
![]() |
![]() |
![]() |
#37 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
You should have the lnInclude (that's lower-case L, lower-case N, upper-case i, nclude)... the directories are in the root of each library. Look at src/OpenFOAM/lnInclude; src/finiteVolume/lnInclude, etc..
As for the errors you're seeing, yeah, you need to have the third party stuff compiled. I found this the worst part of the process... and my solution was very, very ugly. But I got it to work. I'll try and remember what I did.
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#38 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
Go to ThirdParty directory, run ./AllMake
It will fail, but it will have downloaded all the necessary .tar.gz files to ThirdParty/rpmBuild/SOURCES. Now, when AllMake runs, it unpacks these .tar.gz files into source directories in ThirdParty/rpmBuild/BUILD. Here's the ugliest part: when something fails, you will not be editing the unpacked directory... you will be editing the tar.gz archive itself. I used the default ArchiveManager or whatever, and opened the necessary files, made the changes, saved them, then it asked if I wanted to save the archive. It was pretty easy. I did a diff on the archives, and here's what I changed, apparently: LIBCCMIO I remember this package could not identify my computer platform, and its custom-written platform guesser config/config.guess, config/config.system and config/config.gnu.to.star ultimately called it "unknown". All the platforms have their own subdirectory under config/, so the script would look for config/unknown, and fail. So I chose an existing directory that sounded close enough and copied it to config/unknown. MESQUITE This one was easier than I thought. I edited include/Mesquite.hpp and added: #include <stdlib.h> to line 64. PARMGRIDGEN I edited /Makefile.in and changed: # Which make to use make = gmake To: # Which make to use make = make The rest of them compiled first try. Hopefully this works for you!
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
![]() |
#39 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 ![]() |
Hello David,
thank you for your help! Now the compilation of ThirParty goes better, except paraview as we discussed before: Quote:
I start to compile OF. Best Regards, Attila Last edited by Attesz; November 15, 2011 at 07:00. |
||
![]() |
![]() |
![]() |
![]() |
#40 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
Right... forgot to mention - I never did get Paraview to compile. I don't use it. I read somewhere in the forums that the fix was adding a simple include in one of the files. I think you include stddef, but I can't remember.
__________________
~~~ Follow me on twitter @DavidGaden |
|
![]() |
![]() |
![]() |
Tags |
11.10, ext, of extended |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.1 installation problem on Fedora 14 | armonica | OpenFOAM Installation | 16 | March 31, 2011 13:16 |
Error in apt-get update for installation of OpenFoam 1.7.1 on Ubuntu 10.10 | StuntedChicken | OpenFOAM Installation | 1 | January 9, 2011 10:43 |
New openfoam installation | fivos | OpenFOAM Installation | 5 | April 1, 2009 03:58 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |