|
[Sponsors] |
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
guoji xu
Join Date: Feb 2012
Posts: 19
Rep Power: 14 ![]() |
Hi, all
When I compiling UDFs, I can build "libudf", but I can't load it. So could anyone can help me or to explain why? Thank you very much! Opening library "c:\users\gxu2\desktop\vof\libudf"... Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (ntx86). |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Marco
Join Date: Apr 2011
Posts: 9
Rep Power: 15 ![]() |
Are you sure the UDF was compiled correctly? I suggest you to launch FLUENT from compiler's prompt window under the working directory folder (where the .cas & .dat & the udf are located) then retry with the compiling.
To me, that errors means UDF wasn't compiled correctly. Regards |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
guoji xu
Join Date: Feb 2012
Posts: 19
Rep Power: 14 ![]() |
Thank you, my friend!
I have tried lots of times but still can't get that through. see the picture attachted. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Marco
Join Date: Apr 2011
Posts: 9
Rep Power: 15 ![]() |
Are you sure to have tried launching FLUENT from the compiler's prompt window?
If you are, this could be a 32 bit vs 64 bit problem IF you're using FLUENT 64 bit version. For example (i'm working under windows OS) try installing Microsoft .NET Framework SDK. I use the ancient v2.0 version of them and they do the job. They're freeware, google them. Once you installed them, again, launch FLUENT from SDK's prompt comand and retry. In addition, check http://www.cfd-online.com/Wiki/Fluen...UDF.29_Related for more troubleshooting. Regards |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
guoji xu
Join Date: Feb 2012
Posts: 19
Rep Power: 14 ![]() |
Thank you Reeko
my computer is 32bit and I have installed the ANSYS FLUENT 32bit correctly, so it is not the OS related problem. I have installed .net framework 4.o and SDK 7.1 on my computer and there is also visual C++6.0 on my computer. But I can't get throught this problem. I am sorry that I don't know how to input orders, like to run fluent in SDK promt command window. Could you tell me a little bit? Thank you very much and May God bless you! Best regards! |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Marco
Join Date: Apr 2011
Posts: 9
Rep Power: 15 ![]() |
Well, thank you for the blessing
![]() Just tell me, what OS are you running on? Regards |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
guoji xu
Join Date: Feb 2012
Posts: 19
Rep Power: 14 ![]() |
win 7, 32 bit, I have installed ANSYS educational version.
It always said the libudf.dll is missing, actually it is not generated and well compiled. Should I install VC 2008, or 2009, or 2010, I don't know which version I should install for well compiling. Thank you very much for helping me. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Marco
Join Date: Apr 2011
Posts: 9
Rep Power: 15 ![]() |
Install VC++ 2010 Express then ensure you have followed the steps described in "Set the correct environment variables" @ http://www.cfd-online.com/Wiki/Fluen...UDF.29_Related.
Run SDK's prompt window (you should find it under some folder in the Start->Programs menù). The shell will start from SDK's directory so you have to have to move on your working directory that contains both the case/dat and the UDF files (i.e: C:\my_fluent_case or whatever). Then type "fluent" and return; fluent will start and able to compile, so you can retry hopefully getting what you want. Regards Last edited by ReeKo; March 27, 2012 at 10:46. |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
New Member
Join Date: Jul 2012
Posts: 18
Rep Power: 14 ![]() |
I'm having a similar problem, but can't even build the library....this is what happens after i press build:
1 file(s) copied. (system "copy "C:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\win64\2ddp\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "win64\2ddp")() Done. I did a test with a code I found in this forum and it was compiled! So I think the problem is my udf.... can you take a look and maybe help me find my mistake??? I just started leraning udf by myself....it's not very easy! ![]() Quote:
Last edited by mila_oliv; July 20, 2012 at 17:35. |
||
![]() |
![]() |
![]() |
![]() |
#10 | |
Member
mehdimoradi
Join Date: Jun 2013
Posts: 53
Rep Power: 13 ![]() |
Quote:
Could you solved your problem. I also encountered with the same problem. My OS also is win7(32bit) and fluent 32 bit is installed on it. if you could solve the problem let me know. Thanks |
||
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Katja N.
Join Date: May 2014
Location: Sweden
Posts: 13
Rep Power: 12 ![]() |
Hello,
Today I have experienced this error and found out that's related to the maximum number of characters allowed for file names in Win 7, which is 255 characters. So, if your case is saved in a folder that has a very long path, then you might get this error. Work with shorter path lengths and see if that solves the problem. Cheers
__________________
![]() |
|
![]() |
![]() |
![]() |
![]() |
#12 |
New Member
Zhijie Zhao
Join Date: Apr 2017
Posts: 1
Rep Power: 0 ![]() |
Please make sure that there is no space in front the macro name DEFINE_SOURCE(),then compile the udf again .
|
|
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
Joe
Join Date: Feb 2012
Location: Canada
Posts: 112
Rep Power: 14 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#14 |
New Member
Patrick
Join Date: Jul 2018
Posts: 4
Rep Power: 8 ![]() |
I had this error happen to me today and found the cause to be a syntax error (forgot to put a semi colon at the end of a statement, d'oh!)
When you build the library, read the terminal messages that pop up to see if there is any mention of an error. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
compiled udf | rafat | FLUENT | 2 | July 25, 2003 01:57 |
how to quit compiled or interprited UDF | tian | FLUENT | 0 | April 8, 2003 23:53 |
Installing Compiled UDF | HARI SARYONO | FLUENT | 0 | November 24, 2001 01:48 |
setting up compiled UDF library in windows2000 | sivakumar | FLUENT | 1 | October 19, 2001 03:46 |
Compiled UDF / Compilation problem | mikhail | FLUENT | 1 | October 13, 2000 06:12 |