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

Building i18n-cpp on Mac Studio M1 failts #13

Open
jacques-menu opened this issue Sep 26, 2023 · 4 comments
Open

Building i18n-cpp on Mac Studio M1 failts #13

jacques-menu opened this issue Sep 26, 2023 · 4 comments

Comments

@jacques-menu
Copy link

Hello,

See below what I get.

Thanks for your help!

J. Menu

--

jacquesmenu@macstudio:/Volumes/JMI_Volume/JMI_Developpement/i18n++ > clang --version
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

jacquesmenu@macstudio:/Volumes/JMI_Volume/JMI_Developpement/i18n++ > cmake .
-- The C compiler identification is AppleClang 15.0.0.15000040
-- The CXX compiler identification is AppleClang 15.0.0.15000040
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.58.0")
-- Performing Test HAVE_FLAG__ffile_prefix_map__Volumes_JMI_Volume_JMI_Developpement_i18n___external_Catch2__
-- Performing Test HAVE_FLAG__ffile_prefix_map__Volumes_JMI_Volume_JMI_Developpement_i18n___external_Catch2__ - Success
CMake Error at merge/CMakeLists.txt:7 (find_package):
By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "fmt", but
CMake did not find one.

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

fmtConfig.cmake
fmt-config.cmake

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

-- Configuring incomplete, errors occurred!
See also "/Volumes/JMI_Volume/JMI_Developpement/i18n++/CMakeFiles/CMakeOutput.log".
See also "/Volumes/JMI_Volume/JMI_Developpement/i18n++/CMakeFiles/CMakeError.log".
jacquesmenu@macstudio:/Volumes/JMI_Volume/JMI_Developpement/i18n++ >

@zauguin
Copy link
Owner

zauguin commented Sep 29, 2023

Is fmt installed on your system? You might have to install it first. cmake is complaining that it can't find it.

@jacques-menu
Copy link
Author

jacques-menu commented Sep 29, 2023 via email

@zauguin
Copy link
Owner

zauguin commented Sep 30, 2023

The runtime library does automatically use C++20 format if it's available, but since it automatically falls back to fmt (which c++20 format is based on) it is still needed during compile time.

As a word of warning since you are using AppleClang: Apple's Clang does not ship with headers needed to compile against it, therefore another clang installation is needed to actually compile this.

@jacques-menu
Copy link
Author

jacques-menu commented Sep 30, 2023 via email

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