General

General

ANSYS Fluent UDF compilation error: No rule to make target ‘makefile’, needed by ‘udf_names.c’. Stop.

    • FAQFAQ
      Participant

      In the ANSYS Fluent 2019 R1 Customization Manual, part I, chapter 5.3. Compile a UDF Using the TUI, it is described how to compile a UDF (user-defined function) outside ANSYS Fluent for Windows and Linux. This is useful when automating the compilation process or when linking external shared objects. For Linux, you have to pay special attention to the letter case of the file names or you might get the compiler error: make: *** No rule to make target ‘makefile’, needed by ‘udf_names.c’. Stop. The source of this problem is that the makefile cannot be found. This can happen easily when copying the files makefile.udf2 and makefile.udf from the Fluent installation to the compilation directory. makefile.udf2 should be renamed to Makefile with a capital M. It is placed in the top level directory of the UDF directory structure. makefile.udf is renamed to makefile with a lowercase m. It is placed in the src subfolder. If you rename this file with a capital M by accident, you provoke the mentioned error message.