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

OF15 libccmio and thus ccm26ToFoam do not compile

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2009, 18:15
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Attached Files
File Type: gz awlibccmio.tar.gz (6.8 KB, 1098 views)
wyldckat is offline   Reply With Quote

Old   November 17, 2009, 01:05
Default
  #22
Member
 
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17
bernarde is on a distinguished road
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
bernarde is offline   Reply With Quote

Old   July 27, 2010, 08:44
Default strange error
  #23
Member
 
Andrea Petronio
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 43
Rep Power: 17
andrea is on a distinguished road
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

Last edited by andrea; July 27, 2010 at 08:59. Reason: I found the right post!
andrea is offline   Reply With Quote

Old   November 24, 2010, 12:22
Default
  #24
Member
 
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 15
jose_rodrig is on a distinguished road
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
jose_rodrig is offline   Reply With Quote

Old   November 24, 2010, 17:20
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   June 1, 2011, 11:30
Default Compile problem ccm26ToFoam in OpenFOAM 1.7.1
  #26
New Member
 
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 16
Rep Power: 16
ghindi is on a distinguished road
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.
ghindi is offline   Reply With Quote

Old   June 1, 2011, 11:38
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   June 1, 2011, 19:24
Default
  #28
New Member
 
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 16
Rep Power: 16
ghindi is on a distinguished road
Hi Bruno,

thanks a lot! It worked.

Best regards,

Gustavo.
ghindi is offline   Reply With Quote

Old   July 21, 2011, 11:10
Default
  #29
New Member
 
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 16
Rep Power: 16
ghindi is on a distinguished road
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.
ghindi is offline   Reply With Quote

Old   July 21, 2011, 17:23
Default
  #30
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Gustavo,

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

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forces in OF15 richard OpenFOAM Running, Solving & CFD 180 July 9, 2018 10:54
Fan type BC in OF15 hsieh OpenFOAM Running, Solving & CFD 31 July 30, 2015 12:22
[Commercial meshers] Ccm26tofoam problems knabhishek OpenFOAM Meshing & Mesh Conversion 8 April 15, 2014 08:37
Canbt compile libso autoMesh OF15 andersking OpenFOAM Bugs 9 May 1, 2013 07:29
Wmake ccm26ToFoam compilation problem under Ubuntu x64 810 kprzysowagmailcom OpenFOAM Installation 7 November 6, 2009 04:33


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