|
[Sponsors] |
[Thank you for Help] Error occurred when I used wmake |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 2, 2011, 11:44 |
[Thank you for Help] Error occurred when I used wmake
|
#1 |
New Member
Wei Ma
Join Date: Feb 2011
Posts: 14
Rep Power: 15 |
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-
|
|
March 2, 2011, 14:20 |
|
#2 |
Senior Member
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22 |
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 |
|
March 4, 2011, 20:56 |
|
#3 |
New Member
Wei Ma
Join Date: Feb 2011
Posts: 14
Rep Power: 15 |
Hi, Martin
Thank you man! It worked, appreciate your help! -Merlin |
|
|
|
Similar Threads | ||||
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 02: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 22:45 |
[OpenFOAM] ParaFoam error message | joey | ParaView | 1 | October 2, 2006 14:28 |