Installing on Apple M1 mini

Manual project build issues.
Post Reply
squinones
Posts: 1
Joined: Tue Nov 09, 2021 5:14 pm

Installing on Apple M1 mini

Post 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 $ ./build.sh --nosql -v
CGRU_VERSION 3.2.0 : '/Users/steven/Downloads/cgru.3.2.0'
CGRU_REVISION
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
CMake.

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 13.0.0.13000029
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
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0


Any ideas?
Thanks,
Steven
User avatar
timurhai
Site Admin
Posts: 780
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Installing on Apple M1 mini

Post by timurhai »

Hi!
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 ./build.sh script.
How to do this, you can read cmake manuals.
Try to ask this question on some Mac programming forums.
Timur Hairulin
CGRU 3.2.1, Ubuntu 20.04 LTS, MS Windows 10 (clients only).
Post Reply