|
[Sponsors] |
August 10, 2006, 01:20 |
error while compiling a udf
|
#1 |
Guest
Posts: n/a
|
hi,
I am trying to compile a udf to use a dynamic mesh. I am geting following error message, i did the same way as given in udf manual. When i try to build this udf this msg is displayed. 1 file(s) copied. (system "copy C:\Fluent.Inc\fluent6.2.16\src\makefile_nt.udf libudf2\ntx86\3ddp\makefile") 1 file(s) copied. 0 (chdir "libudf2")() (chdir "ntx86\3ddp")() '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. could somebody let me know how i should overcome this problem. thank you Rahul |
|
August 10, 2006, 03:38 |
Re: error while compiling a udf
|
#2 |
Guest
Posts: n/a
|
ok I send you the instructions:
download (all are free versions): http://www.microsoft.com/downloads/d...displaylang=en and http://www.microsoft.com/downloads/d...displaylang=en then check and correct the following paths (start->my computer->system->advanced->environment variables): LIB = C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\LIB;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib INCLUDE = C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include PATH = C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;C:\Program Files\Common Files\Microsoft Shared\VSA\7.1\VsaEnv;c:\documents and settings\ww\fluent.inc\ntbin\ntx86 After all this look for nmake file in your computer and atach the path of the directory in the list. This instructions are what I followed when I was in your situation so I help it can help you. Regards Albert |
|
August 17, 2006, 17:30 |
Re: error while compiling a udf
|
#3 |
Guest
Posts: n/a
|
Hi Rahul/albert I'm experiencing the same problem. Do I have to install/run these files once downloaded? Also, I looked for the nmake file in my computer but the search engine did not find it, could you help me out? Thanks Blas
|
|
August 18, 2006, 03:40 |
Re: error while compiling a udf
|
#4 |
Guest
Posts: n/a
|
As far as I'm concerned you have to install those programes unless you have installed another programe that is also compatible but I only can suggest what I've experienced...
Refering to the nmake file please, make sure if you have the following directory, in my computer is here. C:\Program Files\Microsoft.NET\SDK\v1.1\Bin |
|
August 18, 2006, 07:37 |
Re: error while compiling a udf
|
#5 |
Guest
Posts: n/a
|
Hi Albert, thanks for your response. I only have C:\Program Files\Microsoft.NET\primary interop assemblies but not what you describe. Maybe it's created when I install the downloaded files?
|
|
August 18, 2006, 08:24 |
Re: error while compiling a udf
|
#6 |
Guest
Posts: n/a
|
Yes, I think that this paths vary depending on your instalation, but I think the path I send you was the default one. Anyway, try to run search engine in the microsoft.net directory and nmake.exe should appears. If it doesn't I don't know what to do because the steps I posted were the onces I followed.
Good luck and tell me if all is solved! Albert. |
|
August 18, 2006, 14:14 |
Re: error while compiling a udf
|
#7 |
Guest
Posts: n/a
|
I found the nmake file now, but which path do I need to attach to this file and how? Thanks again Blas
|
|
August 21, 2006, 03:30 |
Re: error while compiling a udf
|
#8 |
Guest
Posts: n/a
|
At the same panel of enviroment settings you have different options. One is path. If you select this option a window will appear and you have to copy the direction of the folder where is nmake file.
|
|
August 22, 2006, 09:00 |
Re: error while compiling a udf
|
#9 |
Guest
Posts: n/a
|
Hi albert, I could solve the nmake error and apparently I can now compile but I have trouble with loading the compiled file though, as I keep getting the following error:
Deleted old libudf\ntx86\2d\libudf.dll The system cannot find the specified file. 1 file copied. (system "copy D:\Fluent.Inc\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2d\makefile") 1 file copied. 0 (chdir "libudf")() (chdir "ntx86\2d")() Done. "d:/fluent.inc/fluent6.1/src" Opening library "libudf"... Error: open_udf_library: The system cannot find the specified file. Error Object: () Any idea of what might be happening? Thanks |
|
August 22, 2006, 09:13 |
Re: error while compiling a udf
|
#10 |
Guest
Posts: n/a
|
I don't know if it will help you but you could try a couple of things:
Create a working directory with the following carachteristics: - Only .cas file and .c file inside the dictory - The name of the udf cannot contain strange carachters like '?*/.!... - Be sure that the name of the working directory and the previous ones does not contain spaces. I mean call myworkingdirectory instead of my working directory If all is correct, you modified path and includes in enviroment settings and .net framework 1.1 is installed should works well. When I was in your situation I followed the instructions I posted a few messages above and now all is working fine. I hope it help you |
|
August 30, 2006, 09:33 |
Re: error while compiling a udf
|
#11 |
Guest
Posts: n/a
|
Hi Albert Finally I had to install Ms Visual Studio 6.0 as my C compiler and everything is working properly now. Thanks for your help anyway. Regards
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
compiling udf at window Nt(64BIT) | noa | FLUENT | 3 | July 30, 2014 00:01 |
Compiling UDF on a cluster | Adya | FLUENT | 1 | December 14, 2009 12:30 |
UDF compiling problem in Flient 6.3 | jeevan kumar | FLUENT | 2 | February 25, 2009 01:43 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
On Compiling a UDF | David Chabot | FLUENT | 5 | May 20, 2005 10:13 |