npwoods / bletchmame

Other
29 stars 6 forks source link

cmake installation on gentoo linux (lzma not found) #412

Open teletrail opened 12 months ago

teletrail commented 12 months ago

hallo, I am attempting to install your frontend on gentoo linux, however when I run cmake it terminates with an error about lzma not found.

I installed lzma in package manager, however that did not appear to resolve the error.

any support would be appreciated.

thanks

npwoods commented 12 months ago

I don't have a linux install handy, but are you installing this flavor of LZMA? https://github.com/npwoods/lzma-c-sdk

teletrail commented 12 months ago

I ran cmake .. /make / su/ make install (installed to usr/local) for that linked package, however cmake for this frontend continues to fail on lzma requirements.

teletrail commented 12 months ago
 cmake ..
CMake Error at CMakeLists.txt:48 (find_package):
  By not providing "FindLZMA.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "LZMA", but
  CMake did not find one.

  Could not find a package configuration file provided by "LZMA" with any of
  the following names:

    LZMAConfig.cmake
    lzma-config.cmake

  Add the installation prefix of "LZMA" to CMAKE_PREFIX_PATH or set
  "LZMA_DIR" to a directory containing one of the above files.  If "LZMA"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

full cmake error

npwoods commented 12 months ago

Did LZMAConfig.cmake get installed to /usr/local? I fear that I might be doing something slightly different than you; cmake has a great deal of finicky conventions that are deviously and subtly different across platforms (I'm almost always on Windows)

teletrail commented 12 months ago

the cmake process did not appear to build a LZMAConfig.cmake file, only a lot of .h files (/usr/local/include, not /usr/local sorry)

is there a better build command than " cmake .. (from build/) / make / su/ make install?"

thanks for the prompt replies.

npwoods commented 12 months ago

Honestly I'm really not sure. I strongly suspect that in practice we're going to find out that I am overlooking some sort of cmake best practice that would make this problem go away.

I wish I had a better answer for you!