|
[Sponsors] |
November 21, 2022, 10:58 |
Problem while compiling ccmToFoam with wmake
|
#1 |
New Member
Join Date: Nov 2022
Posts: 3
Rep Power: 4 |
Hello guys,
I am trying to compile the application for mesh conversion "ccmToFoam" by using the wmake command, but it is not working. Am I missing something? The output is as follows: $ wmake x86_64-w64-mingw32-g++ -std=gnu++11 -m64 -pthread -DOPENFOAM=2106 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNDEBUG -DNoRepository -ftemplate-depth-100 -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/finiteVolume/lnInclude -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/fileFormats/lnInclude -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/meshTools/lnInclude -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/conversion/lnInclude -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/conversion/ccm/lnInclude -iquote. -IlnInclude -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/OpenFOAM/lnInclude -I/home/ofuser/OpenFOAM/OpenFOAM-v2106/src/OSspecific/MSwindows/lnInclude -Wl,--enable-auto-import -Wl,--strip-all -Wl,--force-exe-suffix -L/home/ofuser/OpenFOAM/OpenFOAM-v2106/platforms/win64MingwDPInt32Opt/lib \ -lfiniteVolume -lgenericPatchFields -lmeshTools -lconversion -lccm -lOpenFOAM -L/home/ofuser/OpenFOAM/OpenFOAM-v2106/platforms/win64MingwDPInt32Opt/lib/dummy -lPstream \ -DNDEBUG -lm -o OpenFOAM.out.exe C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lfiniteVolume: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgenericPatchFields: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmeshTools: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lconversion: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lccm: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lOpenFOAM: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lPstream: No such file or directory collect2.exe: error: ld returned 1 exit status make: *** [/home/ofuser/OpenFOAM/OpenFOAM-v2106/wmake/makefiles/general:150: OpenFOAM.out.exe] Error 1 It seems that some files/directories are not available, but the application "ld.exe" is in the correct directory. Can you help me with this problem? PS.: I am using WSL on Windows. |
|
December 8, 2022, 05:26 |
|
#2 |
New Member
Kuralamuthan Veerapandiyan
Join Date: Jan 2022
Location: Chennai, India
Posts: 2
Rep Power: 0 |
Can you share the contents of Make/files and Make/options files here? Confirm whether you have sourced the bashrc file before running the wmake command.
|
|
December 12, 2022, 08:17 |
|
#3 |
New Member
Join Date: Nov 2022
Posts: 3
Rep Power: 4 |
Hello Kuralamuthan. Thank your for replying.
I found the following contents in the files you mentioned: Make/files: ccmToFoam.C EXE = $(FOAM_APPBIN)/ccmToFoam Make/options: EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/fileFormats/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/conversion/lnInclude \ -I$(LIB_SRC)/conversion/ccm/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lgenericPatchFields \ -lmeshTools \ -lconversion -lccm However, it seems that the package ccmToFoam is paid now. Is there any alternative for mesh conversion such as using CGNS format? If so, do you know how can I install this package? |
|
Tags |
application, ccmtofoam, windows, wmake |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] wmake problem | vville | OpenFOAM Installation | 1 | October 8, 2015 06:01 |
code compilation problem with wmake | bmikuz | OpenFOAM Programming & Development | 2 | October 17, 2012 10:30 |
Patches for OpenFOAM 1.7 on MacOS X | gschaider | OpenFOAM Installation | 101 | September 21, 2011 06:37 |
Wmake problem | thumthae | OpenFOAM Installation | 12 | December 3, 2008 10:30 |
Compiling Problem on Debian | besto | OpenFOAM Installation | 8 | August 13, 2008 16:29 |