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

OpenFOAM compilation fails on applicationsutilitiesmesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2008, 20:54
Default I'm trying to compile OpenFOAM
  #1
New Member
 
Geoff Johnson
Join Date: Mar 2009
Location: Burnaby, BC, Canada
Posts: 11
Rep Power: 17
geoffjay is on a distinguished road
I'm trying to compile OpenFOAM 1.4.1 with paraview 2.4.4 (cmake v2.4.8) on Suse Linux Enterprise Server 10.1

I've followed the document at:

http://openfoamwiki.net/non_cdl/OpenFOAMWiki/index.php

and everything goes fine until the last step where I execute ./Allwmake from my OpenFOAM directory. The first build error seems to be:

/usr/bin/ld: cannot find -lfiniteVolume

Anyone have a solution? Thanks.
geoffjay is offline   Reply With Quote

Old   February 21, 2008, 21:35
Default I didn't mention before that t
  #2
New Member
 
Geoff Johnson
Join Date: Mar 2009
Location: Burnaby, BC, Canada
Posts: 11
Rep Power: 17
geoffjay is on a distinguished road
I didn't mention before that the machine arch is x86_64. I found some posts on this message board where people were having similar problems and a couple of them said to go and manually compile things so I've been tracing back the errors trying to compile the root of this evil and it's led me to the src/triSurface directory.

Inside that directory I run wmake and receive:

SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex++ -f $SOURCE ; mv lex.yy.cc Make/linux64GccDPOpt/readSTLASCII.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/crdc/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c Make/linux64GccDPOpt/readSTLASCII.C -o Make/linux64GccDPOpt/readSTLASCII.o
/bin/sh: flex++: command not found
mv: cannot stat `lex.yy.cc': No such file or directory
g++: Make/linux64GccDPOpt/readSTLASCII.C: No such file or directory
g++: no input files
make: *** [Make/linux64GccDPOpt/readSTLASCII.o] Error 1

There looks to be 3 things that are failing, flex++, lex.yy.cc, and readSTLASCII.C

I added flex using YaST and went into the triSurface directory and compiled that manually. After that I re-ran Allwmake and there seems to be new progress. I'll update on the next error (or hopefully not).
geoffjay is offline   Reply With Quote

Old   February 21, 2008, 23:04
Default Here I am again unfortunately.
  #3
New Member
 
Geoff Johnson
Join Date: Mar 2009
Location: Burnaby, BC, Canada
Posts: 11
Rep Power: 17
geoffjay is on a distinguished road
Here I am again unfortunately. This time the error looks like it occurs on vtkFoam compilation,

SOURCE=vtkFoam.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/crdc/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/crdc/OpenFOAM/linux64/paraview-2.4.4/include -I../PVFoamReader -IlnInclude -I. -I/home/crdc/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkFoam.o
In file included from vtkFoam.C:38:
../PVFoamReader/vtkFoamReader.h:40:30: error: vtkDataSetSource.h: No such file or directory
vtkFoam.C:39:35: error: vtkDataArraySelection.h: No such file or directory

and it carries on with similar "No such file or directory" errors for several .h and .c files that begin with vtk.
geoffjay is offline   Reply With Quote

Old   February 22, 2008, 04:29
Default No, all is one failure: find
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
No, all is one failure: find and install flex++ on your computer. Then, making sure that which flex++ shows something sensible, go to src and type ./Allwmake. Everything should build without problem.

Regarding the vtk/paraview failure, you will need to compile paraview locally. Detailed instructions are in:

http://openfoam-extend.svn.sourcefor...trunk/Core/Ope nFOAM-1.4.1-dev/buildInstructions.txt?view=markup

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 25, 2008, 19:44
Default I installed flex++ and continu
  #5
New Member
 
Geoff Johnson
Join Date: Mar 2009
Location: Burnaby, BC, Canada
Posts: 11
Rep Power: 17
geoffjay is on a distinguished road
I installed flex++ and continued with the instructions at the link that was provided by Hrvoje and the next error I get is about a missing ParaViewLibraryDepends.cmake file:

+ cd PVFoamReader
+ mkdir -p Make/linux64GccDPOpt
+ cd Make/linux64GccDPOpt
+ cmake ../..
CMake Error: Error in cmake code at
/home/crdc/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/ParaViewConfig.cmake :29:
INCLUDE Could not find include file: /home/crdc/OpenFOAM/linux64/paraview-2.4.4-obj/ParaViewLibraryDepends.cmake
Current CMake stack:
[2] /home/crdc/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/ParaViewConfig.cmake
[1] /home/crdc/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/CMakeLists.txt
CMake Error: Error in cmake code at
/home/crdc/OpenFOAM/linux64/cmake-2.4.8/share/cmake-2.4/Modules/UseVTKConfig40.c make:21:
LOAD_CACHE Cannot load cache file from /home/crdc/OpenFOAM/linux64/paraview-2.4.4-obj/VTK/CMakeCache.txt
Current CMake stack:
[4] /home/crdc/OpenFOAM/linux64/cmake-2.4.8/share/cmake-2.4/Modules/UseVTKConfig40.c make
[3] /home/crdc/OpenFOAM/linux64/cmake-2.4.8/share/cmake-2.4/Modules/FindVTK.cmake
[2] /home/crdc/OpenFOAM/linux64/paraview-2.4.4/ParaViewUse.cmake
[1] /home/crdc/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/postProcessing/graphic s/PVFoamReader/PVFoamReader/CMakeLists.txt
Warning: CMake is forcing CMAKE_C_FLAGS_DEBUG to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_C_FLAGS_RELEASE to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_C_FLAGS_MINSIZEREL to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_C_FLAGS_RELWITHDEBINFO to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_CXX_FLAGS_DEBUG to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_CXX_FLAGS_RELEASE to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_CXX_FLAGS_MINSIZEREL to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
Warning: CMake is forcing CMAKE_CXX_FLAGS_RELWITHDEBINFO to "" to match that imported from VTK. If this message appears for more than one imported project, you have conflicting options and will have to re-build one of those projects.
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Configuring done
+ make

???
geoffjay is offline   Reply With Quote

Old   February 25, 2008, 20:08
Default To get around the last error a
  #6
New Member
 
Geoff Johnson
Join Date: Mar 2009
Location: Burnaby, BC, Canada
Posts: 11
Rep Power: 17
geoffjay is on a distinguished road
To get around the last error and finish compilation I had to find the files (ParaViewLibraryDepends.cmake and CMakeCache.txt) and copy them into the directories that were complaining. Thanks for the help with pointing me at the right document.
geoffjay is offline   Reply With Quote

Old   April 24, 2008, 12:05
Default Geoff, where did you find t
  #7
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Geoff,

where did you find those files?

(trying on RHEL5 64-bit)

Thanks,

Mirko
mirko is offline   Reply With Quote

Old   April 24, 2008, 12:25
Default Please disregard my previous m
  #8
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Please disregard my previous message. I am still trying to figure out how to do a proper installation of OpenFoam. I'll read the instructions on the wiki page, and if I have trouble (& don't find the problem discussed here) I will post.

Sorry for the noise,

Mirko
mirko is offline   Reply With Quote

Old   April 24, 2008, 13:28
Default Have a look here: build in
  #9
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Have a look here:

build instructions

This should help you to build OpenFOAM and all necessary tools on your system from scratch.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 24, 2008, 15:28
Default Hrvoje, I apologize for bei
  #10
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Hrvoje,

I apologize for being obtuse as I was not able to find the site for development (except at http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/). I tried the CVS on sourceforge but it seems empty.

Thanks,

Mirko
mirko is offline   Reply With Quote

Old   April 24, 2008, 16:18
Default maybe: svn list https://op
  #11
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
maybe:

svn list https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/O penFOAM-1.4.1-dev

Let's see if that works :-)

Mirko
mirko is offline   Reply With Quote

Old   April 25, 2008, 14:18
Default Just for the record: the build
  #12
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Just for the record: the build instructions are generic, with minimal changes to software versions etc. You do not need to download the dev version to do this, any old version will do (+ some brains).

Look at it as a kind of step-by-step rather than an attempt to produce a canned build script.

Good luck,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 29, 2008, 16:26
Default Hrvoje, I was able to compi
  #13
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Hrvoje,

I was able to compile the -dev version using your instructions, after removing the dx-related directory (I was not able to install dx at this time).

My only issue is that the compilation used the system gcc (4.1.2) instead of the one that I downloaded with OF. I will look into that later (I did find some posts).

Thanks,

Mirko
mirko 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
Installation of OpenFoam 15 Compilation paraview soeren_brot OpenFOAM Installation 45 January 12, 2009 07:39
Compilation fails on Linuxx86 agrahn OpenFOAM Bugs 21 August 31, 2007 05:10
Compilation fails on suse linux 101 su_junwei OpenFOAM Bugs 2 July 20, 2007 05:56
OpenFOAM 14 compilation problem zaferleylek OpenFOAM Installation 4 May 8, 2007 15:52
OpenFOAM compilation on a linux machine Enric Aramburu (Aramburu) OpenFOAM Installation 2 January 4, 2005 04:02


All times are GMT -4. The time now is 07:26.