[Thank you for Help] Error occurred when I used wmake
Hi, guys
I was trying to add temperature field to laplacianFoam, and exactly following the guide: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam everything was ok until I typed in "wmake", it was shown that: merlin@ubuntu:~/OpenFOAM/merlin-1.7.1/applications/solvers/my_icoFoam$ wmake 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! -Merlin- |
Hi Merlin,
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 to EXE = $(FOAM_USER_APPBIN)/my_icoFoam and see, if it works... Martin |
Hi, Martin
Thank you man! It worked, appreciate your help! -Merlin |
All times are GMT -4. The time now is 15:36. |