CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree5Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   November 7, 2011, 06:31
Default OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64
  #1
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 7, 2011, 16:21
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Attila,

I hope you don't mind, but I'm going to recycle my own words:
Quote:
Originally Posted by wyldckat View Post
The fix OpenCFD/SGI made for OpenFOAM 2.0.x was this: https://github.com/OpenFOAM/OpenFOAM...3e8d0e85b889d9

If you do a similar fix on 1.6-ext, it should work as intended.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 7, 2011, 16:47
Default
  #3
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 7, 2011, 16:55
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   November 7, 2011, 17:03
Default
  #5
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 04:31
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Attila,

Quote:
Originally Posted by Attesz View Post
Otherwise, in the 1.6-ext source code, I only found the wmake/rules/linux64Gcc/c++ file, the other ones do not exist...
I hope you've managed to figure it out on your own, but in case you haven't, the answer to:
Quote:
Originally Posted by Attesz View Post
Is it enough to modify?
Is: yes.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 8, 2011, 05:32
Default
  #7
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 15:10
Unhappy Problems
  #8
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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:
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/PSD] Error 1
make[2]: *** [PSD] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -ltriSurface
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ldynamicMesh
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/surfaceToPatch] Error 1
make[1]: *** [surfaceToPatch] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/surfaceTransformPoints.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lmeshTools -ltriSurface -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/surfaceTransformPoints
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/stressDifferences.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressDifferences
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ltriSurface
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/surfaceTransformPoints] Error 1
make[1]: *** [surfaceTransformPoints] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [surface] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressDifferences] Error 1
make[2]: *** [stressDifferences] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/wallGradU.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallGradU
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/stressSymmComponents.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressSymmComponents
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallGradU] Error 1
make[2]: *** [wallGradU] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/stressSymmComponents] Error 1
make[2]: *** [stressSymmComponents] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [viscoelastic] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/wallHeatFlux.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lcompressibleRASModels -lreactionThermophysicalModels -lfiniteVolume -lspecie -lbasicThermophysicalModels -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallHeatFlux
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/IFCLookUpTableGen.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lspecie -lmeshTools -lOpenFOAM -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/IFCLookUpTableGen
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lbasicThermophysicalModels
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallHeatFlux] Error 1
make[2]: *** [wallHeatFlux] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/IFCLookUpTableGen] Error 1
make[1]: *** [IFCLookUpTableGen] Error 2
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/adiabaticFlameT' is up to date.
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/wallShearStress.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallShearStress
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/chemkinToFoam.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lreactionThermophysicalModels -lbasicThermophysicalModels -lspecie -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/chemkinToFoam
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/wallShearStress] Error 1
make[2]: *** [wallShearStress] Error 2
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lreactionThermophysicalModels
/usr/bin/ld: cannot find -lbasicThermophysicalModels
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/chemkinToFoam] Error 1
make[1]: *** [chemkinToFoam] Error 2
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/equilibriumCO' is up to date.
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/yPlusLES.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusLES
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/equilibriumFlameT' is up to date.
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lincompressibleLESModels
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusLES] Error 1
make[2]: *** [yPlusLES] Error 2
make[2]: `/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT' is up to date.
make[1]: Target `application' not remade because of errors.
make: *** [thermophysical] Error 2
gcc -m64 -Xlinker -z -Xlinker nodefs Make/linux64GccDPOpt/yPlusRAS.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lincompressibleTransportModels -lincompressibleRASModels -lbasicThermophysicalModels -lspecie -lcompressibleRASModels -lfiniteVolume -lmeshTools -lsampling -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/yPlusRAS
/usr/bin/ld: warning: -z nodefs ignored.
/usr/bin/ld: cannot find -lincompressibleTransportModels
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lbasicThermophysicalModels
/usr/bin/ld: cannot find -lcompressibleRASModels
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -lsampling
collect2: ld returned 1 exit status
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 16:34
Default
  #9
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
I get compliation errors of ParaView as well:

Quote:
Linking C shared library ../../../bin/libvtkNetCDF.so
[ 5%] Built target vtkNetCDF
make: *** [all] Error 2
error: Bad exit status from /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.VlyXCW (%build)


RPM build errors:
Bad exit status from /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.VlyXCW (%build)
Installing package: ParaView-3.10.1
Uninstalling ParaView-3.10.1 using RPM: ParaView-3.10.1-linux64GccDPOpt.x86_64
Installing ParaView-3.10.1 using RPM file: /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/attila/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 16:45
Default
  #10
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
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
I never got Paraview working. I think I saw a solution to that one floating around here somewhere. You need to add an include to the top of one of its source build files. Can't remember.
mm.abdollahzadeh likes this.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   November 8, 2011, 16:54
Default
  #11
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 17:02
Default
  #12
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
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
and try again.
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   November 8, 2011, 17:05
Default
  #13
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
Ok, thank you for your help!
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 18:12
Default
  #14
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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:
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/dieselEngineFoam] Error 1
make[1]: *** [dieselEngineFoam] Error 2
Making dependency list for source file dieselFoam.C
SOURCE=dieselFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I../dieselEngineFoam -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/turbulenceModels/compressible/turbulenceModel -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/lagrangian/basic/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/lagrangian/dieselSpray/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/liquids/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/liquidMixture/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/specie/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/reactionThermo/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/basic/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/../applications/solvers/reactionThermo/XiFoam -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/thermophysicalModels/chemistryModel/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/ODE/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dieselFoam.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/sonicFoamAutoMotion.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lfiniteVolume -ldynamicMesh -lmeshTools -llduSolvers -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/sonicFoamAutoMotion
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -ldynamicMesh
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/sonicFoamAutoMotion] Error 1
make[1]: *** [sonicFoamAutoMotion] Error 2
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 8, 2011, 18:18
Default
  #15
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
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
marupio is offline   Reply With Quote

Old   November 8, 2011, 18:26
Default
  #16
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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?
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 9, 2011, 05:49
Default
  #17
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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:
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/triSurface/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/cellSplitter.o Make/linux64GccDPOpt/modifyMesh.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-ltriSurface -lmeshTools -ldynamicMesh -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/modifyMesh
/usr/bin/ld: cannot find -ltriSurface
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ldynamicMesh
collect2: ld returned 1 exit status
make[3]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/modifyMesh] Error 1
make[2]: *** [modifyMesh] Error 2
Making dependency list for source file refineHexMesh.C
SOURCE=refineHexMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/meshTools/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/refineHexMesh.o
^[OFg++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/errorEstimation/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/icoErrorEstimate.o -L/home/attila/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt \
-lerrorEstimation -lmeshTools -ldynamicMesh -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoErrorEstimate
/usr/bin/ld: cannot find -lerrorEstimation
/usr/bin/ld: cannot find -lmeshTools
/usr/bin/ld: cannot find -ldynamicMesh
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[2]: *** [/home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoErrorEstimate] Error 1
make[1]: *** [icoErrorEstimate] Error 2
Making dependency list for source file icoMomentError.C
SOURCE=icoMomentError.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/errorEstimation/lnInclude -IlnInclude -I. -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/attila/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoMomentError.o
Should I start over from scratch again?
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 9, 2011, 07:06
Default
  #18
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
I also quote the foamInstallationTest app. output:

Quote:
Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: ubuntu
OS: Linux version 3.0.0-12-generic
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/attila/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/attila/OpenFOAM/attila-1.6-ext no no
$WM_THIRD_PARTY_DIR ...OpenFOAM/OpenFOAM-1.6-ext/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/attila/OpenFOAM/OpenFOAM-1.6-ext yes yes yes

$FOAM_APPBIN ...ext/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_SITE_APPBIN ...OAM/site/1.6-ext/bin/linux64GccDPOpt no no
$FOAM_USER_APPBIN ...ext/applications/bin/linux64GccDPOpt no no
$WM_DIR ...tila/OpenFOAM/OpenFOAM-1.6-ext/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.6-ext/lib/linux64GccDPOpt yes yes yes
$FOAM_SITE_LIBBIN ...OAM/site/1.6-ext/lib/linux64GccDPOpt no no
$FOAM_USER_LIBBIN ...M/attila-1.6-ext/lib/linux64GccDPOpt no no
$MPI_ARCH_PATH ...nmpi-1.4.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.6.1
Minimum required: 4.3.1

gcc 4.6.1 /usr/bin/gcc
gzip 1.3.12 /bin/gzip
tar 1.25 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/attila/OpenFOAM/OpenFOAM-1.6-ext/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
I'm using newer gcc, isn't it a problem maybe?

Thank you in advance!

Attila
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Old   November 9, 2011, 11:17
Default
  #19
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
Yeah, I'd start all over. Next time you run Allwmake use this command:
Code:
./Allwmake 2>&1 | tee output
Then when it completes, open output and do a case-sensitive search for "Error". The first Error 1 or Error 2 or Error 3 you encounter, this is your problem. Copy this line, along with about 5 lines up and 5 lines down for context. Or just attach output as a file attachment to this thread. Report back.

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"
marupio is offline   Reply With Quote

Old   November 9, 2011, 11:22
Default
  #20
Senior Member
 
Attesz's Avatar
 
Attesz
Join Date: Mar 2009
Posts: 355
Rep Power: 8
Attesz is an unknown quantity at this point
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
__________________
CFD= Cleverly Formatted Data
Attesz is offline   Reply With Quote

Reply

Tags
11.10, ext, of extended

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 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 11: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


All times are GMT -4. The time now is 13:11.