go-vncdriver icon indicating copy to clipboard operation
go-vncdriver copied to clipboard

python build.py error on Mac mojave python3.5

Open metaroboman opened this issue 6 years ago • 0 comments

Env info:

export CGO_LDFLAGS='/usr/local/opt/jpeg-turbo/lib/libjpeg.dylib -undefined dynamic_lookup -s' export GO15VENDOREXPERIMENT='1' export CGO_CFLAGS='-I/Users/valarian/python/miniconda3/envs/python35/lib/python3.5/site-packages/numpy-1.16.3-py3.5-macosx-10.7-x86_64.egg/numpy/core/include -I/Users/valarian/python/miniconda3/envs/python35/include/python3.5m' export GOPATH='/Users/valarian/python/miniconda3/envs/python35/go-vncdriver/.build'

Running build with OpenGL rendering. Building with OpenGL: GOPATH=/Users/valarian/python/miniconda3/envs/python35/go-vncdriver/.build go build -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver. (Set GO_VNCDRIVER_NOGL to build without OpenGL.)

runtime/cgo

In file included from _cgo_export.c:3: /Users/valarian/python/miniconda3/envs/python35/include/python3.5m/stdlib.h:88:10: fatal error: '__config' file not found

Note: could not build with OpenGL rendering (cf https://github.com/openai/go-vncdriver). This is expected on most servers. Going to try building without OpenGL. Building without OpenGL: GOPATH=/Users/valarian/python/miniconda3/envs/python35/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver

runtime/cgo

In file included from _cgo_export.c:3: /Users/valarian/python/miniconda3/envs/python35/include/python3.5m/stdlib.h:88:10: fatal error: '__config' file not found

Build failed. HINT:

  • Ensure you have your Python development headers installed. (On Ubuntu, this is just 'sudo apt-get install python-dev'.

metaroboman avatar May 07 '19 12:05 metaroboman