# How to create an executable file

1. ## How to create an executable file

Hi, I am trying to install Zacros (a chemistry software).

I have to follow these instructions:

Code:
cd path\to\source\of\Zacros
md build # If it does not exist yet
cd build
copy path\to\makefiles\makefile-gfortran-parallel-windows makefile make
It is expected to create "zacros.exe"

However, when I type "dir" it says 0 files on the directory.

Thanks!
My Computer

2. Sounds like you have downloaded the source files rather than a pre-compiled executable (if one is available). A Makefile contains instructions for a C++ compiler to create an executable from the C++ source files. If only the source files are offered, then you'll need a C++ compiler.

Make is a built-in command in Unix...

GNU make - An Introduction to Makefiles

...but in Windows you'll need to have installed a C++ compiler such as Visual Studio.

How to run a makefile in Windows? - Stack Overflow
My Computers

3. ## Creating an executable file

Hi, I have installed CMake 3.15.. I have also installed Gfortran which is the required compiler for Zacros.
Inside Cmake there are two fields source code and where to buil d the binaries.

I typed both correctly and I get " CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage".

When typing dir again I see Cmake inside "build" .

My Computer

4. philosopher76 said:
Hi, I have installed CMake 3.15... I get " CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage".

This is outside my area of expertise, but I'm sure there are others that will be along to help.

In the mean time, you might like to check that you PATH environment is set up as required. See this thread on Stack Overflow:

makefile - CMAKE_MAKE_PROGRAM not found - Stack Overflow
My Computers

Related Discussions
Our Sites