How to create an executable file


  1. Posts : 3
    win 10
       #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. Posts : 25,021
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #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. Posts : 3
    win 10
    Thread Starter
       #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. Posts : 25,021
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #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
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 12:19.
Find Us




Windows 10 Forums