CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OF-1.6-ext worked, but paraFoam and paraView BLANK (http://www.cfd-online.com/Forums/openfoam-installation/115957-1-6-ext-worked-but-parafoam-paraview-blank.html)

donaldinee April 10, 2013 04:46

OF-1.6-ext worked, but paraFoam and paraView BLANK
 
Dear Foamers,

I am a Beginner in OpenFOAM and need your helps.
After two weeks, I had succesfully installed OpenFOAM-1.6-ext on Ubuntu 12.10 64bit. The compilation of the ThirdParty seemed working well, if i saw from the log files. As for the OF-1.6-ext, i saw some warnings, Error 2 and other errors in the log.Allwmake file.


/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt/postCalc.o -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/hanny/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc47DPOpt/vorticity
make[1]: Target `application' not remade because of errors.
make: *** [postProcessing] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -fpermissive -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc47DPOpt/subsetMesh.o -L/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt \
-lfiniteVolume -lmeshTools -lOpenFOAM -liberty -ldl -lm -o /home/hanny/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc47DPOpt/subsetMesh
make[2]: Target `application' not remade because of errors.
make[1]: *** [manipulation] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [mesh] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/decompositionMethods/decompositionMethods/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -IlnInclude -I. -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -fpermissive -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc47DPOpt/redistributeMeshPar.o -L/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt \
-lfiniteVolume -ldecompositionMethods -lmeshTools -ldynamicMesh -ldynamicFvMesh -lOpenFOAM -liberty -ldl -lm -o /home/hanny/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc47DPOpt/redistributeMeshPar
/usr/bin/ld: cannot find -ldynamicFvMesh
collect2: error: ld returned 1 exit status
make[2]: *** [/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc47DPOpt/redistributeMeshPar] Error 1
make[1]: *** [redistributeMeshPar] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/finiteArea/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/lagrangian/basic/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -DFACE_DECOMP -IlnInclude -I. -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -fpermissive -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gcc47DPOpt/processorMeshesReconstructor.o Make/linux64Gcc47DPOpt/processorMeshesRebuild.o Make/linux64Gcc47DPOpt/processorFaMeshes.o Make/linux64Gcc47DPOpt/fvFieldReconstructor.o Make/linux64Gcc47DPOpt/faFieldReconstructor.o Make/linux64Gcc47DPOpt/pointFieldReconstructor.o Make/linux64Gcc47DPOpt/tetPointFieldReconstructor.o Make/linux64Gcc47DPOpt/reconstructLagrangianPositions.o Make/linux64Gcc47DPOpt/reconstructParMesh.o -L/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt \
-lfiniteVolume -lfiniteArea -llagrangian -lmeshTools -lfaceDecompFiniteElement -lfaceDecompositionMotionSolver -lOpenFOAM -liberty -ldl -lm -o /home/hanny/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64Gcc47DPOpt/reconstructParMesh
make[1]: Target `application' not remade because of errors.
make: *** [parallelProcessing] Error 2
make: Target `application' not remade because of errors.

If run the foamInstallationTest, no error detected and i can also run the tutorial e.g.pitzDaily, but paraFoam and paraView didn't work. It came nothing.

so i am confused :confused: , whether my installation was really successful.
Can somebody help me to solve this problem?



Thanks before.

wyldckat April 14, 2013 08:58

Greetings donaldinee and welcome to the forum!

There seems to have been several problems during your build. Run Allwmake like this:
Code:

./Allwmake > make.log 2>&1
When it's over, find the first error logged inside the file "make.log". That should indicate what went wrong in the first place.

If you are unable to figure it out, search and replace any sensitive data inside that file, then run:
Code:

tar -czf make.log.tar.gz make.log
And attach "make.log.tar.gz" in your next post.

Best regards,
Bruno

donaldinee April 15, 2013 03:21

1 Attachment(s)
Hello Bruno,

firstly thanks for your reply. It brightens up my Day :).

so i did what you wrote and found the error in make.log like below:

/usr/bin/ld: cannot find -lmesquiteMotionSolver
collect2: error: ld returned 1 exit status
make: *** [/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt/libsolidBodyMotion.so] Error 1

(make.log is attached also)

FYI,

i am using
g++ 4.7.2
gcc 4.7.2
flex 2.5.35
QT 4.7.4

i followed this instruction: http://repo.or.cz/w/OpenFOAM-1.6-ext....04_64-bit.txt

and git source from git://repo.or.cz/OpenFOAM-1.6-ext.git

Thanks before.

cheers,
Hanny

wyldckat April 15, 2013 08:10

Hi Hanny,

Check if the file "Mesquite_all_headers.hpp" exists, like this:
Code:

ls -l /home/hanny/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64Gcc472DPOpt/include/Mesquite_all_headers.hpp
If it does not exists or if the file is empty, go into the ThirdParty folder and run:
Code:

./AllMake > make.log 2>&1
Check if everything went well or not.

The other possibility is the need for a clean up of the library that gave errors. If I'm not mistaken, run the following commands from the main "OpenFOAM-1.6-ext" folder:
Code:

wclean libso src/meshMotion/mesquiteMotionSolver
wmake libso src/meshMotion/mesquiteMotionSolver

If all goes well, run Allwmake once again.

But if it still gives the same error, then perhaps you need to merge with the branch "gcc47", but I'm not certain about this. I have not tested the following commands, so I do not know what will happen, but they should be executed from the "OpenFOAM-1.6-ext" folder:
Code:

git merge hotfix/gcc47
Then run Allwmake once again.

Best regards,
Bruno

donaldinee April 17, 2013 04:05

3 Attachment(s)
Hi Bruno,

i checked like what u said abt Mesquite_all_headers.hpp and the file does exist and not empty, BUT it's not located on linux64Gcc472DPOpt like in error message. The file is located in linux64Gcc47DPOpt (Gcc47 not Gcc472).

P { margin-bottom: 0.08in; } '/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt/libRBFMotionSolver.so' is up to date.
+ wmake libso mesquiteMotionSolver
make: *** No rule to make target `/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.
2/platforms/linux64Gcc472DPOpt/include/Mesquite_all_headers.hpp', needed by `mesquiteMotionSolver.dep'.
Stop.



can u help how to change it?


Abt the ThirdParty Compilation, everything went well (see attachment)


and if i run
wclean libso src/meshMotion/mesquiteMotionSolver wmake libso src/meshMotion/mesquiteMotionSolver
the result is
wclean error: could not change to directory 'src/meshMotion/mesquiteMotionSolver'
(I guess, it is still the failure of wrong folder)

and abt
git merge hotfix/gcc47the result is
hanny@hanny-VirtualBox:~/OpenFOAM/OpenFOAM-1.6-ext$ git merge hotfix/gcc47
Already up-to-date.


Yesterday i tried to install paraview again following this instruction
http://www.cfd-online.com/Forums/ope...-2-64-bit.html

and i changed the paraFoam file with the one in this link below (cause previously my paraFoam looked different, i put also in attachment my old paraFoam)
https://github.com/OpenFOAM/OpenFOAM...r/bin/paraFoam
and i hacked paraFoam like u said in another forum
http://www.cfd-online.com/Forums/ope...tml#post401643

Now, if i type paraFoam, it works well, the paraview launches the window :).
IS IT OK to change the paraFoam like i mentioned before????

so my Problem now just with Mesquite library i guess (due to wrong Folder).
can u guide me to solve this problem?

Thanks before, Bruno!

BR
Hanny

wyldckat April 17, 2013 16:55

Hi Hanny,

Quote:

Originally Posted by donaldinee (Post 421134)
i checked like what u said abt Mesquite_all_headers.hpp and the file does exist and not empty, BUT it's not located on linux64Gcc472DPOpt like in error message. The file is located in linux64Gcc47DPOpt (Gcc47 not Gcc472).

P { margin-bottom: 0.08in; } '/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64Gcc47DPOpt/libRBFMotionSolver.so' is up to date.
+ wmake libso mesquiteMotionSolver
make: *** No rule to make target `/home/hanny/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.
2/platforms/linux64Gcc472DPOpt/include/Mesquite_all_headers.hpp', needed by `mesquiteMotionSolver.dep'.
Stop.



can u help how to change it?

OK, first run the following commands:
Code:

echo $MESQUITE_DIR
echo $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS

It should show you two lines of text and they should be identical. If not, edit the file where this should be defined:
Code:

nano $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS/etc/mesquite-2.1.2.sh
The contents of the file should be this:
Code:

# Load mesquite-2.1.2 libraries and binaries if available
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

export MESQUITE_DIR=$WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/$WM_OPTIONS
export MESQUITE_BIN_DIR=$MESQUITE_DIR/bin
export MESQUITE_LIB_DIR=$MESQUITE_DIR/lib
export MESQUITE_INCLUDE_DIR=$MESQUITE_DIR/include

# Enable access to the package runtime applications and libraries
[ -d $MESQUITE_BIN_DIR ] && _foamAddPath $MESQUITE_BIN_DIR
[ -d $MESQUITE_LIB_DIR ] && _foamAddLib  $MESQUITE_LIB_DIR

Another solution is to create a symbolic link to the folder you mentioned... perhaps it's the quickest solution:
Code:

cd $WM_THIRD_PARTY_DIR/packages/mesquite-2.1.2/platforms/
ln -s linux64Gcc472DPOpt linux64Gcc47DPOpt

This way you will have the symbolic path "linux64Gcc47DPOpt" pointing to "linux64Gcc472DPOpt".



Quote:

Originally Posted by donaldinee (Post 421134)
Abt the ThirdParty Compilation, everything went well (see attachment)

Well, if it says it's all OK, then it should be all OK...



Quote:

Originally Posted by donaldinee (Post 421134)
and if i run
wclean libso src/meshMotion/mesquiteMotionSolver wmake libso src/meshMotion/mesquiteMotionSolver
the result is
wclean error: could not change to directory 'src/meshMotion/mesquiteMotionSolver'
(I guess, it is still the failure of wrong folder)

I didn't have 1.6-ext handy, so I couldn't test it myself. The correct command was:
Code:

wclean libso src/dynamicMesh/meshMotion/mesquiteMotionSolver
wmake libso src/dynamicMesh/meshMotion/mesquiteMotionSolver

Quote:

Originally Posted by donaldinee (Post 421134)
and abt
git merge hotfix/gcc47the result is
hanny@hanny-VirtualBox:~/OpenFOAM/OpenFOAM-1.6-ext$ git merge hotfix/gcc47
Already up-to-date.

I didn't know about this... I guess it was already merged, which makes sense.


Quote:

Originally Posted by donaldinee (Post 421134)
Yesterday i tried to install paraview again following this instruction
http://www.cfd-online.com/Forums/ope...-2-64-bit.html

and i changed the paraFoam file with the one in this link below (cause previously my paraFoam looked different, i put also in attachment my old paraFoam)
https://github.com/OpenFOAM/OpenFOAM...r/bin/paraFoam
and i hacked paraFoam like u said in another forum
http://www.cfd-online.com/Forums/ope...tml#post401643

Now, if i type paraFoam, it works well, the paraview launches the window :).
IS IT OK to change the paraFoam like i mentioned before????

Yes, it's OK. And what matters is that it works! :)

Best regards,
Bruno

donaldinee April 18, 2013 04:03

Hi Bruno,

many thanks for your helps :):):), now it works well.
Obrigado.

ps: is there any tutorials to show how to insert a new solver to OF?

BR,
Hanny

wyldckat April 18, 2013 16:58

Quote:

Originally Posted by donaldinee (Post 421444)
ps: is there any tutorials to show how to insert a new solver to OF?

Quick answer: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam


All times are GMT -4. The time now is 10:03.