CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF compilation problem on Linux System

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By manshu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2008, 05:40
Default UDF compilation problem on Linux System
  #1
Nitin Pathak
Guest
 
Posts: n/a
Hi i m getting following error during the compilation of my UDF. UDF is working in Windows system but in linux its show the following error. can anybody pls specify what kinda of error it is?

for d in lnx86/[23]*; do \ ( \

cd $d; \

for f in ../../src/*.[ch] ../../src/makefile; do \

if [ ! -f `basename $f` ]; then \

echo "# linking to" $f "in" $d; \

ln -s $f .; \

fi; \

done; \

echo ""; \

echo "# building library in" $d; \

if [ "" = "1" ]; then \

echo "# using gcc64"; \

make ARCHC=gcc64 -k>makelog 2>&1; \

else \

if [ "" = "1" ]; then \

echo "# using gcc"; \

make ARCHC=gcc -k>makelog 2>&1; \

else \

make -k>makelog 2>&1; \

fi; \

fi;\

cat makelog; \ ) \ done

# building library in lnx86/2ddp make[1]: Entering directory `/home/sankhya/users/pathak/sph/libudf/lnx86/2ddp' make[1]: *** No rule to make target `incp1994ch.c', needed by `udf_names.c'. make[1]: Target `default' not remade because of errors. make[1]: Leaving directory `/home/sankhya/users/pathak/sph/libudf/lnx86/2ddp'

  Reply With Quote

Old   July 10, 2014, 12:41
Default
  #2
New Member
 
xkrautsc
Join Date: Jul 2010
Posts: 1
Rep Power: 0
xkrautsc is on a distinguished road
I am facing the same problem now. Can somebody write here the solution ?
I am sure it is some trivial thing.
xkrautsc is offline   Reply With Quote

Old   December 16, 2015, 10:22
Default
  #3
Member
 
Georgy
Join Date: Apr 2011
Location: Russia
Posts: 32
Rep Power: 15
gera is on a distinguished road
Any news?
I have the same problem on Linux x64.
gera is offline   Reply With Quote

Old   September 29, 2018, 00:21
Default
  #4
New Member
 
Richard
Join Date: Mar 2010
Posts: 3
Rep Power: 16
manshu is on a distinguished road
This problem can be solved by copying the file "example.c" from the folder "src" to folder "lnamd64/3d"
KozlovN1 likes this.
manshu is offline   Reply With Quote

Old   September 29, 2018, 07:34
Talking
  #5
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
Quote:
Originally Posted by manshu View Post
This problem can be solved by copying the file "example.c" from the folder "src" to folder "lnamd64/3d"

It is kind for you to provide a solution but the original post dates back to ten years ago and the most recent update you replied to is three years ago.
blackmask is offline   Reply With Quote

Old   September 29, 2018, 10:37
Talking
  #6
New Member
 
Richard
Join Date: Mar 2010
Posts: 3
Rep Power: 16
manshu is on a distinguished road
Quote:
Originally Posted by blackmask View Post
It is kind for you to provide a solution but the original post dates back to ten years ago and the most recent update you replied to is three years ago.
It's true. However, this problem still exits... My ANSYS Fluent version is 18.1 and no answer is found in the forum. Therefore, I think it's worth sharing some experience.
manshu is offline   Reply With Quote

Old   September 29, 2018, 21:26
Default
  #7
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
I don't know what the exact error you have encountered, but according to your solution I think a more legit solution to your problem is by setting the environment variable using

Code:
export FLUENT_ARCH=lnamd64
before you launch fluent.
blackmask is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
!!! UDF - Compilation problem !!! Everest FLUENT 1 January 12, 2009 18:56
udf compile in parallel system tahereh FLUENT 1 December 9, 2008 10:48
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 08:51
compatibility problem of UDF on LINUX manu FLUENT 4 December 19, 2007 05:58
UDF compilation problem -- "undeclared variable" Henrik Ström FLUENT 1 September 21, 2005 06:25


All times are GMT -4. The time now is 15:27.