hedron-crystal / hedron

An extendable UI library in Crystal, with markup capabilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSX/Homebrew build example?

aemadrid opened this issue · comments

I have installed libui but I can't get it to compile:

~/c/a/c/h/examples ❯❯❯ crystal build control_gallery.cr                                                                                          ld: library not found for -lui
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/aemadrid/code/aem/crystal/hedron/examples/control_gallery'  -rdynamic  -lui -lpcre -lgc -lpthread /usr/local/Cellar/crystal-lang/0.24.2_1/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib`

BTW I can use libui from node.js

Enter in the bash commands listed out in this Gist: https://gist.github.com/tzekid/2ff815b4d3f382c80830ce0480f6555d/#file-libui_deps_ubuntu-sh-L27-L38. Note this will have to be done in the folder you cloned libui into.

Thanks! Copying build/out/* to /usr/local/lib/ did the trick.