CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Compile problem ccm26ToFoam in OpenFoam-1.6 (http://www.cfd-online.com/Forums/openfoam-bugs/67203-compile-problem-ccm26tofoam-openfoam-1-6-a.html)

shildenbrand August 7, 2009 01:04

Compile problem ccm26ToFoam in OpenFoam-1.6
 
Dear all,

I was trying to compile ccm26ToFoam with the new OpenFOAM Version 1.6.
Besides having to copy some Headerfiles and other stuff from Version 1.5, I get a problem as follows:

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&)’
/soft/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)
/soft/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)
/soft/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:169: note: Foam::fvMesh::fvMesh(const Foam::IOobject&)
/soft/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:148: note: Foam::fvMesh::fvMesh(const Foam::fvMesh&)

I guess that there is some change in the syntax of the funtion call - but is that all? Do I have to change other parts of the source code as well?

Thanks for you help,

Stefan

mattijs August 7, 2009 04:23

No, the only change is in the constructor of fvMesh. I pushed a fixed ccm26ToFoam.C to 1.6.x.

I got a clean build by
cd ThirdParty-1.6
./AllwmakeLibccmio
wmake $FOAM_UTILITIES/mesh/conversion/Optional/ccm26ToFoam/

thanks for reporting.

shildenbrand August 7, 2009 04:50

Hi Mattijs,

thanks a lot. That solved the problem.

Stefan

az_monger August 7, 2009 08:36

Where i can find this new ccm26tofoam.c file?
 
Hello,

i read your discussion and have the same problem.
mattijs said, he solved the problem with a new ccm26ToFoam.C file.

Here's my question: Where i can find this file?
Or is there another way to change only the ccm26ToFoam.C file?

Thank you in advance.

mattijs August 7, 2009 08:48

You can get 1.6.x from the git repository (see http://www.opencfd.co.uk/openfoam/download.html)

az_monger August 7, 2009 08:59

Thanks a lot
 
Thanks. I have to install git firstly.

mabentele August 19, 2009 03:57

Hello Mattijs,
I see the same errors as Stefan,
tried to solve it as you posted but got no changes.
Are there any further suggestions ?

Thanks a lot
Markus

################


ben_fnx520> cat libccmio-2.6.1/Make/files
/* Note: make any changes to this file in wmakeFiles/ */
adf = libadf
$(adf)/ADF_fortran_2_c.c
$(adf)/ADF_interface.c
$(adf)/ADF_internals.c
ccmio = libccmio
$(ccmio)/ccmio.c
$(ccmio)/ccmiocore.c
$(ccmio)/ccmioprivate.c
$(ccmio)/ccmioutility.c
$(ccmio)/ccmioversion.c
/*
* the cgns library is not used by ccmio
* retain for documentation purposes only
*
cgns = libcgns
$(cgns)/adf_cond.c
$(cgns)/adf_ftoc.c
$(cgns)/cgns_error.c
$(cgns)/cgns_internals.c
$(cgns)/cgnslib.c
*/
LIB = $(FOAM_LIBBIN)/libccmio


ben_fnx520> cat libccmio-2.6.1/Make/options
/* Note: make any changes to this file in wmakeFiles/ */
/* EXE_INC = */


ben_fnx520>


./AllwmakeLibccmio
+ packageDir=libccmio-2.6.1
+ '[' '!' -d libccmio-2.6.1 ']'
+ '[' -d libccmio-2.6.1 -a '!' -d libccmio-2.6.1/Make ']'
+ '[' -d libccmio-2.6.1/Make ']'
+ wmake libso libccmio-2.6.1
'/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/lib/linux64GccDPOpt/libccmio.so' is up to date.

wmake $FOAM_UTILITIES/mesh/conversion/Optional/ccm26ToFoam
SOURCE=ccm26ToFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/meshTools/lnInclude -I/disk_f231/tmp/REDHAT/OpenFoam_16/ThirdParty-1.6/libccmio-2.6.1 -I/disk_f231/tmp/REDHAT/OpenFoam_16/ThirdParty-1.6/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C: In function \u2018int main(int, char**)\u2019:
ccm26ToFoam.C:915: error: no matching function for call to \u2018Foam::fvMesh::fvMesh(Foam::IOobject, Foam::pointField&, Foam::faceList&, Foam::labelList&, Foam::labelList&)\u2019
/disk_f231/tmp/REDHAT/OpenFoam_16/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)
/disk_f231/tmp/REDHAT/OpenFoam_16/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)
/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:169: note: Foam::fvMesh::fvMesh(const Foam::IOobject&)
/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:148: note: Foam::fvMesh::fvMesh(const Foam::fvMesh&)
make: *** [Make/linux64GccDPOpt/ccm26ToFoam.o] Error 1

mattijs August 19, 2009 06:56

You seem to be running 1.6. As said the fix is in 1.6.x.

mabentele August 19, 2009 09:54

Yep

thank you

Markus

wiker October 7, 2009 08:14

wmakeFiles/libccmio/Make not found
 
Hello all,

I just started using OF and I have some problems when trying to compile ccm26ToFoam. I get an error from AllwmakeLibccmio telling me that it cannot copy the folder wmakeFiles/libccmio/Make into the libccmio-2.6.1 folder. When looking inside the ThirdParty-1.6.x folder (I'm running the Git version of OF which compiled just fine on my 64bit linux box) there is no wmakeFiles folder anywhere to find. Shouldn't it be one there or should I be looking somewhere else?

I have also downloaded and unpacked the 32bit ThirdParty files from the OF download site but can't find a wmakeFiles folder there either...

All suggestions on how to solve my problem are much appreciated.

Best regards

Niclas

wyldckat October 17, 2009 05:42

The missing Make files...
 
Hello Niclas,

Well, I ran into the same problem and it seems it's a remnant bug from a year ago... the fix is here.
Fortunately it seems to still work! But don't forget to use the git version (1.6.x) for ccm26ToFoam to build properly ;)

Best regards,
Bruno

wiker October 20, 2009 15:43

It worked! Many thanks Bruno!

Cheers
Niclas


All times are GMT -4. The time now is 06:43.