Contrib/swak4Foam
Hi,
sorry for that very low skilled question, but I don't succeed on myself... How to install and work with the library swak4Foam ? Hot link: http://openfoamwiki.net/index.php/Contrib/swak4Foam I just don't what to do. I tried on my own but nothing really good... Can anybody "give me his hand" with a step-by-step help ? |
Quote:
|
After executing
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_2.0/libraries/swak4Foam/ , I typed ./Allwmake The first lines were: Code:
No 'swakConfiguration'. Python etc won't work The last lines were: Code:
|
Quote:
Yours is a fairly recent Linux, right? There has been a change in the linker where dynamic links are not implicitly linked anymore and my suspicion is that this is the case here. Try the following: in Utilities/replayTransientBC/Make/options change the line -lmeshTools to -lmeshTools -ltriSurface and see if anything changes |
not better
Nothing better:
Code:
No 'swakConfiguration'. Python etc won't work Code:
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)' Code:
|
Quote:
Anyway: what kind of Linux are you using (my prejudices say "Ubuntu") and could you check which versions are the dynamic linker and the compiler ("ld -V" and "gcc -v" give you that information) For the groovyBC-problem: there must be something about a dynamic-lib not loading further up in the output |
Bernhard , thanks a lot. I don't know what I'd do without your kind help.
About my installation: Linux version: SUSE LINUX Release 11.4 (Celadon) Kernel Linux 2.6.37.1-1.2-desktop GNOME 2.32.1 Code:
ld -V Code:
gcc -v Beginning: Code:
Code:
SOURCE=replayTransientBC.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam201/src/cfdTools/lnInclude -I/opt/openfoam201/src/cfdTools/general/lnInclude -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/replayTransientBC.o |
Quote:
Quote:
Quote:
|
At the beginning, I can read:
Code:
.../libsimpleFunctionObjects.so' is up to date. Code:
collect2: ld returned 1 exit status Code:
--> FOAM FATAL IO ERROR: |
Quote:
ls $FOAM_MPI_LIBBIN whether this is set on your system. If yes: add -L$(FOAM_MPI_LIBBIN) at the start(!) of the line you've already been editing in Make/options This is not my fault. The binary distro you're using (I assume from the path that you didn't compile OF yourself) seems to be broken for compilations Quote:
|
Hi Bernhard!
OK. I understood that you think my installation is not as "clean" as possible. So I will try to reinstall everything. Right now, I am updating my system (zipper, yast,...), and then, I will fallow the instructions of http://www.openfoam.org/download/suse.php Does it sounds good for you? Do you think I am in the correct path? |
Re-install
I just installed OpenFOAM-2.1.0 from http://sourceforge.net/projects/foam/files/foam/suse/11.4/x86_64/
('cause my suse version is only 11.4). I fallowed the instruction of official OpenFOAM page http://www.openfoam.org/download/suse.php (rpm-i ... user configuration ... check on icofoam) . Then, I ran svn on swak4Foam . And then ./Allwmake. Still the same problem. I added -lmeshTools -ltriSurface -lPstream but it still dosn't work: Code:
collect2: ld returned 1 exit status |
Quote:
|
Greetings to all!
@Julien: I've just now finished testing on openSUSE 11.4 x86_64 with the RPM packages of OpenFOAM 2.1.0 and had no problems at all! My guess is that the problem you're having is due to placing swak4Foam's code in the folder "/opt/OpenFOAM-2.1.0/Telechargements/swak4Foam" :confused:. After the OpenFOAM environment was ready to be used, I did: Code:
mkdir -p $FOAM_RUN Best regards, Bruno |
(Thanks everybody! I really appreciate your kind help !)
OK, I apologize. I wanted to make it nice, so I made a special folder for the downloads, in order not to "mix" everything, but know I know I was totally wrong... Nevertheless, I did not understand from which cwd I should launch svn ? |
Quote:
|
Know, swak4foam is in /home/me/OpenFOAM/me-2.1.0/run
So, I made cd swak4Foam/ ./Alwmake There is still the errors. |
It works now !
Bernhard, Bruno , :) thanks a lot :) . I think I found.
Compiling problems: I had to change several /Make/option files:
/opt/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/dummy/libPstrem.so to /opt/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/lib/ (??? Why was it in a "dummy" folder ???) Now it's working! 'hope my post could help somebody else... Bernhard: updateded my controlDict . I works now. Once again, thanks a lot ! PS: do you think I should post a nethreaded, clean, in order to share my solution without all the rough exchanges with no interest? |
Got to catch this quickly before Bruno does. He's only 19 posts behind me and at the rate he's posting my estimate is that he'll overtake me before the weekend
Quote:
Not sure whether your stuff will no work in parallel Quote:
|
Hi Bernhard and Julien,
@Bernhard: Quote:
(And I got my powers upgraded a week and a half ago :rolleyes: nothing like whirling an axe at a spammer :D) @Julien: OK, having to hack around in OpenFOAM's installation folder, usually can only mean one thing: you've got a contaminated shell environment. Let me explain: your "$HOME/.bashrc" probably has something like this: Code:
source /opt/OpenFOAM-2.0.1/etc/bashrc Code:
alias of201='source /opt/OpenFOAM-2.0.1/etc/bashrc' Now, whenever you start a new terminal window/tab, you should run only one of the aliases above:
The other possibility is that you might have skipped some important step... for example, might not have installed Open-MPI - what does this command output: Code:
mpirun --version Bruno |
All times are GMT -4. The time now is 16:12. |