{"action":"created","issue":{"url":"https://api.github.com/repos/kitech/qt.go/issues/8","repository_url":"https://api.github.com/repos/kitech/qt.go","labels_url":"https://api.github.com/repos/kitech/qt.go/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/kitech/qt.go/issues/8/comments","events_url":"https://api.github.com/repos/kitech/qt.go/issues/8/events","html_url":"https://github.com/kitech/qt.go/issues/8","id":299630555,"number":8,"title":"go build failed with \"'ffi.h' file not found\"","user":{"login":"ipfans","id":363344,"avatar_url":"https://avatars2.githubusercontent.com/u/363344?v=4","gravatar_id":"","url":"https://api.github.com/users/ipfans","html_url":"https://github.com/ipfans","followers_url":"https://api.github.com/users/ipfans/followers","following_url":"https://api.github.com/users/ipfans/following{/other_user}","gists_url":"https://api.github.com/users/ipfans/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfans/subscriptions","organizations_url":"https://api.github.com/users/ipfans/orgs","repos_url":"https://api.github.com/users/ipfans/repos","events_url":"https://api.github.com/users/ipfans/events{/privacy}","received_events_url":"https://api.github.com/users/ipfans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T08:14:25Z","updated_at":"2018-02-24T16:29:09Z","closed_at":null,"author_association":"NONE","body":"I already installed libffi by Homebrew, but I still got error about `fatal error: 'ffi.h' file not found`\r\n\r\n## Requirement information\r\n\r\n```\r\n$ brew info libffi\r\nlibffi: stable 3.2.1 (bottled), HEAD [keg-only]\r\nPortable Foreign Function Interface library\r\nhttps://sourceware.org/libffi/\r\n/usr/local/Cellar/libffi/3.2.1 (16 files, 297.0KB)\r\n  Poured from bottle on 2018-02-23 at 15:59:29\r\nFrom: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libffi.rb\r\n==> Options\r\n--HEAD\r\n\tInstall HEAD version\r\n==> Caveats\r\nThis formula is keg-only, which means it was not symlinked into /usr/local,\r\nbecause some formulae require a newer version of libffi.\r\n\r\nFor compilers to find this software you may need to set:\r\n    LDFLAGS:  -L/usr/local/opt/libffi/lib\r\nFor pkg-config to find this software you may need to set:\r\n    PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig\r\n```\r\n\r\n## BUILD LOGS\r\n\r\n```\r\n$ CFLAGES=-I/usr/local/opt/libffi/lib/libffi-3.2.1/include LDFLAGS=-L/usr/local/opt/libffi/lib go run button.go\r\n# github.com/kitech/qt.go/qtrt\r\n../../Developer/pkg/src/github.com/kitech/qt.go/qtrt/ffi_invoke.go:10:10: fatal error: 'ffi.h' file not found\r\n#include \"ffi.h\"\r\n         ^~~~~~~\r\n1 error generated.\r\n```\r\n\r\n另外安装教程里没有提到额外依赖 `github.com/gonuts/dl`，这个需要额外安装，可能需要在安装步骤中额外添加。"},"comment":{"url":"https://api.github.com/repos/kitech/qt.go/issues/comments/368240115","html_url":"https://github.com/kitech/qt.go/issues/8#issuecomment-368240115","issue_url":"https://api.github.com/repos/kitech/qt.go/issues/8","id":368240115,"user":{"login":"JackMordaunt","id":6916093,"avatar_url":"https://avatars2.githubusercontent.com/u/6916093?v=4","gravatar_id":"","url":"https://api.github.com/users/JackMordaunt","html_url":"https://github.com/JackMordaunt","followers_url":"https://api.github.com/users/JackMordaunt/followers","following_url":"https://api.github.com/users/JackMordaunt/following{/other_user}","gists_url":"https://api.github.com/users/JackMordaunt/gists{/gist_id}","starred_url":"https://api.github.com/users/JackMordaunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackMordaunt/subscriptions","organizations_url":"https://api.github.com/users/JackMordaunt/orgs","repos_url":"https://api.github.com/users/JackMordaunt/repos","events_url":"https://api.github.com/users/JackMordaunt/events{/privacy}","received_events_url":"https://api.github.com/users/JackMordaunt/received_events","type":"User","site_admin":false},"created_at":"2018-02-24T16:29:09Z","updated_at":"2018-02-24T16:29:09Z","author_association":"NONE","body":"Getting the same error (OSX). "}}
{"actor":{"display_login":"JackMordaunt"}}