|
[Sponsors] |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 7, 2011, 06:31 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64
|
#1 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Hi Foamers,
is it possible to compile 1.6-ext using git on Ubuntu 11.10? It seems that OF20x is working but I need the ext version too. Did anybody already manage to work it? Any suggestions are very welcome Thank you, Attila |
|
November 7, 2011, 16:21 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Attila,
I hope you don't mind, but I'm going to recycle my own words: Quote:
__________________
|
||
November 7, 2011, 16:47 |
|
#3 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Hi Bruno,
thank you very much. If i understand it well, I should replace the lines marked with red to the lines marked with green in the files as written in the headers of the six boxes, and then compile? Regards, Attila |
|
November 7, 2011, 16:55 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Attila,
Yep, that's the idea: replace the red lines with the green lines Actually, you might want to check what exactly was removed and/or added on each line, because the red lines might be different on 1.6-ext. Keep in mind that I haven't tested this combo (Ubuntu 11.10 + 1.6-ext), but the fix made for OpenFOAM 2.0.x was that one. Best regards, Bruno
__________________
|
|
November 7, 2011, 17:03 |
|
#5 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Thanks, I'm just learning programming Otherwise, in the 1.6-ext source code, I only found the wmake/rules/linux64Gcc/c++ file, the other ones do not exist...
Is it enough to modify? Regards |
|
November 8, 2011, 04:31 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Attila,
Quote:
Best regards, Bruno
__________________
|
||
November 8, 2011, 05:32 |
|
#7 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Ok thanks Bruno. Now I start to compile OF20x and 1.6-et on 11.10, and I'm also writing a manual on it. If it is working, I will share it.
Regards, Attila |
|
November 8, 2011, 15:10 |
Problems
|
#8 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Hi,
I've modified the source code, but I have problems with the compilation. I copy here the last 100 lines of the log I got many messages like '/usr/bin/ld: cannot find -lmeshTools' and it's the same in case of other applications. I'm probably using newer versions of Qt and everything as when these descriptions were made: http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/OpenFOAMonYourOwnLaptop.html and http://www.extend-project.de/user-fo...n-openfoam#276 Is it a problem? Anyway, using the above mentioned description I couldn't manage to compile 1.6-ext. But at least OF2.0.x is working fine on 11.10. So the codes, please give me advice: Quote:
|
||
November 8, 2011, 16:34 |
|
#9 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
I get compliation errors of ParaView as well:
Quote:
|
||
November 8, 2011, 16:45 |
|
#10 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
You also need to add -lrt to linker options for scotch.
Code:
File: src/decompositionMethods/scotchDecomp/Make/options: LIB_LIBS = \ -L$(SCOTCH_LIB_DIR) -lscotch \ -L$(SCOTCH_LIB_DIR) -lscotcherrexit \ -lrt
__________________
~~~ Follow me on twitter @DavidGaden |
|
November 8, 2011, 16:54 |
|
#11 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Thanks David! Isn't it a problem to have a semi-compiled paraview in the ThirdParty directory? Now I started again to compile OF. Every time I compile it, the whole code will be compiled or just the modified/new files? (beginner programmer question)
Do you have a working 1.6-ext on Ubuntu 11.10? Regards, Attila |
|
November 8, 2011, 17:02 |
|
#12 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
You can compile OpenFOAM with trash in the Paraview directory - it is totally independent. As for compiling a project in OpenFOAM, only the modified libraries / applications will be compiled. wmake seems to be good at managing this. Sometimes it will mess up, and you'll know it when things should work but don't. Then I set fire to everything in my project directory:
Code:
$ rmdepall $ rm -rf lnInclude $ wclean all
__________________
~~~ Follow me on twitter @DavidGaden |
|
November 8, 2011, 17:05 |
|
#13 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Ok, thank you for your help!
|
|
November 8, 2011, 18:12 |
|
#14 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
It's still running but I get the same errors as before. Have you ever managed to install 1.6-ext on 11.10?
Quote:
|
||
November 8, 2011, 18:18 |
|
#15 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
In the errors you listed above, none of the linker commands include the extra options that should be there: -shared -Xlinker --add-needed -Xlinker --no-as-needed
That means you didn't apply the changes (that Bruno suggested above) correctly. You need to edit your wmake/rules files.
__________________
~~~ Follow me on twitter @DavidGaden |
|
November 8, 2011, 18:26 |
|
#16 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
I forget to modify one c++ file, but the from the 6 listed file there is only 2 in 1.6-ext, and I still get the same errors. Should I modify all the c++ files in the rules dictionary?
|
|
November 9, 2011, 05:49 |
|
#17 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
I modified two C++ files, added the lines what you suggested and modified other stuff described here:
http://www.extend-project.de/user-fo...n-openfoam#276 But I still get the same errors. Otherwise I tried to install 1.6-ext on a fresh Natty system and it didn't work as well despite I followed this description accurately... I copy lines from the most recent compilation: Quote:
|
||
November 9, 2011, 07:06 |
|
#18 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
I also quote the foamInstallationTest app. output:
Quote:
Thank you in advance! Attila |
||
November 9, 2011, 11:17 |
|
#19 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
Yeah, I'd start all over. Next time you run Allwmake use this command:
Code:
./Allwmake 2>&1 | tee output Also, did you make the changes to src/decompositionMethods/scotchDecomp/Make/options that I mentioned above?
__________________
~~~ Follow me on twitter @DavidGaden Last edited by marupio; November 9, 2011 at 11:17. Reason: Opps, said "attach error", meant "attach output" |
|
November 9, 2011, 11:22 |
|
#20 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Yes I did the log and I attach it. I made the changes in the options file.
Otherwise, I only need the GGI part of 1.6ext, but I think it's more difficult to recompile 2.0.x the GGI part... Thank you! log_Allwmake_1.zip |
|
Tags |
11.10, ext, of extended |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.1 installation problem on Fedora 14 | armonica | OpenFOAM Installation | 16 | March 31, 2011 14:16 |
Error in apt-get update for installation of OpenFoam 1.7.1 on Ubuntu 10.10 | StuntedChicken | OpenFOAM Installation | 1 | January 9, 2011 11:43 |
New openfoam installation | fivos | OpenFOAM Installation | 5 | April 1, 2009 04:58 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |