hercules-390 / hyperion

Hercules 390
Other
251 stars 70 forks source link

Building hyperion using command line on Windows 10 #275

Open MrScott188 opened 5 years ago

MrScott188 commented 5 years ago

I am trying to build hercules hyperion on my Windows 10 machine which has the latest updates. Cmake, the git client, MS Studio, and Regina Rexx were obtained last week. The method I'm trying to build hyperion is via the command line. The Windows 10 machine is 64-bit. The command I'm using is: cmake -S \Users\scott3\hyperion -G "Visual Studio 16 2019" From the first run to the latest is: -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.22.0.windows.1")

Existing file CMakeCache.txt and directory CMakeFiles/ MUST be removed from the source directory:

/Users/scott3/hyperion

Hercules cannot be configured until CMakeCache.txt and CMakeFiles/. are removed from /Users/scott3/hyperion.

CMake Error at CMakeLists.txt:96 (message): Hercules will not be configured

-- Configuring incomplete, errors occurred!

I can clear and remove the CMakeFiles directory and delete the CMakeCache cache and run the cmake command again and get the same thing.

There is no: config.h, cmakecache.txt, commitinfo.h files and the like. What else is needed to correct?

MrScott188 commented 5 years ago

cmakecache.txt is: C:\Users\scott3\hyperion\CMakeFiles>type cmakecache.txt

This is the CMakeCache file.

For build in directory: c:/Users/scott3/hyperion/CMakeFiles

It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe

You can edit this file to change values found and used by cmake.

If you do not want to change any of the values, simply exit the editor.

If you do want to change a value, simply edit, save, and exit the editor.

The syntax for the file is as follows:

KEY:TYPE=VALUE

KEY is the name of a variable in the cache.

TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.

VALUE is the current value for the KEY.

########################

EXTERNAL cache entries

########################

//Git command line client GIT_EXECUTABLE:FILEPATH=C:/Program Files/Git/cmd/git.exe

########################

INTERNAL cache entries

########################

//This is the directory where this CMakeCache.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/scott3/hyperion/CMakeFiles //Major version of cmake used to create the current loaded cache CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 //Minor version of cmake used to create the current loaded cache CMAKE_CACHE_MINOR_VERSION:INTERNAL=15 //Patch version of cmake used to create the current loaded cache CMAKE_CACHE_PATCH_VERSION:INTERNAL=0 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe //Path to cpack program executable. CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe //Path to ctest program executable. CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe //Name of external makefile project generator. CMAKE_EXTRA_GENERATOR:INTERNAL= //Name of generator. CMAKE_GENERATOR:INTERNAL=Visual Studio 16 2019 //Generator instance identifier. CMAKE_GENERATOR_INSTANCE:INTERNAL= //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. CMAKE_GENERATOR_TOOLSET:INTERNAL= //Source directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/Users/scott3/hyperion //number of local generators CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=C:/Program Files/CMake/share/cmake-3.15 //Details about finding Git FIND_PACKAGE_MESSAGE_DETAILS_Git:INTERNAL=[C:/Program Files/Git/cmd/git.exe][v2.22.0.windows.1()] //ADVANCED property for variable: GIT_EXECUTABLE GIT_EXECUTABLE-ADVANCED:INTERNAL=1 //Error count herc_Error:INTERNAL=0

srorso commented 5 years ago

Hi MrScott188,

I’m traveling at the moment but it appears that you are building Hyperion in the source directory. This is not supported.

When building, create a separate directory for the built Hyperion package and issue the CMake command there.

When I get to my computer I can point you to web based build instructions.

Best regards, Steve Orso

Sent from mobile

On Jun 28, 2019, at 5:41 PM, MrScott188 notifications@github.com<mailto:notifications@github.com> wrote:

I am trying to build hercules hyperion on my Windows 10 machine which has the latest updates. Cmake, the git client, MS Studio, and Regina Rexx were obtained last week. The method I'm trying to build hyperion is via the command line. The Windows 10 machine is 64-bit. The command I'm using is: cmake -S \Users\scott3\hyperion -G "Visual Studio 16 2019" From the first run to the latest is: -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.22.0.windows.1")

Existing file CMakeCache.txt and directory CMakeFiles/ MUST be removed from the source directory:

/Users/scott3/hyperion

Hercules cannot be configured until CMakeCache.txt and CMakeFiles/. are removed from /Users/scott3/hyperion.

CMake Error at CMakeLists.txt:96 (message): Hercules will not be configured

-- Configuring incomplete, errors occurred!

I can clear and remove the CMakeFiles directory and delete the CMakeCache cache and run the cmake command again and get the same thing.

There is no: config.h, cmakecache.txt, commitinfo.h files and the like. What else is needed to correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/hercules-390/hyperion/issues/275?email_source=notifications&email_token=AEC24NTIAMRKS5K6VSXH5ZDP42ASBA5CNFSM4H4IV7I2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4M4BXA, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEC24NU7W5XIZPAOKOISFOTP42ASBANCNFSM4H4IV7IQ.

srorso commented 5 years ago

Hi Mr. Scott188,

Have you had success building Hyperion on Windows using CMake?

Here the previously-promised link:

http://hercules-390.github.io/html/CMake/indexwin.html

More detail for building from a command line can be found at this bookmark on that page:

http://hercules-390.github.io/html/CMake/indexwin.html#buildcmdline

Best Regards, Steve Orso

MrScott188 commented 5 years ago

Thank you all! I will give your ideas a try tomorrow.

ghost commented 4 years ago

the current CMakeLists is just that ... Broken it does not reach the point where it displays a meaningful messages ( really the test for the two thingies is pretty useless )

in a virgin source tree CMAKE allocates and writes to CMakeCache.txt and CMakeFiles before reaching the statements

if( (EXISTS ${SOURCE_DIR}/CMakeCache.txt )
        OR (EXISTS ${SOURCE_DIR}/CMakeFiles) )

at line 79

You make the mistake of issuing the command cmake . You get the message You say ok let's delete the s**t You think You have fixed the problem and ... You issue the command cmake . again and the history keeps goin on and on and on :-)