Building Gcc 4.3 for compiling OpenFOAM 1.5-dev
I have question,can you tell me how to modify files manually? what is the exact link and where and how to put?
I ask this because it's been almost two years since I looked at that post, so I can't remember very well about what the problems were back then...
I did not know exactly what was the problem.but I know it know, my basic problem is i can't compile gcc-4.3.1 to compile opengoam-1.5-dev. I can't do ./Allwmake.
I have errors in compiling gcc-4.3.1,
hecking LIBRARY_PATH variable... contains current directory
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
make: *** [configure-stage1-gcc] Error 1
do you know anything about that, i put whole weel to solve it and search in cfd-online and google.but i can't solve it yet.
OK, I've moved your posts to a new thread, because this is a whole other complicated topic! ;)
A few questions:
thanks for reply
ubuntu 12.04 LTs
I compiled gcc-4.3.1 for openfoam-1.5-dev,after hard try for a week.I can't sucess and switch to install openfoam-1.6-ext, ./Allwmake thirdparty.it is ok, when compile openfoam-1.6-ext,again,the problem is gcc,
my gcc --version is 4.6.4 and
gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.3
User version : 4.6.4
Minimum required: 4.3.1
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.
# compilerInstall = OpenFOAM | System
# We can override the value of compilerInstall from prefs.sh
# Or we can force it right here
I do'nt know this is good idea.
because i do'nt know i should install and compile gcc for Openfoam-1.6-ext or not?
if yes, i can't do that, because i do not have sucess in compiling gcc-4.3.1 for openfoam-1.5-dev.
please help me.
i should install openfoam for my project and put lot of time to install without any success an tired of it.
OK, then I just need to know two more details:
steps to compile gcc-4.3.1 that i used:
If you don't have the correct version of gcc (4.3.1 or newer, see gcc.gnu.org), then do the following (for 32 bit, some minor changes are required for 64 bit, like linux64 instead of linux):
1. Install gcc 4.3.1. This requires that either any version of cc or gcc are available already. It also requires that two libraries, mpfr and gmp, are available, which is the reason to the lengthy installation procedure below:
mv gcc-4.3.1 gcc-4.3.1_orig; mkdir -p gcc-4.3.1/platforms/linux
mkdir linuxSrc; cd linuxSrc
tar xzf gmp-4.3.2.tar.gz
./configure --prefix=$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux -enable-languages=c,c++ --with-gmp=$HOME/OpenFOAM/ThirdParty/gmp-4.3.2 --with-mpfr=$HOME/OpenFOAM/ThirdParty/mpfr-2.3.2 2>&1 | tee log_configure
make 2>&1 | tee log_make #Check this file for error messages!
make install 2>&1 | tee log_make_install #Check this file for error messages! Before compiling OpenFOAM-1.5-dev we need to make sure that our freshly compiled gcc will be used, which is done by a change in $WM_PROJECT_DIR/etc/settings.h:
The only thing left that I still need to know is: Which revision of OpenFOAM 1.5-dev are you using? And where did you get it from?
thanks a lot for answering.
No I remove rm -rf OpenFOAM-1.5 and I download the source code from link of cfd-online. users put the link in some thread. the link is for source.forage.
but i get openfoanm-1.6-ext almost nine months ago from git
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAMŪ-1.6-ext
and i think, it is complete. but during a year, i have openfoam-2.1.1 and i did'nt compile openfoam-1.6-ext until a week ago
i need to use Finite element matrices(for example, i need icofsifoam) do i need dev or ext version of openfoam not official.
OK, try following these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04
You might want to backup the folder "OpenFOAM-1.6-ext" you've got, before following those instructions, since they specify to download from one of the mirrors. But you can also try using the folder you currently have got!
thanks a lot for reply.
I have finally installed openfoam-1.6-ext .i run cavity and result are good.
I have used the link you told me:
I have 2 problems in downloading packages for third party, i downloaded seperateley and installed.then ./AllMake the openfaom-1.6-ext.
now i have 2 problems that i searched in google and in this forum.
when i open a terminal, i have these lines:
Environment variables defined for OpenMPI:
OPENMPI_BIN_DIR : /usr/bin
OPENMPI_LIB_DIR : /usr/lib/openmpi/lib
OPENMPI_INCLUDE_DIR : /usr/
and you explain in
there are no errors in memory.
when i run icofoam in cavity and then parafoam:
created temporary 'cavity.foam'
/home/sadeghpour/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.12.0/platforms/linux64Gcc46DPOpt/lib/paraview-3.12/paraview: symbol lookup error: /home/sadeghpour/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.12.0/platforms/linux64Gcc46DPOpt/lib/paraview-3.12/libQVTK.so.pv3.12: undefined symbol: _ZN19QAbstractProxyModel11setItemDataERK11QModelIn dexRK4QMapIi8QVariantE
i install paraview again. but when i ./AllMake in
it said there is no directory, there is in ThirdParty/package/paraview-3.12.0
but ./AllMake does not work there too.
Edit the file "~/.bashrc", go to the end of the file and check if this line is present:
This is because the instructions were updated in the last 24h and the current instructions now suggest that you use Ubuntu's version of ParaView.
To install Ubuntu's ParaView version, run:
my problem with parafoam is solved.but when i open new terminal,those lines repeat every time.
I want to appreciate your help during this week.
when i have problem,i always search in this forum and in almost of thread, you guide all the foamers.
thank you for your kindness.
|All times are GMT -4. The time now is 15:07.|