|March 2, 2011, 11:44||
[Thank you for Help] Error occurred when I used wmake
Join Date: Feb 2011
Posts: 14Rep Power: 6
I was trying to add temperature field to laplacianFoam, and exactly following the guide:
everything was ok until I typed in "wmake",
it was shown that:
Making dependency list for source file my_icoFoam.C
SOURCE=my_icoFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/my_icoFoam.o
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable ‘momentumPredictor’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/my_icoFoam.o -L/opt/openfoam171/lib/linuxGccDPOpt \
-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /opt/openfoam171/applications/bin/linuxGccDPOpt/my_icoFoam
/usr/bin/ld: cannot open output file /opt/openfoam171/applications/bin/linuxGccDPOpt/my_icoFoam: Permission denied
collect2: ld returned 1 exit status
make: *** [/opt/openfoam171/applications/bin/linuxGccDPOpt/my_icoFoam] Error 1
Additional informations are:
My operating system is Ubuntu, and I installed openfoam in /opt/openfoam171 as you see it.
The last thing is if it worked as how it is supposed to be, there would be an executable named as my_icoFoam under linuxGccDPTpt, right?
I would really appreciate your time to help me!
|March 2, 2011, 14:20||
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252Rep Power: 11
you don't have write access to the OpenFOAM directory in /opt.
Change the Make/files entry for EXE from
EXE = $(FOAM_APPBIN)/my_icoFoam
EXE = $(FOAM_USER_APPBIN)/my_icoFoam
and see, if it works...
|Thread||Thread Starter||Forum||Replies||Last Post|
|OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3||flakid||OpenFOAM Installation||16||December 28, 2010 09:48|
|Problems Installing OF 1.6 32 bit||bucksfan||OpenFOAM Installation||19||August 4, 2009 01:36|
|OpenFOAM15 installables are incomplete problem with paraFoam||tryingof||OpenFOAM Bugs||17||December 7, 2008 05:41|
|Problem of compilation OF 14Allwmake command not found||erik_d||OpenFOAM Bugs||13||September 13, 2008 21:45|
|ParaFoam error message||joey||OpenFOAM Paraview & paraFoam||1||October 2, 2006 13:28|