Hi, I am trying to compile
I am trying to compile 1.5 from the source, all is fine except for lib autoMesh.
The error I get is
+ wmake libso autoMesh
SOURCE=autoHexMesh/autoHexMeshDriver/autoRefineDriver.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/decompositionAgglomeration/decompositio nMethods/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/dynamicMesh/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/finiteVolume/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/lagrangian/basic/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/meshTools/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/edgeMesh/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/triSurface/lnInclude -IlnInclude -I. -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude -I/home/anders/OpenFOAM/OpenFOAM-1.5/src/OSspecific/Unix/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/autoRefineDriver.o
/home/anders/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/PtrList.C: In copy constructor 'Foam::PtrList<t>::PtrList(const Foam::PtrList<t>&) [with T = Foam::featureEdgeMesh]':
autoHexMesh/autoHexMeshDriver/autoRefineDriver.C:260: instantiated from here
/home/anders/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/PtrList.C:56: error: invalid conversion from 'Foam::IOobject*' to 'Foam::featureEdgeMesh*'
make: *** [Make/linuxGccDPOpt/autoRefineDriver.o] Error 1
I am compiling with gcc-4.2.3 (ubuntu system compiler)
I will try to use the binary package for now.
Good work, though, looking forward to testing this out.
I've recompiled everything fro
I've recompiled everything from source (except the docs), using gcc-4.3.1 and the top-level OpenFOAM-1.5/Allwmake.
Everything went fine, so it looks like a gcc issue to me. I'm using SuSE 10.3 (64-bit) with the ThirdParty gcc.
The new bin/buildParaView3.3-cvs script also worked fine, but I fortunately already had the correct Qt installed. This can sometimes be a really annoying issue with paraview. If you've already compile paraview from cvs sources, you might need to do a fresh cvs checkout - there are sometimes leftover cmake files that confuse newer builds.
Hi Andrew! I think the prob
I think the problem you are experiencing is a problem with old gcc-versions. I did a small workaround for that in order to get it to compile with gcc-4.0.1 on my Mac. Have a look at the first patch-file in the thread http://www.cfd-online.com/OpenFOAM_D...tml?1216382195 and edit autoRefineDriver.C (don't apply the whole patch unless you feel lucky)
Thank you Bernhard. Does the
Thank you Bernhard. Does the trick.
Note the hand-patched source is below:
Hi Bernhard, Thanks for th
Thanks for that. I'll give it a try at some point - In the end I relented and installed all the Thirdparty binaries.
wmake libso autoMesh fails to compile
As I wanted to upgrade from OF1.5 to 1.5-dev I did the svn checkout and so forth, updated my .bashrc and tried compiling 1.5-dev.
As I already suspected some errors to pop up, I decided to compile stuff seperately and not to use the top level Allwmake script. So I started in ~/OpenFOAM/OpenFOAM-1.5-dev/src$ by running the Allwmake script there.
However, once it tries to compile autoMesh it fails, for reasons beyond my understanding. Can somebody help me with this issue, please?
Here is some information about my system and the actual log off wmake libso autoMesh:
Have you tried upgrading to 1.5.x from the OpenCFD git repository?
I do not think it's wise to start the compilation somewhere in the middle for any release of OpenFOAM. Usually
./Allwmake |& tee Allwmake.log
does most of the jobs and you can start working from the errors. So write a log and inspect.
@your particular problem: I noticed that the gcc command has "-o OpenFOAM.out" in it.
This usually happens when you use "wmake" instead of "wmake libso" on a library. I understand that you use the src/Allwmake, which says "wmake libso autoMesh". How comes - I do not know ... Please try
and let us know whether it works.
Thanks for your reply. You're right, in stating, that:
So to conclude:
- This is not a bug, I posted in the wrong forum, sorry.
- Do NOT try to appy the instructions given in http://openfoamwiki.net/index.php/Ho...M_the_easy_way to compile OF 1.5-dev
- Use the top level Allwmake to compile
Thanks to Henry for getting me back on track.
gschaider I know it is too late and i am sorry for bothering you.
I has uses your Idea in compling gcc-4.3.1 to compile openfoam-1.5-dev.
but after a week, I do not have any success.in configure gcc-4.3.1(after installing mpfr-2.3.2):
igure --prefix=$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64 --exec-prefix=$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64 --enable-languages=c,c++ --enable-shared --disable-multilib --with-mpfr=$HOME/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/mpfr-2.3.2/but it has a problem and i do not know what to do:
checking 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
please help me .
|All times are GMT -4. The time now is 20:56.|