Comments (7)
@danymat The warning above is not a fatal error, I always got it on the M1 as well but it seems to run fine.
With the second command a number of features won't work, in particular anything using regexes.
from zk.
This header is required by the icu
build tag, I think I forgot to mention a dependency in the installation instructions. Could you try after running this with Homebrew?
$ brew install icu4c
I will get an M1 in about two weeks for further testing π
from zk.
from zk.
Ha, not a good sign! I found this too from there mattn/go-sqlite3#543
$ brew install icu4c
$ brew link icu4c
$ CGO_CFLAGS="-I/usr/local/opt/icu4c/include" CGO_LDFLAGS="-L/usr/local/opt/icu4c/lib" ./go build
If this doesn't work, I will probably need the M1 to try to find a workaround.
Alternatively, you may be able to build zk
with this, but some filtering options might not work properly:
$ CGO_ENABLED=1 go build -tags "fts5"
If you use a feature requiring icu, you will get this error from zk
:
zk: error: no such function: REGEXP
from zk.
I just received my M1 π
So the proper command to build was:
$ brew install icu4c
$ GOARCH=arm64 CGO_CFLAGS="-I/opt/homebrew/opt/icu4c/include" CGO_LDFLAGS="-L/opt/homebrew/opt/icu4c/lib" ./go build
@mhanberg I added a new build for the latest release, if you want to check it out: zk-v0.3.0-macos-arm64.zip
from zk.
Hello, as of today, it seems that doing make
on latest release can not compile:
GOARCH=arm64 CGO_CFLAGS="-I/opt/homebrew/opt/icu4c/include" CGO_LDFLAGS="-L/opt/homebrew/opt/icu4c/lib" go build -tags "fts5 icu" -ldflags "-X=main.Version=`git describe --tags --match v[0-9]* 2> /dev/null` -X=main.Build=`git rev-parse --short HEAD`"
# github.com/mickael-menu/zk
ld: warning: directory not found for option '-L/usr/local/opt/icu4c/lib'
Using the command you provided just above seems to work:
GOARCH=arm64 CGO_CFLAGS="-I/opt/homebrew/opt/icu4c/include" CGO_LDFLAGS="-L/opt/homebrew/opt/icu4c/lib" go build
from zk.
Right, thanks a lot !
from zk.
Related Issues (20)
- zk: error: no editor set in config HOT 1
- Support adding filters in lsp
- interactive filtering results in `Found 0 note` HOT 3
- LSP does not work HOT 3
- docs/note-creation.md out of date HOT 2
- Shell template helper inside template block does not work HOT 1
- Removing absolute file path from the edit interactive mode HOT 1
- Working dir paths not resolved correctly while using ~ HOT 3
- MD front matter - `aliases: [a?]` rises the warning HOT 2
- My custom template of link-format doesn't work HOT 2
- Natural date parsing from a different reference time than now HOT 3
- LSP Link doesn't support non-Markdown HOT 4
- TestCollectionDAOFindOrCreate fails HOT 3
- update brew formula HOT 1
- Switch to Pretty Upstream HOT 7
- zk list --created date, returns notes from one day after if YAML date does not have timestamp HOT 10
- glob not addressing all folders within ignore pattern HOT 3
- GitHub Pages site does not have a homepage HOT 1
- zk graph --format json is not handling note titles with inner double quotes HOT 7
- global template ignored HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zk.