Сonan build error (MacOS) #428

Closed
opened 2026-01-29 20:43:45 +00:00 by claunia · 1 comment
Owner

Originally created by @ghost on GitHub (May 30, 2022).

Hello. I ran into a problem when trying to open my project on macOS.

Environment:
• Operating system: macOS Monterey 12.4
• Conan: 1.48.1
• CMake: 3.23.2
• Clang: Apple clang version 13.1.6 (clang-1316.0.21.2.5), Target: x86_64-apple-darwin21.5.0

Conan default profile:

[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.version=13
compiler.libcxx=libc++
[options]
[build_requires]
[env]

I use cmake-conan (from this commit) to configure:

conan_cmake_configure(
    GENERATORS
        cmake_find_package
        cmake_paths
    REQUIRES
        boost/1.70.0
        protobuf/3.17.1
        nlohmann_json/3.10.4
        threadpool/20140926
        plog/1.1.5
        qt/5.15.2
        openssl/1.1.1o
        gtest/1.11.0
    OPTIONS
        qt:qttools=True
        qt:qtsvg=True
        qt:qtwebsockets=True
        qt:qtgraphicaleffects=True
        qt:with_sqlite3=True
        qt:openssl=True
        qt:qttranslations=True
        qt:shared=True
        openssl:shared=False
        gtest:shared=False
        boost:shared=False
)

And I get the following output:


Running /usr/local/Cellar/cmake/3.23.2/bin/cmake -S /Users/admin/dev/cmake-projects/myproject -B /Users/admin/dev/cmake-projects/myproject/.build '-GUnix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Debug '-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=/Users/admin/Applications/Qt Creator 5.0.3/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake' -DQT_QMAKE_EXECUTABLE:STRING= -DCMAKE_PREFIX_PATH:STRING= -DCMAKE_C_COMPILER:STRING=/usr/bin/clang -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++ in /Users/admin/dev/cmake-projects/myproject/.build.
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- The C compiler identification is AppleClang 13.1.6.13160021
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - 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: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CONAN_AUTODETECT_SETTINGS: build_type=Debug;compiler=apple-clang;compiler.version=13.1;compiler.libcxx=libc++
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.48.1
-- Conan executing: /usr/local/bin/conan install . --remote conancenter --install-folder /Users/admin/dev/cmake-projects/myproject/.build/conan-dependencies --build missing --settings build_type=Debug --settings compiler=apple-clang --settings compiler.version=13.1 --settings compiler.libcxx=libc++
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=13.1
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

WARN: libmysqlclient/8.0.25: requirement openssl/1.1.1n overridden by qt/5.15.2 to openssl/1.1.1o 
brotli/1.0.9: WARN: Package binary is corrupted, removing: feb228e235bd936f68c6244dbffa5a18f49481c8
conanfile.txt: Installing package
Requirements
    boost/1.70.0 from 'conancenter' - Cache
    brotli/1.0.9 from 'conancenter' - Cache
    bzip2/1.0.8 from 'conancenter' - Cache
    double-conversion/3.2.0 from 'conancenter' - Cache
    freetype/2.11.1 from 'conancenter' - Cache
    gtest/1.11.0 from 'conancenter' - Cache
    libbacktrace/cci.20210118 from 'conancenter' - Cache
    libiconv/1.16 from 'conancenter' - Cache
    libjpeg/9d from 'conancenter' - Cache
    libmysqlclient/8.0.25 from 'conancenter' - Cache
    libpng/1.6.37 from 'conancenter' - Cache
    libpq/14.2 from 'conancenter' - Cache
    lz4/1.9.3 from 'conancenter' - Cache
    nlohmann_json/3.10.4 from 'conancenter' - Cache
    odbc/2.3.9 from 'conancenter' - Cache
    opengl/system from 'conancenter' - Cache
    openssl/1.1.1o from 'conancenter' - Cache
    pcre2/10.39 from 'conancenter' - Cache
    plog/1.1.5 from 'conancenter' - Cache
    protobuf/3.17.1 from 'conancenter' - Cache
    qt/5.15.2 from 'conancenter' - Cache
    sqlite3/3.38.1 from 'conancenter' - Cache
    threadpool/20140926 from 'conancenter' - Cache
    zlib/1.2.12 from 'conancenter' - Cache
    zstd/1.5.2 from 'conancenter' - Cache
Packages
    boost/1.70.0:db8004bb7a28536984026291873b7939817fbde2 - Build
    brotli/1.0.9:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    bzip2/1.0.8:36828dcc93e73f46fa7d8e86b7477fa5918d7092 - Build
    double-conversion/3.2.0:e08df2294d4e9d22789f5b04e456f3282883f9c3 - Build
    freetype/2.11.1:341bd371f5a917544838efd5dda1d6e499243be0 - Build
    gtest/1.11.0:e014db1f5421ae885027a11023c450a1b6b11c12 - Build
    libbacktrace/cci.20210118:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    libiconv/1.16:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    libjpeg/9d:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    libmysqlclient/8.0.25:96c7fc80fc94f9af9438127dfa2e9884b6b7fbc5 - Build
    libpng/1.6.37:b4aac58021e7d56c2033f9564e29b5279b8dc656 - Build
    libpq/14.2:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    lz4/1.9.3:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    nlohmann_json/3.10.4:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    odbc/2.3.9:7a242e46248e20935451a4415851b0943e2eb1dc - Build
    opengl/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    openssl/1.1.1o:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    pcre2/10.39:f22518465a6ce1d1ac2eb9027c8884aa99f95e8c - Build
    plog/1.1.5:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    protobuf/3.17.1:09017357b4a1fa643ef69a5f2ee7523890730723 - Build
    qt/5.15.2:b4a6148e9ae0f954c07eb38e2a56a176b58a6901 - Build
    sqlite3/3.38.1:8dff677a76e527333ea8b60c7ad34f125218b6ae - Build
    threadpool/20140926:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    zlib/1.2.12:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build
    zstd/1.5.2:cf2bb32f2dfde5cc5d112b4631c61783a65395a6 - Build
Build requirements
    b2/4.8.0 from 'conancenter' - Cache
    cmake/3.22.0 from 'conancenter' - Cache
    gnu-config/cci.20201022 from 'conancenter' - Cache
Build requirements packages
    b2/4.8.0:46f53f156846659bf39ad6675fa0ee8156e859fe - Cache
    cmake/3.22.0:8780864092a6c58a5f5d385d2da47db0f418446d - Cache
    gnu-config/cci.20201022:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
b2/4.8.0: Already installed!
brotli/1.0.9: WARN: Build folder is dirty, removing it: /Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8
brotli/1.0.9: Copying sources to build folder
brotli/1.0.9: Building your package in /Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8
brotli/1.0.9: Generator cmake created conanbuildinfo.cmake
brotli/1.0.9: Aggregating env generators
brotli/1.0.9: Calling build()
/bin/sh: cmake: command not found
brotli/1.0.9: 
brotli/1.0.9: ERROR: Package 'feb228e235bd936f68c6244dbffa5a18f49481c8' build failed
brotli/1.0.9: WARN: Build folder /Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8
ERROR: brotli/1.0.9: Error in build() method, line 69
	cmake = self._configure_cmake()
while calling '_configure_cmake', line 63
	self._cmake.configure(build_folder=self._build_subfolder)
	ConanException: Error 127 while executing cd '/Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8/build_subfolder' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="apple-clang" -DCONAN_COMPILER_VERSION="13.1" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/Users/admin/.conan/data/brotli/1.0.9/_/_/package/feb228e235bd936f68c6244dbffa5a18f49481c8" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DBROTLI_BUNDLED_MODE="False" -DBROTLI_DISABLE_TESTS="True" -DCMAKE_POLICY_DEFAULT_CMP0042="NEW" -Wno-dev '/Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8'
CMake Error at libs/cmake-conan/conan.cmake:638 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/conan/conan-install.cmake:18 (conan_cmake_install)
  CMakeLists.txt:50 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/admin/dev/cmake-projects/myproject/.build/CMakeFiles/CMakeOutput.log".
CMake process exited with exit code 1.

Elapsed time: 00:03.

I can't understand the reason for this error "ConanException: Error 127 while executing".
I compiled my project on Windows 10, Debian 11 and there are no such problems.

Originally created by @ghost on GitHub (May 30, 2022). Hello. I ran into a problem when trying to open my project on macOS. Environment: • Operating system: macOS Monterey 12.4 • Conan: 1.48.1 • CMake: 3.23.2 • Clang: Apple clang version 13.1.6 (clang-1316.0.21.2.5), Target: x86_64-apple-darwin21.5.0 Conan default profile: ``` [settings] os=Macos os_build=Macos arch=x86_64 arch_build=x86_64 compiler=apple-clang compiler.version=13 compiler.libcxx=libc++ [options] [build_requires] [env] ``` I use **cmake-conan** (from this [commit](https://github.com/conan-io/cmake-conan/commit/1ed947da9c0207b070c7967af1c60da636039c33)) to configure: ``` conan_cmake_configure( GENERATORS cmake_find_package cmake_paths REQUIRES boost/1.70.0 protobuf/3.17.1 nlohmann_json/3.10.4 threadpool/20140926 plog/1.1.5 qt/5.15.2 openssl/1.1.1o gtest/1.11.0 OPTIONS qt:qttools=True qt:qtsvg=True qt:qtwebsockets=True qt:qtgraphicaleffects=True qt:with_sqlite3=True qt:openssl=True qt:qttranslations=True qt:shared=True openssl:shared=False gtest:shared=False boost:shared=False ) ``` And I get the following output: ``` Running /usr/local/Cellar/cmake/3.23.2/bin/cmake -S /Users/admin/dev/cmake-projects/myproject -B /Users/admin/dev/cmake-projects/myproject/.build '-GUnix Makefiles' -DCMAKE_BUILD_TYPE:STRING=Debug '-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=/Users/admin/Applications/Qt Creator 5.0.3/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake' -DQT_QMAKE_EXECUTABLE:STRING= -DCMAKE_PREFIX_PATH:STRING= -DCMAKE_C_COMPILER:STRING=/usr/bin/clang -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++ in /Users/admin/dev/cmake-projects/myproject/.build. -- The CXX compiler identification is AppleClang 13.1.6.13160021 -- The C compiler identification is AppleClang 13.1.6.13160021 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - 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: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done CONAN_AUTODETECT_SETTINGS: build_type=Debug;compiler=apple-clang;compiler.version=13.1;compiler.libcxx=libc++ -- Conan: checking conan executable -- Conan: Found program /usr/local/bin/conan -- Conan: Version found Conan version 1.48.1 -- Conan executing: /usr/local/bin/conan install . --remote conancenter --install-folder /Users/admin/dev/cmake-projects/myproject/.build/conan-dependencies --build missing --settings build_type=Debug --settings compiler=apple-clang --settings compiler.version=13.1 --settings compiler.libcxx=libc++ Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=apple-clang compiler.libcxx=libc++ compiler.version=13.1 os=Macos os_build=Macos [options] [build_requires] [env] WARN: libmysqlclient/8.0.25: requirement openssl/1.1.1n overridden by qt/5.15.2 to openssl/1.1.1o brotli/1.0.9: WARN: Package binary is corrupted, removing: feb228e235bd936f68c6244dbffa5a18f49481c8 conanfile.txt: Installing package Requirements boost/1.70.0 from 'conancenter' - Cache brotli/1.0.9 from 'conancenter' - Cache bzip2/1.0.8 from 'conancenter' - Cache double-conversion/3.2.0 from 'conancenter' - Cache freetype/2.11.1 from 'conancenter' - Cache gtest/1.11.0 from 'conancenter' - Cache libbacktrace/cci.20210118 from 'conancenter' - Cache libiconv/1.16 from 'conancenter' - Cache libjpeg/9d from 'conancenter' - Cache libmysqlclient/8.0.25 from 'conancenter' - Cache libpng/1.6.37 from 'conancenter' - Cache libpq/14.2 from 'conancenter' - Cache lz4/1.9.3 from 'conancenter' - Cache nlohmann_json/3.10.4 from 'conancenter' - Cache odbc/2.3.9 from 'conancenter' - Cache opengl/system from 'conancenter' - Cache openssl/1.1.1o from 'conancenter' - Cache pcre2/10.39 from 'conancenter' - Cache plog/1.1.5 from 'conancenter' - Cache protobuf/3.17.1 from 'conancenter' - Cache qt/5.15.2 from 'conancenter' - Cache sqlite3/3.38.1 from 'conancenter' - Cache threadpool/20140926 from 'conancenter' - Cache zlib/1.2.12 from 'conancenter' - Cache zstd/1.5.2 from 'conancenter' - Cache Packages boost/1.70.0:db8004bb7a28536984026291873b7939817fbde2 - Build brotli/1.0.9:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build bzip2/1.0.8:36828dcc93e73f46fa7d8e86b7477fa5918d7092 - Build double-conversion/3.2.0:e08df2294d4e9d22789f5b04e456f3282883f9c3 - Build freetype/2.11.1:341bd371f5a917544838efd5dda1d6e499243be0 - Build gtest/1.11.0:e014db1f5421ae885027a11023c450a1b6b11c12 - Build libbacktrace/cci.20210118:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build libiconv/1.16:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build libjpeg/9d:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build libmysqlclient/8.0.25:96c7fc80fc94f9af9438127dfa2e9884b6b7fbc5 - Build libpng/1.6.37:b4aac58021e7d56c2033f9564e29b5279b8dc656 - Build libpq/14.2:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build lz4/1.9.3:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build nlohmann_json/3.10.4:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache odbc/2.3.9:7a242e46248e20935451a4415851b0943e2eb1dc - Build opengl/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache openssl/1.1.1o:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build pcre2/10.39:f22518465a6ce1d1ac2eb9027c8884aa99f95e8c - Build plog/1.1.5:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache protobuf/3.17.1:09017357b4a1fa643ef69a5f2ee7523890730723 - Build qt/5.15.2:b4a6148e9ae0f954c07eb38e2a56a176b58a6901 - Build sqlite3/3.38.1:8dff677a76e527333ea8b60c7ad34f125218b6ae - Build threadpool/20140926:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache zlib/1.2.12:feb228e235bd936f68c6244dbffa5a18f49481c8 - Build zstd/1.5.2:cf2bb32f2dfde5cc5d112b4631c61783a65395a6 - Build Build requirements b2/4.8.0 from 'conancenter' - Cache cmake/3.22.0 from 'conancenter' - Cache gnu-config/cci.20201022 from 'conancenter' - Cache Build requirements packages b2/4.8.0:46f53f156846659bf39ad6675fa0ee8156e859fe - Cache cmake/3.22.0:8780864092a6c58a5f5d385d2da47db0f418446d - Cache gnu-config/cci.20201022:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache Installing (downloading, building) binaries... b2/4.8.0: Already installed! brotli/1.0.9: WARN: Build folder is dirty, removing it: /Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8 brotli/1.0.9: Copying sources to build folder brotli/1.0.9: Building your package in /Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8 brotli/1.0.9: Generator cmake created conanbuildinfo.cmake brotli/1.0.9: Aggregating env generators brotli/1.0.9: Calling build() /bin/sh: cmake: command not found brotli/1.0.9: brotli/1.0.9: ERROR: Package 'feb228e235bd936f68c6244dbffa5a18f49481c8' build failed brotli/1.0.9: WARN: Build folder /Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8 ERROR: brotli/1.0.9: Error in build() method, line 69 cmake = self._configure_cmake() while calling '_configure_cmake', line 63 self._cmake.configure(build_folder=self._build_subfolder) ConanException: Error 127 while executing cd '/Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8/build_subfolder' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="apple-clang" -DCONAN_COMPILER_VERSION="13.1" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/Users/admin/.conan/data/brotli/1.0.9/_/_/package/feb228e235bd936f68c6244dbffa5a18f49481c8" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DBROTLI_BUNDLED_MODE="False" -DBROTLI_DISABLE_TESTS="True" -DCMAKE_POLICY_DEFAULT_CMP0042="NEW" -Wno-dev '/Users/admin/.conan/data/brotli/1.0.9/_/_/build/feb228e235bd936f68c6244dbffa5a18f49481c8' CMake Error at libs/cmake-conan/conan.cmake:638 (message): Conan install failed='1' Call Stack (most recent call first): cmake/conan/conan-install.cmake:18 (conan_cmake_install) CMakeLists.txt:50 (include) -- Configuring incomplete, errors occurred! See also "/Users/admin/dev/cmake-projects/myproject/.build/CMakeFiles/CMakeOutput.log". CMake process exited with exit code 1. Elapsed time: 00:03. ``` I can't understand the reason for this error "**ConanException: Error 127 while executing**". I compiled my project on Windows 10, Debian 11 and there are no such problems.
Author
Owner

@ghost commented on GitHub (May 31, 2022):

I found a solution to my problem. I decided to run a simple build command from the terminal:

cd ./.build
cmake -DCMAKE_BUILD_TYPE=Debug ..

And it worked :) At first I didn't understand why it doesn't work in QtCreator, which basically does the same thing. The thing is that the macOS terminal and QtCreator did not have exactly the same environment. I ran the command in terminal:

echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Some of the specified environment paths were missing in my QtCrteator env paths, so I added them. I also added the path to Ninja.

The solution for those who will face this problem in the future, just adjust the PATH variable like this:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Cellar/ninja/1.11.0/bin/ninja
@ghost commented on GitHub (May 31, 2022): I found a solution to my problem. I decided to run a simple build command from the terminal: ``` cd ./.build cmake -DCMAKE_BUILD_TYPE=Debug .. ``` And it worked :) At first I didn't understand why it doesn't work in QtCreator, which basically does the same thing. The thing is that the macOS terminal and QtCreator did not have exactly the same environment. I ran the command in terminal: ``` echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin ``` Some of the specified environment paths were missing in my QtCrteator env paths, so I added them. I also added the path to Ninja. The solution for those who will face this problem in the future, just adjust the PATH variable like this: ``` /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Cellar/ninja/1.11.0/bin/ninja ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#428