|
[Sponsors] |
August 24, 2014, 01:08 |
wmake new solver
|
#1 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
hi formers
i have a problem in wmake a new solver that i write it when i want wmake it, i have this error: make: *** No rule to make target `/opt/openfoam211/src/OpenFOAM/lnInclude/debugName.H', needed by `buoyantBoussinesqCO2SimpleFoam.dep'. Stop. |
|
August 24, 2014, 05:09 |
|
#2 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
It is linking problem,
You can fixed by adding -I$(LIB_SRC)/OpenFOAM/lnInclude to the solver options file. Then clean and recompile again. |
|
August 24, 2014, 05:24 |
|
#3 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
thanks alot
should i add comment "-I$(LIB_SRC" to solver? |
|
August 24, 2014, 05:45 |
|
#4 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
What do you mean? You have to add it in Make/options.
Code:
EXE_INC = \ -I$(LIB_SRC)/path to linked headers \ -I$(LIB_SRC)/OpenFOAM/lnInclude LIB_LIBS = \ -lOpenFOAM \ -l(used libraries names) |
|
August 24, 2014, 07:31 |
|
#5 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
hi again and thanks for your response
i add it but now i have this problem dell@ubuntu:~$ cd Desktop/imani-Solver/ dell@ubuntu:~/Desktop/imani-Solver$ of211 dell@ubuntu:~/Desktop/imani-Solver$ wmake linux64GccDPOpt/options:7: *** missing separator. Stop. Make/linux64GccDPOpt/options:7: *** missing separator. Stop. dell@ubuntu:~/Desktop/imani-Solver$ |
|
August 24, 2014, 07:41 |
|
#6 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Quote:
|
||
August 24, 2014, 08:00 |
|
#7 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
thanks alot
now i have another problem dell@ubuntu:~/Desktop/imani-Solver$ wclean dell@ubuntu:~/Desktop/imani-Solver$ wmake Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/path to linked headers -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o g++: error: to: No such file or directory g++: error: linked: No such file or directory g++: error: headers: No such file or directory make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1 |
|
August 24, 2014, 08:02 |
|
#8 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
yeah ....it is my option file
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \ -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \ -I$(LIB_SRC)/path to linked headers \ -I$(LIB_SRC)/OpenFOAM/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lsampling \ -lmeshTools \ -lfvOptions \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels -u incompressibleRASModelsLoad \ -lincompressibleTransportModels \ -lradiationModels \ -lOpenFOAM \ -l(used libraries names) |
|
August 24, 2014, 08:34 |
|
#9 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \ -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude -I$(LIB_SRC)/OpenFOAM/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lsampling \ -lmeshTools \ -lfvOptions \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels -u incompressibleRASModelsLoad \ -lincompressibleTransportModels \ -lradiationModels \ -lOpenFOAM Try this as your options but review this line -lincompressibleRASModels -u incompressibleRASModelsLoad \ I think it is wrong |
|
August 24, 2014, 08:46 |
|
#10 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
now i add it but i have this error
dell@ubuntu:~/Desktop/imani-Solver$ wmake linux64GccDPOpt/options:7: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/dell/Desktop/imani-Solver |
|
August 24, 2014, 08:53 |
|
#11 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
oooh thanks that error was about "/"
when i put it and wmake again i for of230 it was correctly wmake but for of211 i have these error dell@ubuntu:~/Desktop/imani-Solver$ wmake Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C could not open file basicThermo.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o In file included from buoyantBoussinesqCO2SimpleFoam.C:51:0: /home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude/radiationModel.H:48:25: fatal error: basicThermo.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1 |
|
August 24, 2014, 19:35 |
|
#12 | |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Quote:
and -lfluidThermophysicalModels You have to make sure that each header file you included in your code is linked in your options file thus the compiler will be able to see it. |
||
August 24, 2014, 22:26 |
|
#13 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 12 |
Not sure if this is related to your problem, but some of the OpenFOAM dependencies changed between OF-2.3.0 and OF-2.2.2 etc, so try using wclean before wmake, or alternatively manually removing the .dep files.
|
|
August 25, 2014, 00:48 |
|
#14 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
hi
thanks for your attention i add it but now i have error dell@ubuntu:~/Desktop/imani-Solver$ wmake options:11:53: warning: backslash and newline separated by space [enabled by default] Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1 dell@ubuntu:~/Desktop/imani-Solver$ wmake SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1 dell@ubuntu:~/Desktop/imani-Solver$ wclean dell@ubuntu:~/Desktop/imani-Solver$ wmake options:11:53: warning: backslash and newline separated by space [enabled by default] Making dependency list for source file buoyantBoussinesqCO2SimpleFoam.C could not open file fvIOoptionList.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file createIncompressibleRadiationModel.H for source file buoyantBoussinesqCO2SimpleFoam.C could not open file createFvOptions.H for source file buoyantBoussinesqCO2SimpleFoam.C SOURCE=buoyantBoussinesqCO2SimpleFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/transportModels/incompressible/singlePhaseTransportModel -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1 |
|
August 25, 2014, 01:09 |
|
#15 | |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 12 |
So your problem is not related to wmake looking for files in the wrong places, it is instead as hk318i already mentioned for one of your other files.
The lines you need to consider are near the top of your error message: Quote:
You need to find where these files are located, and include them in your 'Make/options' file. Also note, you can avoid the message about backslash and newline by removing the whitespace at the end of the lines, after the backslashes (\). Last edited by chrisb2244; August 25, 2014 at 01:10. Reason: Quote tags |
||
August 25, 2014, 02:16 |
|
#16 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
thanks
now i addd them i add fvoption to option file but now i have this error yet.... buoyantBoussinesqCO2SimpleFoam.C:52:28: fatal error: fvIOoptionList.H: No such file or directory compilation terminated. make: *** [Make/linux64GccDPOpt/buoyantBoussinesqCO2SimpleFoam.o] Error 1 fvIOoptionList.H file was in fvoptionfile that was added in option file |
|
August 25, 2014, 02:30 |
|
#17 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 12 |
So then I guess two questions - the first is, can you paste your current options file again?And secondly (and I'm sure you do, but just to check...), is your OF-2.1.1 installation in fact in /home/dell/OpenFOAM/OpenFOAM-2.1.1/ , and is it complete? You don't think you could possibly have deleted some files etc?
|
|
August 25, 2014, 02:42 |
|
#18 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
my openfoam installation is complete and i dont delete anything
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/sampling/lnInclude -I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/fvOptions/lnInclude -I$(LIB_SRC)/turbulenceModels -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude -I$(LIB_SRC)/transportModels -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude -I$(LIB_SRC)/OpenFOAM/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lsampling \ -lmeshTools \ -lfvOptions \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels -u incompressibleRASModelsLoad \ -lincompressibleTransportModels \ -lradiationModels \ -lfluidThermophysicalModels \ -lOpenFOAM |
|
August 25, 2014, 03:02 |
|
#19 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 12 |
So typing in a terminal
Code:
ls /home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude/fvIO* returns something like Code:
/home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude/fvIOoptionList.C /home/dell/OpenFOAM/OpenFOAM-2.1.1/src/fvOptions/lnInclude/fvIOoptionList.H If so, I'm sorry but I have no idea as to where the problem is. |
|
August 25, 2014, 03:29 |
|
#20 |
Member
zohreh imani nejad
Join Date: Feb 2014
Location: gonabad
Posts: 55
Rep Power: 12 |
excuse me
if i have problem in my openFoam. should i install it again or i can repair it? thanks alot |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add a FORTRAN object to wmake compilation directives | vitors | OpenFOAM Programming & Development | 1 | April 9, 2014 14:25 |
Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 11:34 |
compliing a new solver with wmake | kirankarki | OpenFOAM | 18 | October 26, 2010 17:59 |
Wmake problem interFoam solver | feijooos | OpenFOAM Running, Solving & CFD | 4 | December 8, 2008 11:01 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 14:08 |