openai / go-vncdriver

Fast VNC driver
MIT License
123 stars 60 forks source link

Unable to install on ubuntu 16 all requirements met #36

Open rnunziata opened 5 years ago

rnunziata commented 5 years ago
python build.py
Env info:

export GOPATH='/home/rjn/go-vncdriver/.build'
export GO15VENDOREXPERIMENT='1'
export CGO_CFLAGS='-I/home/rjn/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/home/rjn/anaconda3/include/python3.7m'
export CGO_LDFLAGS='/usr/lib/x86_64-linux-gnu/libjpeg.so -L/home/rjn/anaconda3/lib -lpython3.7m'

Running build with OpenGL rendering.
Building with OpenGL: GOPATH=/home/rjn/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
/home/rjn/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/libjpeg.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status

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=/home/rjn/go-vncdriver/.build go build -tags no_gl -buildmode=c-shared -o go_vncdriver.so github.com/openai/go-vncdriver
# runtime/cgo
/home/rjn/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /usr/lib/x86_64-linux-gnu/libjpeg.so: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status

Build failed. HINT:

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

(base) rjn@rjn-Oryx-Pro:~/go-vncdriver$ sudo apt-get install python-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-dev is already the newest version (2.7.12-1~16.04).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.

I can compile this under python 2.7 without conda....but if I use my conda with python 3.7 if fails as above.