CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Errors in compiling ccm26ToFoam (http://www.cfd-online.com/Forums/openfoam/112969-errors-compiling-ccm26tofoam.html)

sudo February 8, 2013 17:05

Errors in compiling ccm26ToFoam
 
This is my very first post to this great forum that I have been lurking for ages :D
But I am getting more serious with OpenFoam and it's time to ask you guys for help.

So, I followed the instructions on the other thread from 2012, post #37 here:
http://www.cfd-online.com/Forums/ope...#post365682#37

But I get the following when I try to compile ccm26ToFoam:
A few remarks first:
1. I compiled OpenFoam 2.1.1 on the 64bit Centos 6.3 VBox installation, everything seems to be fine.
2. The CD Adapco rep sent us the links to download libccmio version 2.06.024, I'm no expert on the company's version numbering so is this a more recent version to 2.6.1 that is required by ./AllwmakeLibccmio (both the default one & the one in the post above)? Or is it an older version?
3. I renamed the folder (after decompressing libccmio.tar.gz) to libccmio-2.6.1 in order for the default ./AllwmakeLibccmio to work which I think it did.
4. Now, when I follow the post linked above, namely, when I do:

Code:

cd $WM_PROJECT_DIR/applications/utilities/mesh/conversion/Optional/ccm26ToFoam
wmake

I get the following errors:

Code:

SOURCE=ccm26ToFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/MyHome/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/MyHome/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/MyHome/OpenFOAM/ThirdParty-2.1.1/libccmio-2.6.1 -I/home/MyHome/OpenFOAM/ThirdParty-2.1.1/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/home/MyHome/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/MyHome/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C: In function ‘void ReadVertices(CCMIOError&, CCMIOID&, Foam::labelList&, Foam::pointField&)’:
ccm26ToFoam.C:188: error: ‘CCMIOSize’ was not declared in this scope
ccm26ToFoam.C:188: error: expected ‘;’ before ‘nVertices’
ccm26ToFoam.C:189: error: ‘nVertices’ was not declared in this scope
ccm26ToFoam.C:204: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘3’ to ‘CCMIOError CCMIOReadVerticesf(CCMIOError*, CCMIOID, CCMIOSize_t*, float*, CCMIOID*, float*, CCMIOIndex_t, CCMIOIndex_t)’
ccm26ToFoam.C:205: error: conversion from ‘int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C: In function ‘void ReadProblem(CCMIOError&, CCMIOID&, const Foam::Map<int>&, Foam::Map<Foam::word>&, Foam::wordList&, Foam::wordList&)’:
ccm26ToFoam.C:246: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
ccm26ToFoam.C:283: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
ccm26ToFoam.C: In function ‘void ReadCells(CCMIOError&, CCMIOID&, Foam::labelList&, Foam::labelList&, Foam::Map<int>&, Foam::DynamicList<int, 0u, 2u, 1u>&, Foam::DynamicList<int, 0u, 2u, 1u>&, Foam::labelList&, Foam::labelList&, Foam::labelList&, Foam::faceList&)’:
ccm26ToFoam.C:409: error: ‘CCMIOSize’ was not declared in this scope
ccm26ToFoam.C:409: error: expected ‘;’ before ‘nCells’
ccm26ToFoam.C:410: error: ‘nCells’ was not declared in this scope
ccm26ToFoam.C:433: error: expected ‘;’ before ‘nInternalFaces’
ccm26ToFoam.C:434: error: ‘nInternalFaces’ was not declared in this scope
ccm26ToFoam.C:442: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
ccm26ToFoam.C:446: error: expected ‘;’ before ‘size’
ccm26ToFoam.C:447: error: ‘size’ was not declared in this scope
ccm26ToFoam.C:465: error: expected ‘;’ before ‘size’
ccm26ToFoam.C:466: error: ‘size’ was not declared in this scope
ccm26ToFoam.C:470: error: conversion from ‘long unsigned int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C:473: error: conversion from ‘long unsigned int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C:474: error: conversion from ‘long unsigned int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C:506: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
ccm26ToFoam.C:510: error: expected ‘;’ before ‘nFaces’
ccm26ToFoam.C:511: error: ‘nFaces’ was not declared in this scope
ccm26ToFoam.C:519: error: conversion from ‘long unsigned int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C:521: error: conversion from ‘long unsigned int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C:522: error: conversion from ‘long unsigned int’ to non-scalar type ‘CCMIOIndex_t’ requested
ccm26ToFoam.C: In function ‘int main(int, char**)’:
ccm26ToFoam.C:659: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
ccm26ToFoam.C:663: error: cannot convert ‘unsigned int*’ to ‘CCMIOSize_t*’ for argument ‘3’ to ‘CCMIOError CCMIOEntityDescription(CCMIOError*, CCMIOID, CCMIOSize_t*, char*)’
ccm26ToFoam.C:674: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
ccm26ToFoam.C:756: error: cannot convert ‘int*’ to ‘CCMIOSize_t*’ for argument ‘4’ to ‘CCMIOError CCMIONextEntity(CCMIOError*, CCMIOID, CCMIOEntity, CCMIOSize_t*, CCMIOID*)’
make: *** [Make/linux64GccDPOpt/ccm26ToFoam.o] Error 1

So, any idea what is going on here? Any help is deeply appreciated.

Thanks.

wyldckat February 10, 2013 07:31

Greetings sudo and welcome to the forum!

Perhaps it's best that you ask for the specific version 2.6.1, if possible. From a quick search, I found this post: http://code-saturne.org/forum/viewtopic.php?f=8&t=987
In essence, according to the information on that thread, Code-Saturne is probably also not compatible with libccmio versions above 2.6.1 as well.

After you've managed to build with 2.6.1, maybe you'll more easily be able to upgrade the code to build with libccmio 2.6.24.

Best regards,
Bruno

sudo February 15, 2013 10:47

Thanks Bruno, I contacted our CD Adapco rep and he said they do not keep repository of older versions. He suggested trying to modify the script to adapt it to the new version (2.06.024), I am not sure how hard or even possible this is going to be. Any ideas?

wyldckat February 15, 2013 11:17

Quick answer: you can find the old version 2.6.1 embed into the following script: https://github.com/ogoe/OpenFOAM-1.6...mio-2.6.1.spec

sudo February 15, 2013 14:43

Bruno,
Thanks for your quick response, but unfortunately all the ftp links are not working from here, and the Lawrence Livermore VISIT's Third Party directory link is 404.

wyldckat February 15, 2013 18:22

:eek: I had no idea they had taken it out... well, googling for "libccmio-2.6.1.tar.gz" still brings some old copies back into light...

But I'm starting to see that it's best to request a copy of the latest library version, so that the ccm26ToFoam application can be upgraded...

CrazyFatDude February 17, 2013 17:33

Thanks, Bruno

- I did a search for libccmio 2.6.1 and I downloaded it, it's about 30MB uncompressed in size, no?

- CD Adapco already sent the latest version of their libccmio, version 2.06.024, which I believe is their latest version. The errors I posted in the first thread were from running the Allwmakelibccmio that came with OF with the latest version.

- I'll try compiling with the 2.6.1 version tomorrow and report back.


All times are GMT -4. The time now is 09:14.