CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF compilation problem on Linux System (https://www.cfd-online.com/Forums/fluent-udf/47129-udf-compilation-problem-linux-system.html)

Nitin Pathak January 25, 2008 04:40

UDF compilation problem on Linux System
 
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'


xkrautsc July 10, 2014 11:41

I am facing the same problem now. Can somebody write here the solution ?
I am sure it is some trivial thing.

gera December 16, 2015 09:22

Any news?
I have the same problem on Linux x64.

manshu September 28, 2018 23:21

This problem can be solved by copying the file "example.c" from the folder "src" to folder "lnamd64/3d"

blackmask September 29, 2018 06:34

Quote:

Originally Posted by manshu (Post 708166)
This problem can be solved by copying the file "example.c" from the folder "src" to folder "lnamd64/3d"


:D 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.

manshu September 29, 2018 09:37

Quote:

Originally Posted by blackmask (Post 708194)
:D 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.

blackmask September 29, 2018 20:26

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.


All times are GMT -4. The time now is 19:41.