Page 1 of 1

Installing on Apple M1 mini

Posted: Tue Nov 09, 2021 5:27 pm
by squinones
Has anyone tried to compile this yet? How can I compile for Arm? Obviously M1 is arm so I'm getting and error:

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/steven/Downloads/cgru.3.2.0/afanasy/bin/afwatch] Error 1
make[1]: *** [watch/CMakeFiles/afwatch.dir/all] Error 2
make: *** [all] Error 2

and using -v:

steven@Mini-render-2 ~/Downloads/cgru.3.2.0/afanasy/src/project.cmake $ ./ --nosql -v
CGRU_VERSION 3.2.0 : '/Users/steven/Downloads/cgru.3.2.0'
Detecting UNIX distribution...
MacOSX 11.6 arm64
Building on 'MacOSX'
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

WARNING! Building without SQL.

Setting c++11 standard for GCC
Using std::regex ECMAScript regular expressions (Perl-like).
-- Qt version 5.15.2
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem system python)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/steven/Downloads/cgru.3.2.0/afanasy/src/project.cmake
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

This program built for i386-apple-darwin11.3.0

Any ideas?

Re: Installing on Apple M1 mini

Posted: Wed Nov 10, 2021 8:23 am
by timurhai
I have no experience with Mac, but the error message

Code: Select all

clang: error: linker command failed with exit code 1 (use -v to see invocation)
Asks you to pass '-v' argument to linker command, not to ./ script.
How to do this, you can read cmake manuals.
Try to ask this question on some Mac programming forums.