Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Mac M1 Build #1498

Open
meltymon opened this issue Oct 7, 2024 · 1 comment
Open

Issue with Mac M1 Build #1498

meltymon opened this issue Oct 7, 2024 · 1 comment

Comments

@meltymon
Copy link

meltymon commented Oct 7, 2024

christian@MBPvonChristian build % cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- The C compiler identification is AppleClang 15.0.0.15000309
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
Using CD at "/Users/christian/OpenApoc/data/cd.iso"
-- Performing Test CXX_COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test CXX_COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
-- Performing Test C_COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test C_COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
CMake Warning (dev) at library/CMakeLists.txt:7 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.86.0/BoostConfig.cmake (found version "1.86.0") found components: locale
-- Found Threads: TRUE
CMake Warning (dev) at framework/CMakeLists.txt:225 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.86.0/BoostConfig.cmake (found suitable version "1.86.0", minimum required is "1.50") found components: locale system program_options
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'sdl2>=2.0'
-- Found sdl2, version 2.30.8
Searching for SDL2 in /opt/homebrew/lib
Found SDL2 at /opt/homebrew/lib/libSDL2.dylib
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenGL.framework
CMake Warning (dev) at game/state/CMakeLists.txt:13 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.86.0/BoostConfig.cmake (found version "1.86.0")
CMake Error at tools/launcher/CMakeLists.txt:11 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5", but
CMake did not find one.

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

Qt5Config.cmake
qt5-config.cmake

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

-- Configuring incomplete, errors occurred!
christian@MBPvonChristian build % cmake
--help-policy CMP0167
Usage

cmake [options]
cmake [options]
cmake [options] -S -B

Specify a source directory to (re-)generate a build system for it in the
current working directory. Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

zsh: command not found: --help-policy
christian@MBPvonChristian build % ls
CMakeCache.txt CMakeFiles forms framework game library tools
christian@MBPvonChristian build % cd ..
christian@MBPvonChristian OpenApoc % ls
CMakeLists.txt Vagrantfile build framework temp
CODE_STYLE.md apocicon.ico cmake game tests
LICENSE apocicon.rc data install tools
README.md appveyor-dev.yml dependencies library vcpkg.json
README_HOTKEYS.txt appveyor.yml forms portable.txt version.h.in
christian@MBPvonChristian OpenApoc % cd build
christian@MBPvonChristian build % "cmake
--help-policy CMP0167"
zsh: command not found: cmake\n --help-policy CMP0167
christian@MBPvonChristian build % cmake -Wno-dev
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.

CMake Error: The source directory "/Users/christian/OpenApoc/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
christian@MBPvonChristian build %

@JonnyH
Copy link
Collaborator

JonnyH commented Oct 10, 2024

It looks like it didn't find QT on your system - if you're using homebrew (recommended instead of a "system" qt install) try running "brew install qt@5", then running cmake with the "-DCMAKE_PREFIX_PATH=$(brew --prefix qt)" argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants