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

calcMassFlow with OF15-debian-package

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2009, 08:38
Default calcMassFlow with OF15-debian-package
  #1
Member
 
Sebastian
Join Date: Mar 2009
Location: Munich, Germany
Posts: 30
Rep Power: 17
fightingfalcon23 is on a distinguished road
Hi all together,

I switched back vom jaunty to intrepid and for installation of OpenFoam and Paraview I used the packages on the following site:

http://www.cfd-online.com/Forums/ope...ntu-810-a.html

All works fine. But I´m not able to compile calcMassFlow anymore. You need the src-folder with the files of OpenFOAM to compile it and in the package-Version, this files are missing. Can someone help me?

Thanks a lot
ff23
fightingfalcon23 is offline   Reply With Quote

Old   July 6, 2009, 05:10
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by fightingfalcon23 View Post
I switched back vom jaunty to intrepid and for installation of OpenFoam and Paraview I used the packages on the following site:

http://www.cfd-online.com/Forums/ope...ntu-810-a.html

All works fine. But I´m not able to compile calcMassFlow anymore. You need the src-folder with the files of OpenFOAM to compile it and in the package-Version, this files are missing. Can someone help me?
Wow. An OpenFOAM-installation without src. That is like .... Windows without the Internet-Explorer ... OK. Bad example ..... C++ without templates ... better example: usable but not much fun

Obviously the packager had the good intention to not give the sources to "regular users", the way usual packages do. Maybe he had the good sense to roll an additional package openfoam-devel or similar that adds the sources. Look for that
gschaider is offline   Reply With Quote

Old   July 8, 2009, 05:47
Default
  #3
Member
 
Sebastian
Join Date: Mar 2009
Location: Munich, Germany
Posts: 30
Rep Power: 17
fightingfalcon23 is on a distinguished road
Thank you Bernd for your answer! At first, it was not the answer, I hoped for. But than I found the package you talked about! Now I have the src-folder!

But I have already a problem installing calcMassFlow:

OF is not installed in the home-directory, but in the path usr/lib/OpenFoam-1.5!

When I copy the files of calcMassFlow to /home/<User>/OpenFOAM/<user>-1.5/applications/calcMassFlow, i get the following error while using wmake:

g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC Make/linux64Gcc/calcMassFlow.o -L/usr/lib/OpenFOAM-1.5/lib \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/sebastian/OpenFOAM/sebastian-1.5/applications/bin/calcMassFlow
/usr/bin/ld: cannot find -liberty
collect2: ld gab 1 als Ende-Status zurück
make: *** [/home/sebastian/OpenFOAM/sebastian-1.5/applications/bin/calcMassFlow] Fehler 1

How can I fix this error?
fightingfalcon23 is offline   Reply With Quote

Old   July 8, 2009, 13:23
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by fightingfalcon23 View Post
When I copy the files of calcMassFlow to /home/<User>/OpenFOAM/<user>-1.5/applications/calcMassFlow, i get the following error while using wmake:

g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.5/src/meshTools/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC Make/linux64Gcc/calcMassFlow.o -L/usr/lib/OpenFOAM-1.5/lib \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/sebastian/OpenFOAM/sebastian-1.5/applications/bin/calcMassFlow
/usr/bin/ld: cannot find -liberty
collect2: ld gab 1 als Ende-Status zurück
make: *** [/home/sebastian/OpenFOAM/sebastian-1.5/applications/bin/calcMassFlow] Fehler 1
The missing library is (on my system, your milage may vary) installed by the package binutils-devel. But THAT (missing libiberty.a) was already discussed eleswhere on the board

Bernhard
gschaider is offline   Reply With Quote

Old   July 8, 2009, 16:54
Default
  #5
Member
 
Sebastian
Join Date: Mar 2009
Location: Munich, Germany
Posts: 30
Rep Power: 17
fightingfalcon23 is on a distinguished road
At first: sorry for confusing Bernd with Bernhard!

I am using Ubuntu 8.10 and after installing the package binutils-dev, the compilation worked fine! Thank you for the tip!
fightingfalcon23 is offline   Reply With Quote

Old   July 9, 2009, 05:21
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by fightingfalcon23 View Post
Thank you Bernd for your answer! At first, it was not the answer, I hoped for. But than I found the package you talked about! Now I have the src-folder!
Maybe you should contact the packager and suggest to move the wmake-folder from the "binary" to the "devel" package. wmake without the src doesn'T make sense and the problem would be easier to detect ("missing wmake" or similar)

Bernhard
gschaider is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian package for ubuntu 810 deepblue17 OpenFOAM Installation 26 May 5, 2010 07:43
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
debian package of openfoam-dev for ubuntu deepblue17 OpenFOAM Installation 0 May 22, 2009 04:49
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 16:42.