1.6-ext compilation
Hello,
I am trying to compile OpenFOAM-1.6-ext. Running ./Allwmake gave a lot of error so I started step by step: I run wmake libso in OpenFOAM/OpenFOAM-1.6-ext/applications/solvers/basic/laplacianFoam. At first I had some files missing, so I made copies from 1.5-dev for the following files: - OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/pointHit.H - OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/primitivePatch.H - OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/primitiveFacePatch.H - OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvcDdt.H - OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/fvcDdt.C Most errors disappeared. The output is now Code:
SOURCE=laplacianFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/laplacianFoam.o |
Well first, you should not have had to copy those files from 1.5-dev and it would be better if you didn't. Take pointHit.H as an example. You should already have it in OpenFOAM-1.6-ext/src/OpenFOAM/meshes/primitiveShapes/objectHit/pointHit.H. If you do not, then something went wrong in the download process. But if you have it there and just not in lnInclude, then I think the problem is that you are compiling the code out of order. Allwmake does things in a certain order, so to run it "step-by-step" means you need to run it line-by-line, in the same order it wants to do things. Eventually, it Allwmake would have caused pointHit.H to be symbolically linked into the directory where you say you copied it. I would suggest undoing what you've done (don't copy files from 1.5-dev), try Allwmake again, and deal with (or post) the first error you come across.
As far as your gnu error, others have run across it here and here, but the essence of it seems to be that some component of your compiler may be out of date. Hope that helps- |
Thank you, Mr Boger,
I deleted the files I stole from 1.5-dev, and took al ook at Allwmake. The line that build the ThirdParty sources was commented. So I did: cd $WM_THIRD_PARTY_DIR ./AllMake and CMake could not find my C++ compiler: Code:
This system rpm command: rpm --force-debian env | grep CXX I get: Code:
WM_CXXFLAGS=-m64 -fPIC |
OK I resolved this by setting
compilerInstall=System in etc/settings.sh I can do AllMake.stage1 and AllMake.stage2 But when I run AllMake.stage3, I get: Code:
This system rpm command: rpm --force-debian |
You might try
Code:
ln -s /usr/bin/make /usr/bin/gmake |
Hi flowris
the instruction that Mr. Boger gave you is correct plus, for the following steps, I would advise you to follow this cookbook I prepared myself while I was painfully installing OF-1.6-ext last week 1 - modify the $WM_PROJECT_DIR/etc/bashrc file for installation in /opt/OpenFOAM 2 - before running the Allwmake script, install the Thirdparty packages separately There are scripts in the Thirdparty directory, ThirdParty/Allwmake.stage[0-4] run them always before resourcing the $WM_PROJECT_DIR/etc/bashrc file 3 - before executing point 2, the installation of some packages is advised, see http://www.cfd-online.com/Forums/ope...okbook-12.html These are: rpm alien build-essential cmake flex bison binutils-dev byacc texinfo m4 gcc-multilib libglib2.0-dev libglu1-mesa-dev libiodbc2-dev libjpeg62-dev libmng-dev libmpfr1 libmpfr1ldbl libmysqlclient15-dev libpng12-dev libpq-dev libsqlite0-dev libtiff4-dev mesa-common-dev xorg-dev 4 - before running the Allwmake.stage3 script it is necessary to install the zlib1g-dev package 5 - add a QT_THIRD_PARTY=1 to the Allwmake.stage4 script 6 - for installing qt under debian (for compiling paraview 3.8.1), some packages must be installed, see http://doc.qt.nokia.com/4.7.old/requirements-x11.html These are: * libfontconfig1-dev * libfreetype6-dev * libx11-dev * libxcursor-dev * libxext-dev * libxfixes-dev * libxft-dev * libxi-dev * libxrandr-dev * libxrender-dev cheers, and let me know! regards, diego |
Hello Mr Boger and Mr Angeli,
I made the link, which allowed me to run AllMake.stage3. I followed the steps in the cookbook, except for step 1. I also added Code:
QT_BIN_DIR=/usr/bin My ThirdParty is now completely ready. Thanks a lot! |
OK, I was too happy too soon. When I tried to do the same thing on my home computer, I gt this output after ./AllMake.stage3
Code:
======================================== |
try to install package libstdc++5
it complains it cannot find the library regards d.a. |
I installed libstdc++5 (not standard in Ubuntu 10.04-LTS, but it worked out).
My bash cannot download files form https servers. I have the following error, several times,until it gives up: Code:
--2011-02-04 13:01:06-- (try: 2) https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz Code:
ping: unknown host https://wci.llnl.gov/ |
The server problem is now also resolved and my ThirdParty is compiled.
I went into the src folder and started running Allwmake line by line. On line 22 "wmake libso OpenFOAM" there were several dependency problems. The first one is: Code:
make: *** No rule to make target `meshes/primitiveMesh/primitivePatch/patchZones.dep', needed by `Make/linux64GccDPOpt/dependencies'. Stop. |
you should run the ./Allwmake script in the root directory and not that in the src directory.
the mess is almost all about the third party stuff, compilation of the solvers, libs and apps should be straightforward now for you. |
Hi, I am running now from the directory ~/OpenFOAM/OpenFOAM-1.6-ext, but the same type of errors occur:
Code:
+ wmakePrintBuild -check Code:
/usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’: |
Anyone? this has still not been resolved...
|
Didn't you previously resolve the same problem yourself? There's something wrong with your gcc. What are you using for it?
|
No, the original problem was never solved, only the problems with the compilation of ThirdParty.
I tried with my system compiler, namely gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3, which was installed with Ubuntu Software Centre and should thus work correctly. I also tried with the OpenFOAM compiler, namely gcc (OpenFOAM) 4.3.3. I just fail to see the problem. |
Can somebody help me, please? I still have the error from February 14.
|
sorry, but I have no clue about a solution to your error!
I have already posted you the packages I needed to install, and that was all. Maybe if you re-post a bigger chunk of stdout we could figure it out better. |
I have encountered the missing file problem, you posted at the beginning of this thread. One of those files is pointHit.H. I tracked the problem back to downloading the source code tarball to a Windows or Mac computer, not directly to a linux computer. There are a few files that have the same names, just different capitalization, and downloading to Windows or Mac wipes out one capitalization of the files.
|
All times are GMT -4. The time now is 07:28. |