Closed html5cat closed 7 years ago
From the README: (On OSX newer than El Capitan, you may need to install golang from their site, and then just install brew install libjpeg-turbo.)
Can you check whether doing so works (i.e. not using go from Homebrew)?
Tried that, same errors. Uninstalled brew version just in case.
yurik$ go version
go version go1.7.4 darwin/amd64
yurik$ which go
/usr/local/go/bin/go
@jeremyschlatter any ideas?
Hmm. Not sure. I'm on macOS Sierra, too, so I might be able to repro.
@html5cat Did you brew install libjpeg-turbo
? If so, can I see brew info libjpeg-turbo
? May be worth checking brew doctor
and brew config
as well. Also, what command are you running to build? Can you try go build ./vncclient
in the go-vncdriver
directory?
Homebrew/legacy-homebrew#40762 looks like a similar issue that was fixed by running xcode-select --install
Works for me after brew install libjpeg-turbo
on Sierra with go@1.7.3
@jeremyschlatter added Xcode tools earlier today.
yurik$ brew info libjpeg-turbo
jpeg-turbo: stable 1.5.1 (bottled), HEAD [keg-only]
JPEG image codec that aids compression and decompression
http://www.libjpeg-turbo.org/
/usr/local/Cellar/jpeg-turbo/1.5.1 (37 files, 2.6M)
Poured from bottle on 2016-12-05 at 10:52:46
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/jpeg-turbo.rb
==> Dependencies
Build: libtool ✔, nasm ✘
==> Options
--without-test
Skip build-time checks (Not Recommended)
--HEAD
Install HEAD version
This looks interesting though:
yurik$ go build ./vncclient
vncclient/client.go:16:2: cannot find package "github.com/juju/errors" in any of:
/usr/local/go/src/github.com/juju/errors (from $GOROOT)
/Users/yurik/src/github.com/juju/errors (from $GOPATH)
vncclient/encoding.go:11:2: cannot find package "github.com/op/go-logging" in any of:
/usr/local/go/src/github.com/op/go-logging (from $GOROOT)
/Users/yurik/src/github.com/op/go-logging (from $GOPATH)
vncclient/client.go:17:2: cannot find package "github.com/openai/go-vncdriver/flexzlib" in any of:
/usr/local/go/src/github.com/openai/go-vncdriver/flexzlib (from $GOROOT)
/Users/yurik/src/github.com/openai/go-vncdriver/flexzlib (from $GOPATH)
vncclient/encoding.go:12:2: cannot find package "github.com/pixiv/go-libjpeg/jpeg" in any of:
/usr/local/go/src/github.com/pixiv/go-libjpeg/jpeg (from $GOROOT)
/Users/yurik/src/github.com/pixiv/go-libjpeg/jpeg (from $GOPATH)
Sorry folks, somehow had export CC=gcc-4.2
in my .bash_profile
.
Removing it fixed the issue.
Getting a bunch of these trying to build on macOS Sierra. Am I missing any dependencies?