|
[Sponsors] |
July 9, 2004, 18:24 |
Error: open_udf_library:
|
#1 |
Guest
Posts: n/a
|
Hello,
i am facing a problem in using compiled UDF. interpreted UDF is working fine, but when i use same code with compiled UDf it gives me following error message. Opening library "libudf"... Error: open_udf_library: The system cannot find the file specified. the log file in 'libudf/ntx86/2ddp' shows following: 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : U1077: 'cl' : return code '0x1' Stop. any help in this regard will be appreciated. with kind regards, dhananjay. |
|
July 12, 2004, 08:11 |
Re: Error: open_udf_library:
|
#2 |
Guest
Posts: n/a
|
Hello Dhananjay
please check whether Visual Studio is installed correctly in your system. Because this error will come when u have not specified the path for visual studio. Try to interpret the udf. If it works good, then it is the problem with visual studio only. Regards Karthick |
|
July 12, 2004, 08:53 |
Re: Error: open_udf_library:
|
#3 |
Guest
Posts: n/a
|
Hello:
I have the same problem. how can i fix the route in fluent to the visual studio? What should i put in the header file section? Thanks |
|
July 12, 2004, 09:19 |
Re: Error: open_udf_library:
|
#4 |
Guest
Posts: n/a
|
Dear Javier,
You please reinstall visual studio again. while installing it'll ask to whether path to be set or not? Otherwise you specify the your email address. I'll send u the html file showing how to specify the path to fluent. Otherwise check the old posts. Regards Karthick |
|
July 12, 2004, 11:10 |
Re: Error: open_udf_library:
|
#5 |
Guest
Posts: n/a
|
Hello Karthick,
thanks a lot for your kind reply. the problem was in Visual Studio. interpreted UDF worked perfectly. i think that now i can fix the problem. thanks again for your advice, with kind regards, dhananjay. |
|
February 13, 2010, 18:52 |
|
#6 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 |
Hello Karthick,
I'm having a nightmare with trying to compile a UDF. I'm a beginner about dealing with UDFs on Windows-based Fluent 2D. When I load the UDF, I get the following message: - "nmake" not recognized as an internal or external command, operable program or batch file. I've seen out there that it is an issue related to the interaction between Fluent and Visual Studio To solve it, during the installation process, one needs to select the "register environment variables" option. However, I haven't seen such option during Fluent installation. This is what I've done step by step: 1) Install full Microsoft Visual Studio 2008. 2) Install Windows-based Fluent. 3) Go to "Start" --> "All Programs" --> "Fluent Inc Products" --> "Fluent 6.3.26" --> "Set Environment" After doing all that, I still couldn't load my UDF. Same error message. Then I downloaded nmake.exe and installed at \Fluent.Inc\fluent6.3.26\ntx86 and also at WINDOWS\system32, I opened a command prompt and executed nmake. After doing all this, back on Fluent I was able to get rid of the nmake error message. However I now get another error message: Opening library "libudf"... Error: open_udf_library: (...) I installed Visual Studio 2008 and I didn't say at any step to whether path to be set or not. But after doing the "Set Enviroment" thing I checked that PATH is at ntx86. Would you please let me know what I'm missing? Many thanks beforehand, Ivan. |
|
February 27, 2010, 09:22 |
error:open~~~
|
#7 |
New Member
sunqiang
Join Date: Nov 2009
Posts: 23
Rep Power: 17 |
hi,mate!
i am facing the same problem and still can't figure it out. i set the envionmental variables of Administrator as follows: include:E:\programe files\microsoft visual studio 9.0 \vc\include lib:E:\programe files\microsoft visual studio 9.0 \vc\lib path:E:\programe files\microsoft visual studio 9.0 \common7\IDE i followed the remedy online,but i guess they must've missed something. matthew looking fwd to ur reply |
|
February 28, 2010, 00:00 |
|
#8 |
New Member
sunqiang
Join Date: Nov 2009
Posts: 23
Rep Power: 17 |
hi,Ivan
oops,this problem has been bothering for the past couple of days,but after working on it a whole day yesterday,i managed to figure it out, it's the settings of environmental variables that matter. |
|
February 28, 2010, 06:38 |
|
#9 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 |
Hi matthewsun,
sorry for the late reply. Yes, that's rhe whole thing. What worked to me was the following (and just with Visual Studio Express): 1) Start -> Fluent Inc. -> Set Environment variables 2) Start -> Visual Studio -> Prompt symbol .... MS-DOS windows appears The fact of opening that MS-DOS windows through Visual Studio makes, somehow, prepare the communication between C++ and Fluent. 3) Navigate on that MS-DOS windows up to your working directory and type fluent <model>. That's all. Cheers, Ivan. |
|
March 3, 2010, 04:13 |
|
#10 |
New Member
sunqiang
Join Date: Nov 2009
Posts: 23
Rep Power: 17 |
hi,Ivan
sorry for the late reply. i have to say this udf compiling thing is really pretty boring,the message 'error ~~~' ocurrs again,i unintalled the visual studio and reinstalled,and did the settings as those on the network ,but it failed to work,so i am really sorry,i'll send you the remedy once i work it out. matthew |
|
May 8, 2010, 05:53 |
|
#11 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 |
Hi Matthew,
sorry for the late reply. If you follow my post "February 28, 2010, 09:38" it should work. I did just that, and it just worked. I recommend you to do exactly what I bulleted, unistall any Visual Studio you've got and install Visual Studio Express from scratch. That's what I did and, as said, no more errors appeared. Cheers, Ivan. |
|
May 9, 2010, 23:21 |
|
#12 |
New Member
sunqiang
Join Date: Nov 2009
Posts: 23
Rep Power: 17 |
Hi Ivan,
I uninstalled the visual studio 2008 and installed the VC6,i didn't do any changes to the environmental variables ,it worked! Thanks anyway matt |
|
May 13, 2010, 15:25 |
|
#13 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 |
Hi Matt,
I had refreshed my computer and now I want to run a UDF I just can't. I followed all the steps I bulleted above and it just doesn't want to work. You say you unistalled Visual Studio 2008 and installed VC6. What's VC6? Yo say you don't have to set the environment variables. So, how do you launch Fluent? Do you have to go through by the Command Prompt? Cheers, Ivan. |
|
May 13, 2010, 15:48 |
|
#14 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 |
Hey again Matt,
no worries, "my" approach still works! The problem was in the way my .c file was coded, with some coding mistakes. Now everything works as I expected. Thanks anyway, Ivan. |
|
July 3, 2010, 17:32 |
problem compiling UDF
|
#15 |
New Member
banerji
Join Date: Dec 2009
Posts: 22
Rep Power: 16 |
Hi Matthiew and Ivan,
I looked at your posts and it seems I am having a problem you had long time ago but I followed your methods of setting environments without success. we recently switched to Fluent 12.1.4 and I have hard time compiling my UDF. Does any body of you use this Fluent version? |
|
July 4, 2010, 03:43 |
|
#16 |
New Member
sunqiang
Join Date: Nov 2009
Posts: 23
Rep Power: 17 |
well,this is not longer a problem for us, like i said ,i uninstall the visual studio 2008 and installed vc++,i remember a dialog box would come up at the end of installation about setting environment variables and i clicked yes ,then i could compile the codes,if this still bothers you,i'll see if i can make a video or something
matthew |
|
July 4, 2010, 17:04 |
|
#17 |
Member
Ivan
Join Date: Aug 2009
Posts: 63
Rep Power: 17 |
Hi Banerji,
I installed Visual Studio Express (the free version) and did the following: 1) Start -> Fluent Inc. -> Set Environment variables 2) Start -> Visual Studio -> Prompt symbol .... MS-DOS windows appears The fact of opening that MS-DOS windows through Visual Studio makes, somehow, prepare the communication between C++ and Fluent. 3) Navigate on that MS-DOS windows up to your working directory and type fluent <model>. This works for me. With respect to Fluent 12, sorry but I haven't work with it in depth yet. Cheers, Ivan. |
|
July 4, 2010, 21:01 |
|
#18 |
New Member
banerji
Join Date: Dec 2009
Posts: 22
Rep Power: 16 |
Thanks guys for replying. hey Matthiew which Fluent Version are you using?
|
|
August 14, 2010, 16:37 |
|
#19 |
New Member
Alvin Simer
Join Date: Aug 2010
Posts: 2
Rep Power: 0 |
Hi guys, i followed the steps above but instead i got this problem,
"Error: open_udf_library: %1 is not a valid Win32 application. Error Object: ()" I can't find any solutions to this matter. I hope you guys can help me regarding this problem. |
|
January 14, 2011, 11:27 |
|
#20 | |
Member
EH
Join Date: Dec 2010
Posts: 61
Rep Power: 15 |
Quote:
Do you think this will work using Microsoft Visual Studio 9.0? Also I am using Ansys Fluent 12.1, which means there isnt the Set Environment option from the Start Menu. Thanks. EH |
||
|
|