|
[Sponsors] |
'nmake' is not recognized as an internal or external command ... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 27, 2012, 16:54 |
'nmake' is not recognized as an internal or external command ...
|
#1 |
Senior Member
|
hi everybody,
I have some problem with compiling my udf. I didn't work before with udfs. I searched the forum for my problem but I cannot solve it. when I want to build my udf the this error apears: Code:
Deleted old libudf\ntx86\2d\libudf.dll 1 file(s) copied. 1 file(s) copied. (system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\2d")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file. Done. Is anybody here that can help me?!?!?!? what should I do??? |
|
September 28, 2012, 10:13 |
|
#2 |
Senior Member
|
OK! I solved it.
I Installed the VS and ran the Fluent in its command prompt. |
|
October 1, 2012, 03:15 |
|
#3 |
New Member
Join Date: Sep 2012
Posts: 7
Rep Power: 14 |
Hello!!!
I am facing the same problem that you used to!! And this is exactely what I wanted to ask in this forum! Can you help me please because I don't know what is VS ? And what is the method to run Fluent in its command prompt? Thank you very much for your help! Samia |
|
October 1, 2012, 04:49 |
|
#4 |
Senior Member
|
VS = (Microsoft) Visual Studio
First you should make sure that you have at least one C compiler installed in your OS, MSVC is a common choice in windows. Then you should make sure that the directory containing "nmake.exe" is in the "Path" variable, otherwise you have to edit the Path manually. Search "manage environment variable windows" for more information. You don't have to run Fluent from the "Visual Studio Command Prompt" if your path variable is set correctly. |
|
October 1, 2012, 09:00 |
|
#5 |
New Member
Join Date: Sep 2012
Posts: 7
Rep Power: 14 |
Thanks for your answer!
Well, I am using CVI in order to write the UDF, from the National Instrument, and it seems that the compiler is in the package. I searched "manage environment variable windows" and I openned the window path variables and there is nothing called nmake.exe or even nmake. So I have to create the nmake.exe as a path variable? |
|
October 6, 2012, 04:54 |
|
#6 |
Senior Member
|
It seems that CVI don't ship a Makefile-capable utility like "nmake.exe". You have to install MSVC in order to compile your UDF under Win* environment. There is a work-around that to compile the library manually instead of invoking the Makefile, but to install MSVC is simpler. You can use "interpreted UDF" instead if there is no restriction to do that in your UDF.
|
|
October 6, 2012, 05:00 |
|
#7 |
New Member
Brendan
Join Date: Oct 2012
Posts: 10
Rep Power: 14 |
Also, if you are using Windows 7 64-bit you may also need to download SDK for Windows 7 and launch fluent from the SDK command prompt (as i had to).
http://www.cfd-online.com/Wiki/Fluen...at_is_wrong.3F |
|
October 8, 2012, 03:03 |
|
#8 |
New Member
Join Date: Sep 2012
Posts: 7
Rep Power: 14 |
Well thank you very much I will try to do that !
|
|
October 8, 2012, 08:52 |
|
#9 |
New Member
hzsme
Join Date: Sep 2012
Posts: 7
Rep Power: 14 |
||
October 10, 2012, 07:19 |
|
#10 |
Member
Tamil Nadu
Join Date: Oct 2012
Posts: 44
Rep Power: 14 |
Hello All,
I want to do analysis of heat transfer from water flowing through pipes submerged inside concrete. I am modelling in GAMBIT and wish to analyse it on Ansys FLUENT. Can anybody help me out, how to model and simulate? Does any tutorials exist? |
|
October 18, 2018, 06:40 |
|
#11 |
Member
Oula
Join Date: Apr 2015
Location: United Kingdom
Posts: 81
Rep Power: 11 |
Quote:
Hi Blackmask, I know it is an old thread, but may I ask you where should I add nmake.exe? should I just typeit in the path? could you please elaborate how to set the path variable?. I'm new to this thing and totally lost. Your help is appreciated. Regards Oula |
|
October 18, 2018, 11:26 |
|
#12 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66 |
Quote:
Google environmental variables in windows. In win7 and before, right click on computer and go to properties, advanced system settings, environmental variables. Then in either user variables you should find PATH. Add your path to this variable. |
||
October 18, 2018, 12:57 |
|
#13 | |
Member
Oula
Join Date: Apr 2015
Location: United Kingdom
Posts: 81
Rep Power: 11 |
Quote:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools; C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bi n\Hostx64\x64;C:\Program Files\ANSYS Inc\v182\fluent\ntbin\win64 Regards Oula |
||
October 18, 2018, 13:50 |
|
#14 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66 |
Quote:
add whatever is the directory where your nmake is located. |
||
March 28, 2020, 06:01 |
|
#15 |
New Member
Kon
Join Date: Mar 2020
Posts: 1
Rep Power: 0 |
Hello~
I have encountered the same problem regarding nmake. Adding it to the windows environment variables path and running Fluent without command prompt gave me another error (Fatal Error C1083). After some searching, I managed to solve it and now UDFs can be compiled without running from command prompt! So I wanted to share my steps to hopefully help others: 1) Install Visual Studio (version 2019 for me) 2) Go to "C:\Program Files (x86)\Microsoft Visual Studio\2019" and type in the search bar "nmake" to find where nmake is located. For me, it's located in "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bi n\Hostx64\x64". This is your nmake location. 3) Go to Control Panel->Settings->System Settings->Environment Variables->System Variables and find "Path", then click on "Modify" 4) Click "new" and add your nmake location to the path. Then click ok. 5) Open Fluent, open a Fluid Flow (Fluent) component, and right click on "Setup" -> Edit. Click "+Show more Options", then go to "Environment". Copy the udf.bat location (for me it's "C:\Program Files\ANSYS Inc\v182\fluent/ntbin\win64/") and paste it in the explorer to open it. 6) Right click on "udf.bat"->Open with Notepad++ (as administrator). 7) Paste the following text (but make sure the folder paths and VS version are correct for your own computer). Careful to paste the following texts in their appropriate locations: Paste this text before "echo "No MSVC compiler detected!"" echo trying to find MS C compiler, version 19.... set MSVC_DEFAULT=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build if exist "%MSVC_DEFAULT%\vcvarsall.bat" set MSVC=%MSVC_DEFAULT% if not "%MSVC%" == "" goto msvc_env19 and further below you paste this text before ":ms_c_end": :msvc_env19 set MSVC_VERSION=19 call "%MSVC%\vcvarsall.bat" x86_amd64 goto ms_c_end 8) Save the udf.bat file, and restart Fluent. Now you should be able to directly compile codes without any problems and without having to run through command prompt |
|
November 10, 2020, 20:21 |
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
|
#16 |
New Member
kailash
Join Date: Jun 2018
Posts: 19
Rep Power: 8 |
Got this error when i followed the steps. Any one got this error?
|
|
November 11, 2020, 01:38 |
Got the answer!
|
#17 |
New Member
kailash
Join Date: Jun 2018
Posts: 19
Rep Power: 8 |
I wanted to answer my own question if someone is facing this issue. The solution provided in this link worked for me. Need to create a LIB system variable and copy the path where Kernel32.lib is present
|
|
December 24, 2020, 21:42 |
|
#18 | |
New Member
Anthony Hamzah
Join Date: Sep 2016
Location: Tokyo
Posts: 3
Rep Power: 10 |
Quote:
In all fairness, I see this problem has been around since quite a long time and sadly ANSYS hasn't done anything about it despite tons of complaints. A more simplified and robust compiler should do, but alas it seems they simply don't want to bother. |
||
December 25, 2020, 16:31 |
|
#19 | |
New Member
Alexander
Join Date: Dec 2020
Posts: 8
Rep Power: 5 |
Quote:
Have you found any alternative to this? please give suggestions. The alternative solution i found is to install an Oracle virtual box with windows 7 and run fluent through that. |
||
December 25, 2020, 16:32 |
|
#20 | |
New Member
Alexander
Join Date: Dec 2020
Posts: 8
Rep Power: 5 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 12:37 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
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 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |