|
[Sponsors] |
OF15 libccmio and thus ccm26ToFoam do not compile |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 16, 2009, 19:15 |
|
#21 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 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 |
|
November 17, 2009, 02:05 |
|
#22 | |
Member
Bernard Esterhuyse
Join Date: Mar 2009
Location: Pretoria, South Africa
Posts: 50
Rep Power: 17 |
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:
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 |
||
July 27, 2010, 09:44 |
strange error
|
#23 |
Member
Andrea Petronio
Join Date: Mar 2009
Location: Trieste, Italy
Posts: 43
Rep Power: 17 |
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 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 09:59. Reason: I found the right post! |
|
November 24, 2010, 13:22 |
|
#24 |
Member
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 16 |
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 |
|
November 24, 2010, 18:20 |
|
#25 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi José,
Run this command: Code:
echo $FOAM_MPI_LIBBIN Code:
/Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinIntel64DPOpt/openmpi-1.4.1 Code:
LINKEXE = $(CC) $(c++FLAGS) -lpthread -L$(FOAM_MPI_LIBBIN) -lPstream 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 Best regards, Bruno
__________________
|
|
June 1, 2011, 12:30 |
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 |
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. |
|
June 1, 2011, 12:38 |
|
#27 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 1, 2011, 20:24 |
|
#28 |
New Member
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 16
Rep Power: 16 |
Hi Bruno,
thanks a lot! It worked. Best regards, Gustavo. |
|
July 21, 2011, 12:10 |
|
#29 |
New Member
Gustavo
Join Date: Feb 2010
Location: Curitiba - PR - Brasil
Posts: 16
Rep Power: 16 |
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. |
|
July 21, 2011, 18:23 |
|
#30 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Gustavo,
Here you go, it's updated: http://www.cfd-online.com/Forums/ope...tml#post316994 post #29 Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forces in OF15 | richard | OpenFOAM Running, Solving & CFD | 180 | July 9, 2018 11:54 |
Fan type BC in OF15 | hsieh | OpenFOAM Running, Solving & CFD | 31 | July 30, 2015 13:22 |
[Commercial meshers] Ccm26tofoam problems | knabhishek | OpenFOAM Meshing & Mesh Conversion | 8 | April 15, 2014 09:37 |
Canbt compile libso autoMesh OF15 | andersking | OpenFOAM Bugs | 9 | May 1, 2013 08:29 |
Wmake ccm26ToFoam compilation problem under Ubuntu x64 810 | kprzysowagmailcom | OpenFOAM Installation | 7 | November 6, 2009 05:33 |