RE: Building SDL Hyperion on macOS
"'\'Fish\' \(David B. Trout\)' [email protected] [hercules-390]" <[email protected]> Mon, 9 Sep 2019 10:41:43 -0700
| Newsgroups | gmane.comp.emulators.hercules390.general |
|---|---|
| Message-ID | <[email protected]> |
Blake wrote: > I recently downloaded the Hyperion version of Hercules > from https://github.com/hercules-390/hyperion.git did > a cmake and had hercules built in a flash. However, I > next realized that the SDL version of Hercules hyperion > seems to be most up to date version Correct. > and thus wanted to build that. > > cmake ../hyperion-sdl > > CMake Error: The source directory "/Users/user1/ztest/hyperion-sdl" > does not appear to contain CMakeLists.txt. > > Specify --help for usage, or press the help button on the CMake GUI. SDL-Hercules-390 Hyperion is not the same as Hercules-390 Hyperion. > 1) Where can I get this missing file so I can use cmake to build it, > since that has always been a very easy way to do so? SDL-Hercules-390 Hyperion does not use CMake to build Hercules. It still uses the old tried and true ./configure && make method. > I then tried: > > $ ./autogen.sh [...] > $ ./configure [...] > $ make [...] > Undefined symbols for architecture x86_64: > "_crypto_version", referenced from: > _init_sysblk_version_str_arrays in version.o > "_decnumber_version", referenced from: > _init_sysblk_version_str_arrays in version.o > "_softfloat_version", referenced from: > _init_sysblk_version_str_arrays in version.o > "_telnet_version", referenced from: > _init_sysblk_version_str_arrays in version.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > make[2]: *** [libhercu.la] Error 1 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > Is there a more preferred and recommended manner to build > SDL Hercules Hyperion on a Mac? Yes. The more preferred and recommended manner to build SDL-Hercules-390 Hyperion on a Mac is to follow the official instructions as documented in the "Building and Installing" section of our "Installation and Operation" web page at: https://sdl-hercules-390.github.io/html/hercinst.html being sure to paying particular attention to step 5 of "Building from source - Linux and Mac OS X": 5. Download and build all External Packages if needed which, for the Macintosh, is *critical*. (i.e. needed/REQUIRED) Building the External Libraries (which you only need to do once) (unless they ever change, at which point you will then need to rebuild them again, but that rarely happens; they're pretty stable) is very simple: Just download the "extpkgs.sh" and "extpkgs.sh.ini" files from the SDL-Hercules-390 gists repository: https://github.com/SDL-Hercules-390/gists Make any needed/desired changes (likely none), and use the "extpkgs.sh clone c d s t" script to clone and build all four libraries at once. Then either: a) Update your environment variable to point to your newly built external libraries or: b) Use the "--enable-extpkgs=..." option on your ./configure command before building Hercules. (method "a" is preferred since you only need to do it once and then never again, where with "b" you need to specify the option every time.) Once the External Libraries have been built, THEN you can use ./configure && make to build SDL-Hercules-390 Hyperion. So... to build SDL-Hercules-390 Hyperion is a slight PITA the first time you do it (due to the requirement of having to build the External Libraries first), but once you do that, then from then on it's just as easy as it has always been: ./configure && make, just like always. HTH -- "Fish" (David B. Trout) Software Development Laboratories http://www.softdevlabs.com mail: [email protected]