jlrs
jlrs copied to clipboard
Mac OS support / uv.h file not found
Hi! Could you please help me get it to work on Mac OS?
I get the following error:
cargo:warning=In file included from src/jlrs_cc.c:1:
cargo:warning=src/jlrs_cc.h:1:10: fatal error: 'uv.h' file not found
cargo:warning=#include <uv.h>
It fails here. The minimal reproducible example/project: https://github.com/vyorkin/jlrs_macos.git
Here is my env:
$ echo $DYLD_LIBRARY_PATH
/Applications/Julia-1.9.app/Contents/Resources/julia/include/julia
$ cd /Applications/Julia-1.9.app/Contents/Resources/julia/include/julia
$ ls
analyzer_annotations.h dirpath.h ENTRY.amd64.h htable.h julia.h julia_fasttls.h julia_threads.h MurmurHash3.h rle.h tzfile.h uv
arraylist.h dtypes.h ENTRY.i387.h ios.h julia_assert.h julia_gcext.h julia_version.h platform.h strtod.h utf8.h uv.h
bitvector.h END.h hashing.h jloptions.h julia_atomics.h julia_locks.h libsupport.h ptrhash.h timefuncs.h utils.h
$ brew list libuv
/opt/homebrew/Cellar/libuv/1.45.0/include/uv/ (5 files)
/opt/homebrew/Cellar/libuv/1.45.0/include/uv.h
/opt/homebrew/Cellar/libuv/1.45.0/lib/libuv.1.dylib
/opt/homebrew/Cellar/libuv/1.45.0/lib/pkgconfig/libuv.pc
/opt/homebrew/Cellar/libuv/1.45.0/lib/ (2 other files)
/opt/homebrew/Cellar/libuv/1.45.0/share/doc/ (28 files)
/opt/homebrew/Cellar/libuv/1.45.0/share/man/man1/libuv.1
$ julia --version
julia version 1.9.1
The output of cargo build: https://gist.github.com/vyorkin/2056bc741d8f11e4ffbed2a8eae5bbda