CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   OF15 libccmio and thus ccm26ToFoam do not compile (https://www.cfd-online.com/Forums/openfoam-bugs/62300-of15-libccmio-thus-ccm26tofoam-do-not-compile.html)

wyldckat November 16, 2009 18:15

1 Attachment(s)
Hello Bernarde,

Try using the modified version of AllwmakeLibccmio in the attachment. I made some changes to the original, for making it compile properly with mingw32 and mingw-w64, but should still work with Linux.

The two files inside the attached file, are part of the patches available in this tutorial. This modified version gets automatically the missing Make files for libccmio, from this thread. And does something else that I don't remember right now.

In case it still doesn't work, try this:
Code:

cd $WM_THIRD_PARTY_DIR/libccmio-2.6.1
wclean all
cd ..
./AllwmakeLibccmio

This is a strange bug.... the most likely problem should be a faulty download of the libccmio package, or how the package was unpacked.

I hope this fixes it.

By the way, have you fully recompiled OpenFOAM, or are you using the pre-compiled version? If you are using a pre-compiled version, that might be the source of the faulty issue! Or at the very least, you should rebuild OpenFOAM-1.6/wmake!

Best regards,
Bruno

bernarde November 17, 2009 01:05

Hi Bruno

Thanks for the detailed reply. After strugeling with it for a couple of hourse, I discovered the it was a corrupted libccmio package.

Quote:

This is a strange bug.... the most likely problem should be a faulty download of the libccmio package, or how the package was unpacked.
You were spot on.

I downloaded the package again, and then it worked fine. I have installed this with the precompiled binaries before, so I think that won't give problems.

Regards
Bernard

andrea July 27, 2010 08:44

strange error
 
Hi everybody,
I followed the instructions I found in the wiki, everything seemed fine but I got this error compiling the cmm26ToFoam utility:
Code:

ccm26ToFoam.C: In function ‘int main(int, char**)’:                                                                                               
ccm26ToFoam.C:915: error: no matching function for call to ‘Foam::fvMesh::fvMesh(Foam::IOobject, Foam::pointField&, Foam::faceList&, Foam::labelList&, Foam::labelList&)’
/home/andrea/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:192: note: candidates are: Foam::fvMesh::fvMesh(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Foam::Vector<double> > >&, const Foam::Xfer<Foam::List<Foam::face> >&, const Foam::Xfer<Foam::List<Foam::cell> >&, bool)
/home/andrea/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:181: note:                Foam::fvMesh::fvMesh(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Foam::Vector<double> > >&, const Foam::Xfer<Foam::List<Foam::face> >&, const Foam::Xfer<Foam::List<int> >&, const Foam::Xfer<Foam::List<int> >&, bool)
/home/andrea/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:169: note:                Foam::fvMesh::fvMesh(const Foam::IOobject&)
/home/andrea/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:148: note:                Foam::fvMesh::fvMesh(const Foam::fvMesh&)
make: *** [Make/linuxGccDPOpt/ccm26ToFoam.o] Error 1

anybody has a clue about this?

Thanks
Andrea

Ok, I answered myself:
http://www.cfd-online.com/Forums/ope...oam-1-6-a.html

jose_rodrig November 24, 2010 12:22

Hi,

I am having a strange error when trying to wmake ccm26ToFoam

the message is the following:

JoseRodrigComp:Optional joserodrigues$ ./Allwmake
+ cd /Volumes/OpenFOAM/ThirdParty-1.7.1
+ ./AllwmakeLibccmio
+ cd libccmio-2.6.1
+ cpMakeFiles libccmio
+ set +x
cpMakeFiles libccmio .
+ wmake libso
'/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt/libccmio.dylib' is up to date.
+ '[' -e /Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt/libccmio.dylib ']'
+ wmake ccm26ToFoam
g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O2 -DNoRepository -ftemplate-depth-40 -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/finiteVolume/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -I/Volumes/OpenFOAM/ThirdParty-1.7.1/libccmio-2.6.1 -I/Volumes/OpenFOAM/ThirdParty-1.7.1/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L -lPstream Make/darwinIntel64DPOpt/ccm26ToFoam.o -L/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt \
-lfiniteVolume -lmeshTools -lccmio -lOpenFOAM -lpthread -lm -o /Volumes/OpenFOAM/OpenFOAM-1.7.1/applications/bin/darwinIntel64DPOpt/ccm26ToFoam
ld: -L must be immediately followed by a directory path (no space)
collect2: ld returned 1 exit status
make: *** [/Volumes/OpenFOAM/OpenFOAM-1.7.1/applications/bin/darwinIntel64DPOpt/ccm26ToFoam] Error 1


Can anybody help me?

I m using OpenFOAM 1.7.1 installed on Mac OS X with openmpi from macports and paraview 3.8.1.

THX

wyldckat November 24, 2010 17:20

Hi José,

Run this command:
Code:

echo $FOAM_MPI_LIBBIN
It should output this path (or something very similar):
Code:

/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt/openmpi-1.4.1
If the path is shown (and perhaps even if it isn't), then check the file "OpenFOAM-1.7.1/wmake/rules/darwinIntel64/c++" and see if the line LINKEXE has something similar to this:
Code:

LINKEXE    = $(CC) $(c++FLAGS) -lpthread -L$(FOAM_MPI_LIBBIN) -lPstream
It should be the "-L$(FOAM_MPI_LIBBIN)" that is only outputting "-L".

But if that previous path isn't shown at all, then something has gotten miswired somehow. The environment variable FOAM_MPI_LIBBIN is set in the file "OpenFOAM-1.7.1/etc/settings.sh", in the section dedicated to setting up the MPI to be used. Run:
Code:

echo $WM_MPLIB
and check the file "settings.sh" in the MPI section to see if it looks properly wired ;)

Best regards,
Bruno

ghindi June 1, 2011 11:30

Compile problem ccm26ToFoam in OpenFOAM 1.7.1
 
Hi there,

I'm using Ubuntu 11.04 and I've installed OpenFOAM 1.7.1 from synaptic package manager, following the instructions from the OpenFOAM site. So I don't have the ThirdParty directory.

I'm trying to compile the ccm26ToFoam but I got the following error message.

./Allwmake: line 10: ./AllwmakeLibccmio: no such file or directory

Does anyone know how to compile in this condition?
I'm still learning to work with linux, so I do appreciatte if you take that in consideration when giving me the instructions.

Regards,

Gustavo.

wyldckat June 1, 2011 11:38

Greetings Gustavo,

How time flies... I've already reported the bug about this here back in October 2010: http://www.openfoam.com/mantisbt/view.php?id=61

It points to a fix I made for this posted here at the forum: http://www.cfd-online.com/Forums/ope...tml#post280437

Best regards,
Bruno

ghindi June 1, 2011 19:24

Hi Bruno,

thanks a lot! It worked.

Best regards,

Gustavo.

ghindi July 21, 2011 11:10

Hi Bruno,

I've updated to OpenFOAM 2.0.0.
I've tried your steps and it didn't work.
What should I do differently?

Best regards,

Gustavo.

wyldckat July 21, 2011 17:23

Hi Gustavo,

Here you go, it's updated: http://www.cfd-online.com/Forums/ope...tml#post316994 post #29 :cool:

Best regards,
Bruno


All times are GMT -4. The time now is 05:56.