dscharrer / innoextract

A tool to unpack installers created by Inno Setup
https://constexpr.org/innoextract/
Other
977 stars 119 forks source link

mingw under Ubuntu #154

Closed john-peterson closed 1 year ago

john-peterson commented 1 year ago
https://gist.githubusercontent.com/peterspackman/8cf73f7f12ba270aa8192d6911972fe8/raw/mingw-w64-x86_64.cmake

sudo apt install build-essential cmake git  liblzma-dev libboost-all-dev g++-mingw-w64-x86-64 libz-mingw-w64

cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw-w64-x86_64.cmake

CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):                                       Could NOT find LZMA (missing: LZMA_LIBRARY LZMA_INCLUDE_DIR)                          Call Stack (most recent call first):          /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindLZMA.cmake:87 (find_package_handle_standard_args)
  CMakeLists.txt:143 (find_package)

any ideas?

dscharrer commented 1 year ago

You need to install liblzma + headers as well as the other dependencies in your MinGW build root (no idea if Ubuntu's MinGW has all required packages) or build them yourself and tell CMake where it can find them.