How to create an executable file

  1.    #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 ComputerSystem Spec

  2. Bree's Avatar
    Posts : 12,383
    10 Home x64 (1903) (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 ComputersSystem Spec

  3.    #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 ComputerSystem Spec

  4. Bree's Avatar
    Posts : 12,383
    10 Home x64 (1903) (10 Pro on 2nd pc)
       #4

    philosopher76 said: View Post
    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 ComputersSystem Spec


 

Related Threads
I have several Nero's and none of them will create a DVD that can be inserted into a DVD player and watched on a TV. It appears that it isn't possible. Nero spent 20+ minutes creating two folders that contain nothing but garbage. Put in the...
I have voice recordings from meetings in mp3 format. Is there free software to create a text file from there?
Using Total Commander mostly. Example: Downloaded a zip file, right clicked on it and selected Extract All from context menu. A new folder was created and Explorer started immediately with the new folder. I don't harbor a grudge against File...
Hi, I'm developing some tools that produce Win32 image files (.exe or .dll), and I want to supply debug information so that a user can use the image with a debugger. Does anyone know a tool that can write pdb files? Presumably from Microsoft, but...
I have seen people sending executable & linkable file with phone numbers in Whatapp which after clicking automatically ask us to add to contacts. How these files are created and what is the software name? Please help. Thanks Ashok
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 19:36.
Find Us