egs_brachy icon indicating copy to clipboard operation
egs_brachy copied to clipboard

Failed compiling egs_c_utils.h and egs_c_utils.c in installation of egs_brachy in windows

Open ROUZII3 opened this issue 4 months ago • 0 comments

I am new to EGS and seeking assistance with installing EGS_brachy on my Windows 10 system to conduct simulations in brachytherapy. While following the EGS_brachy manual, I encountered an error during the configuration of EGSnrc using the configuration shell script (./HEN_House/scripts/configure). Despite following the provided instructions and attempting to adjust the GCC version, the compilation of egs_c_utils.c and egs_c_utils.h failed. And it gave me this recommandations: Creating egs_c_utils.h and egs_c_utils.c ... OK Compiling egs_c_utils.c ... Failed

Failed to compile egs_c_utils.c. This may be due to a variety of reasons (e.g., non-standard include files, unsupported file lock operations, etc. Will disable now the availability of a C compiler. If you want to try to make the new parallel processing implementation in cavrznrc and dosrznrc work,

  1. Go to /c/EGSnrc_CLRP/HEN_HOUSE/lib/mingw64_nt-10.0-19045
  2. Edit egs_c_utils.h and egs_c_utils.c to make them compile with your C compiler
  3. Put REPLACE {$HAVE_C_COMPILER(#);} WITH {{EMIT;{P1}define HAVE_C_COMPILER};} in machine.macros
  4. Put $HAVE_C_COMPILER(#); near the beginning of your user-code.
  5. If your compiler requires some unusual options, include directives, etc., change the variable C_FLAGS in the spec file mingw64_nt-10.0-19045.conf in the /c/EGSnrc_CLRP/HEN_HOUSE/specs/ directory. I would greatly appreciate any guidance or suggestions to resolve this persistent issue. the.error.msg.txt configure.txt

ROUZII3 avatar Mar 04 '24 12:03 ROUZII3