i18n-cpp
i18n-cpp copied to clipboard
Building i18n-cpp on Mac Studio M1 failts
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++ >
Is fmt installed on your system? You might have to install it first. cmake is complaining that it can't find it.
Le 29 sept. 2023 à 18:17, Marcel Krüger @.***> a écrit :
Is fmt https://github.com/fmtlib/fmt installed on your system? You might have to install it first. cmake is complaining that it can't find it.
Hello Marcel,
Thanks for your answer. I’m new to c++20 format and I mistook fmt for it, sorry.
I can now go ahead!
J. Menu
— Reply to this email directly, view it on GitHub https://github.com/zauguin/i18n-cpp/issues/13#issuecomment-1741161157, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRJX6SLPHRO4CZR3XVMWO3X43YCTANCNFSM6AAAAAA5HJUEU4. You are receiving this because you authored the thread.
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.
Hello Marcel,
Le 30 sept. 2023 à 09:45, Marcel Krüger @.***> a écrit :
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.
—
That’s problematic : the code I develop is available on macOS, Linux and Windows, and I’m not sure that the people who would like to build on macOS will be willing to do complementary compilers installations.
What do you think?
JM