CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Errors in compiling ccm26ToFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 8, 2013, 17:05
Unhappy Errors in compiling ccm26ToFoam
  #1
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 4
sudo is on a distinguished road
This is my very first post to this great forum that I have been lurking for ages
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:
star-ccm mesh to O\/F

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.
sudo is offline   Reply With Quote

Old   February 10, 2013, 07:31
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 10:47
Default
  #3
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 4
sudo is on a distinguished road
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?
sudo is offline   Reply With Quote

Old   February 15, 2013, 11:17
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   February 15, 2013, 14:43
Default
  #5
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 4
sudo is on a distinguished road
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.
sudo is offline   Reply With Quote

Old   February 15, 2013, 18:22
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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...
wyldckat is offline   Reply With Quote

Old   February 17, 2013, 17:33
Default
  #7
New Member
 
The solar system
Join Date: Dec 2012
Posts: 7
Rep Power: 4
CrazyFatDude is on a distinguished road
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.
CrazyFatDude is offline   Reply With Quote

Reply

Tags
ccm26tofoam, linux64

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 42 May 14, 2012 20:48
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 19:04.