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

Problem while compiling ccmToFoam with wmake

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2022, 10:58
Post Problem while compiling ccmToFoam with wmake
  #1
New Member
 
Join Date: Nov 2022
Posts: 3
Rep Power: 4
mf47 is on a distinguished road
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.
mf47 is offline   Reply With Quote

Old   December 8, 2022, 05:26
Default
  #2
New Member
 
Kuralamuthan Veerapandiyan
Join Date: Jan 2022
Location: Chennai, India
Posts: 2
Rep Power: 0
Kuralamuthan is on a distinguished road
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.
Kuralamuthan is offline   Reply With Quote

Old   December 12, 2022, 08:17
Default
  #3
New Member
 
Join Date: Nov 2022
Posts: 3
Rep Power: 4
mf47 is on a distinguished road
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?
mf47 is offline   Reply With Quote

Reply

Tags
application, ccmtofoam, windows, wmake

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
[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


All times are GMT -4. The time now is 15:35.