Problem with installation on mac os x
Platform
- SeqAn version: 3.3.0
- Operating system: Darwin MacBook-Pro-2.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:33:00 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6031 arm64
- Compiler:
Question
I have installed seqan3 by cloning repository, then runing cmake .. from build directory.
Then I run cmake install and all headers have been copied to /usr/local/include/seqan3 directory.
I've also added /usr/local/include/seqan3/** to the Header Search Paths of my Xcode project.
Then I have added two #include lines to simple hello world program in Xcode:
#include <seqan3/core/debug_stream.hpp>
#include <seqan3/io/sequence_file/all.hpp>
When I tried to build, it failed with a bunch of issues (below) in chunk_view.hpp file, etc.
Hey there,
Sorry for not getting back to you sooner.
Can you tell me what version of Clang/Xcode you are using?
For Clang, you can usually run clang --version in the terminal.
From the looks of it, the version used is older than llvm-clang-17, which is the minimum version we support. Note that Apple Clang (the one XCode is shipped with) usually has a different version number that translates to some llvm-clang version.
Hey there,
Sorry for not getting back to you sooner.
Can you tell me what version of Clang/Xcode you are using? For Clang, you can usually run
clang --versionin the terminal.From the looks of it, the version used is older than llvm-clang-17, which is the minimum version we support. Note that Apple Clang (the one XCode is shipped with) usually has a different version number that translates to some llvm-clang version.
% clang --version
Homebrew clang version 18.1.8
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /opt/homebrew/opt/llvm/bin
% clang --version Homebrew clang version 18.1.8 Target: arm64-apple-darwin23.1.0 Thread model: posix InstalledDir: /opt/homebrew/opt/llvm/bin
This version should work. As for M1 (arm64) support, I'm currently updating our CI to use macos-14 runners, which use M1 processors.
But Homebrew's clang is probably not the one XCode uses. XCode is shipped with some llvm/clang version, and this one is used by default.
Can you find out the XCode version?
For using Homebrew's clang in XCode I found this: https://forums.developer.apple.com/forums/thread/737718 I'll also try this on my old MacBook, in case the steps are not exhaustive.
Can you find out the XCode version?
XCode version 15.2
According to https://en.wikipedia.org/wiki/Xcode#Xcode_15.0_-_(since_visionOS_support)_2, XCode 16.0 would be the first version that ships with llvm 17.
In prior versions, XCode must be convinced to use Homebrew's llvm-clang.
I haven't managed to achieve that yet on my mac. But I never used XCode, and I apparently configured something such that XCode won't even work with Hello World.