提示:
GLX: GLX version 1.3 is required
然后挂了。
离线
奇怪, 用 mobaxterm 的中继确是没有问题的。
为什么 vnc 终端不行呢?
离线
离线
1. 准备
sudo apt-get install libturbojpeg-dev libopencl-dev libxtst-dev libxcb*-dev -y
2. 克隆
git clone https://github.com/VirtualGL/virtualgl.git
3. 编译
cd virtualgl
mkdir build
cd build
cmake ..
离线
root@test5:/opt/virtualgl/build# make
[ 2%] Built target vglutil
[ 2%] Built target vglsocket
[ 2%] Built target nettest
[ 3%] Built target fbx-faker
[ 4%] Built target pftest
[ 4%] Built target fbx
[ 5%] Built target bmptest
[ 5%] Built target fbxtest
[ 5%] Built target threadtest
[ 6%] Built target fbxv
[ 7%] Built target fbxvtest
[ 8%] Built target glreadtest
[ 8%] Built target glframe
[ 9%] Built target vglcommon
[ 9%] Built target frameut
[ 10%] Built target gefaker
[ 11%] Built target x11transut
[ 12%] Built target dlfaker
[ 13%] Built target vgltrans_test
[ 13%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/ConfigHash.cpp.o
[ 13%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/ContextHash.cpp.o
[ 14%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/DisplayHash.cpp.o
[ 14%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker.cpp.o
[ 14%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker-gl.cpp.o
[ 14%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker-glx.cpp.o
[ 15%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker-sym.cpp.o
[ 15%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker-x11.cpp.o
[ 15%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker-xcb.cpp.o
[ 16%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/XCBConnHash.cpp.o
[ 16%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/fakerconfig.cpp.o
[ 16%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/GlobalCriticalSection.cpp.o
[ 16%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/GLXDrawableHash.cpp.o
[ 17%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/glxvisual.cpp.o
[ 17%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/PixmapHash.cpp.o
[ 17%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/ReverseConfigHash.cpp.o
[ 18%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/TransPlugin.cpp.o
[ 18%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/VirtualDrawable.cpp.o
[ 18%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/VirtualPixmap.cpp.o
[ 18%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/VirtualWin.cpp.o
[ 19%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/VisualHash.cpp.o
[ 19%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/WindowHash.cpp.o
[ 19%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/X11Trans.cpp.o
[ 20%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/vglconfigLauncher.cpp.o
[ 20%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/VGLTrans.cpp.o
[ 20%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/XVTrans.cpp.o
[ 20%] Building CXX object server/CMakeFiles/vglfaker-opencl.dir/faker-ocl.cpp.o
[ 21%] Linking CXX shared library ../lib/libvglfaker-opencl.so
[ 22%] Built target vglfaker-opencl
[ 59%] Built target fltk_static
[ 60%] Built target vglconfig
Scanning dependencies of target vglfaker
[ 61%] Building CXX object server/CMakeFiles/vglfaker.dir/ConfigHash.cpp.o
[ 61%] Building CXX object server/CMakeFiles/vglfaker.dir/ContextHash.cpp.o
[ 61%] Building CXX object server/CMakeFiles/vglfaker.dir/DisplayHash.cpp.o
[ 62%] Building CXX object server/CMakeFiles/vglfaker.dir/faker.cpp.o
[ 62%] Building CXX object server/CMakeFiles/vglfaker.dir/faker-gl.cpp.o
[ 62%] Building CXX object server/CMakeFiles/vglfaker.dir/faker-glx.cpp.o
[ 62%] Building CXX object server/CMakeFiles/vglfaker.dir/faker-sym.cpp.o
[ 63%] Building CXX object server/CMakeFiles/vglfaker.dir/faker-x11.cpp.o
[ 63%] Building CXX object server/CMakeFiles/vglfaker.dir/faker-xcb.cpp.o
[ 63%] Building CXX object server/CMakeFiles/vglfaker.dir/XCBConnHash.cpp.o
[ 64%] Building CXX object server/CMakeFiles/vglfaker.dir/fakerconfig.cpp.o
[ 64%] Building CXX object server/CMakeFiles/vglfaker.dir/GlobalCriticalSection.cpp.o
[ 64%] Building CXX object server/CMakeFiles/vglfaker.dir/GLXDrawableHash.cpp.o
[ 64%] Building CXX object server/CMakeFiles/vglfaker.dir/glxvisual.cpp.o
[ 65%] Building CXX object server/CMakeFiles/vglfaker.dir/PixmapHash.cpp.o
[ 65%] Building CXX object server/CMakeFiles/vglfaker.dir/ReverseConfigHash.cpp.o
[ 65%] Building CXX object server/CMakeFiles/vglfaker.dir/TransPlugin.cpp.o
[ 66%] Building CXX object server/CMakeFiles/vglfaker.dir/VirtualDrawable.cpp.o
[ 66%] Building CXX object server/CMakeFiles/vglfaker.dir/VirtualPixmap.cpp.o
[ 66%] Building CXX object server/CMakeFiles/vglfaker.dir/VirtualWin.cpp.o
[ 66%] Building CXX object server/CMakeFiles/vglfaker.dir/VisualHash.cpp.o
[ 67%] Building CXX object server/CMakeFiles/vglfaker.dir/WindowHash.cpp.o
[ 67%] Building CXX object server/CMakeFiles/vglfaker.dir/X11Trans.cpp.o
[ 67%] Building CXX object server/CMakeFiles/vglfaker.dir/vglconfigLauncher.cpp.o
[ 68%] Building CXX object server/CMakeFiles/vglfaker.dir/VGLTrans.cpp.o
[ 68%] Building CXX object server/CMakeFiles/vglfaker.dir/XVTrans.cpp.o
[ 68%] Linking CXX shared library ../lib/libvglfaker.so
[ 68%] Built target vglfaker
Scanning dependencies of target vglfaker-nodl
[ 68%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/ConfigHash.cpp.o
[ 68%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/ContextHash.cpp.o
[ 68%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/DisplayHash.cpp.o
[ 69%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/faker.cpp.o
[ 69%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/faker-gl.cpp.o
[ 69%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/faker-glx.cpp.o
[ 70%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/faker-sym.cpp.o
[ 70%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/faker-x11.cpp.o
[ 70%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/faker-xcb.cpp.o
[ 70%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/XCBConnHash.cpp.o
[ 71%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/fakerconfig.cpp.o
[ 71%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/GlobalCriticalSec tion.cpp.o
[ 71%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/GLXDrawableHash.c pp.o
[ 72%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/glxvisual.cpp.o
[ 72%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/PixmapHash.cpp.o
[ 72%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/ReverseConfigHash .cpp.o
[ 72%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/TransPlugin.cpp.o
[ 73%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/VirtualDrawable.c pp.o
[ 73%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/VirtualPixmap.cpp .o
[ 73%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/VirtualWin.cpp.o
[ 74%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/VisualHash.cpp.o
[ 74%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/WindowHash.cpp.o
[ 74%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/X11Trans.cpp.o
[ 74%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/vglconfigLauncher .cpp.o
[ 75%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/VGLTrans.cpp.o
[ 75%] Building CXX object server/CMakeFiles/vglfaker-nodl.dir/XVTrans.cpp.o
[ 75%] Linking CXX shared library ../lib/libvglfaker-nodl.so
[ 76%] Built target vglfaker-nodl
Scanning dependencies of target vgltransut
[ 76%] Building CXX object server/CMakeFiles/vgltransut.dir/vgltransut.cpp.o
[ 77%] Building CXX object server/CMakeFiles/vgltransut.dir/VGLTrans.cpp.o
[ 77%] Building CXX object server/CMakeFiles/vgltransut.dir/fakerconfig.cpp.o
[ 77%] Linking CXX executable ../bin/vgltransut
[ 77%] Built target vgltransut
[ 78%] Built target dlfakerut
[ 78%] Built target deepbindtest
[ 78%] Built target GLdlfakerut
Scanning dependencies of target vgltrans_test2
[ 79%] Building CXX object server/CMakeFiles/vgltrans_test2.dir/testplugin2.cpp. o
[ 79%] Building CXX object server/CMakeFiles/vgltrans_test2.dir/X11Trans.cpp.o
[ 79%] Linking CXX shared library ../lib/libvgltrans_test2.so
[ 79%] Built target vgltrans_test2
[ 80%] Built target fakerut
Scanning dependencies of target vglclient
[ 80%] Building CXX object client/CMakeFiles/vglclient.dir/vglclient.cpp.o
[ 81%] Building CXX object client/CMakeFiles/vglclient.dir/ClientWin.cpp.o
[ 81%] Building CXX object client/CMakeFiles/vglclient.dir/VGLTransReceiver.cpp. o
[ 81%] Linking CXX executable ../bin/vglclient
[ 81%] Built target vglclient
[ 82%] Built target xrotfontdemo
[ 83%] Built target pbdemo
[ 84%] Built target glxspheres64
[ 85%] Built target glxinfo
[ 86%] Built target wincopy
[ 87%] Built target texture_from_pixmap
[ 88%] Built target glxcontexts
[ 89%] Built target glxgears
[ 90%] Built target glthreadsint
[ 91%] Built target xfont
[ 92%] Built target sharedtex
[ 92%] Built target glthreads
[ 92%] Built target shape
[ 92%] Built target glxdemo
[ 93%] Built target testgl5
[ 93%] Built target glxgears_pixmap
[ 94%] Built target glxheads
[ 95%] Built target offset
[ 95%] Built target glxpbdemo
[ 96%] Built target pbinfo
[ 97%] Built target glxpixmap
[ 98%] Built target sharedtex_mt
[ 99%] Built target manywin
[ 99%] Built target overlay
[ 99%] Built target imgdiff
[100%] Built target cpustat
[100%] Built target tcbench
root@test5:/opt/virtualgl/build# ls
bin CMakeCache.txt cmake_install.cmake common doc include Makefile server util
client CMakeFiles cmake_uninstall.cmake diags glxdemos lib pkgscripts staticlib
root@test5:/opt/virtualgl/build# cd bin/
root@test5:/opt/virtualgl/build/bin# ls
bmptest fbxvtest glxcontexts glxinfo manywin pbinfo sharedtex_mt utiltest vgltransut
cpustat frameut glxdemo glxpbdemo nettest pftest tcbench vglclient wincopy
dlfakerut glreadtest glxgears glxpixmap offset servertest testgl5 vglconfig x11transut
fakerut glthreads glxgears_pixmap glxspheres64 overlay shape texture_from_pixmap vglconnect xfont
fbxtest glthreadsint glxheads imgdiff pbdemo sharedtex threadtest vglrun xrotfontdemo
root@test5:/opt/virtualgl/build/bin# cd ..
root@test5:/opt/virtualgl/build# make install
[ 2%] Built target vglutil
[ 2%] Built target vglsocket
[ 2%] Built target nettest
[ 3%] Built target fbx-faker
[ 4%] Built target pftest
[ 4%] Built target fbx
[ 5%] Built target bmptest
[ 5%] Built target fbxtest
[ 5%] Built target threadtest
[ 6%] Built target fbxv
[ 7%] Built target fbxvtest
[ 8%] Built target glreadtest
[ 8%] Built target glframe
[ 9%] Built target vglcommon
[ 9%] Built target frameut
[ 10%] Built target gefaker
[ 11%] Built target x11transut
[ 12%] Built target dlfaker
[ 13%] Built target vgltrans_test
[ 22%] Built target vglfaker-opencl
[ 59%] Built target fltk_static
[ 60%] Built target vglconfig
[ 68%] Built target vglfaker
[ 76%] Built target vglfaker-nodl
[ 77%] Built target vgltransut
[ 78%] Built target dlfakerut
[ 78%] Built target deepbindtest
[ 78%] Built target GLdlfakerut
[ 79%] Built target vgltrans_test2
[ 80%] Built target fakerut
[ 81%] Built target vglclient
[ 82%] Built target xrotfontdemo
[ 83%] Built target pbdemo
[ 84%] Built target glxspheres64
[ 85%] Built target glxinfo
[ 86%] Built target wincopy
[ 87%] Built target texture_from_pixmap
[ 88%] Built target glxcontexts
[ 89%] Built target glxgears
[ 90%] Built target glthreadsint
[ 91%] Built target xfont
[ 92%] Built target sharedtex
[ 92%] Built target glthreads
[ 92%] Built target shape
[ 92%] Built target glxdemo
[ 93%] Built target testgl5
[ 93%] Built target glxgears_pixmap
[ 94%] Built target glxheads
[ 95%] Built target offset
[ 95%] Built target glxpbdemo
[ 96%] Built target pbinfo
[ 97%] Built target glxpixmap
[ 98%] Built target sharedtex_mt
[ 99%] Built target manywin
[ 99%] Built target overlay
[ 99%] Built target imgdiff
[100%] Built target cpustat
[100%] Built target tcbench
Install the project...
-- Install configuration: "Release"
-- Installing: /opt/VirtualGL/bin/nettest
-- Installing: /opt/VirtualGL/bin/glreadtest
-- Installing: /opt/VirtualGL/lib64/libvglfaker.so
-- Installing: /opt/VirtualGL/lib64/libvglfaker-nodl.so
-- Installing: /opt/VirtualGL/lib64/libvglfaker-opencl.so
-- Installing: /opt/VirtualGL/lib64/libdlfaker.so
-- Installing: /opt/VirtualGL/lib64/libgefaker.so
-- Installing: /opt/VirtualGL/include/rr.h
-- Installing: /opt/VirtualGL/include/rrtransport.h
-- Installing: /opt/VirtualGL/bin/vglconfig
-- Installing: /opt/VirtualGL/bin/vglgenkey
-- Installing: /opt/VirtualGL/bin/vgllogin
-- Installing: /opt/VirtualGL/bin/vglserver_config
-- Installing: /opt/VirtualGL/bin/vglrun
-- Installing: /opt/VirtualGL/bin/.vglrun.vars64
-- Installing: /opt/VirtualGL/bin/vglclient
-- Installing: /opt/VirtualGL/bin/vglconnect
-- Installing: /opt/VirtualGL/bin/glxinfo
-- Installing: /opt/VirtualGL/bin/glxspheres64
-- Installing: /opt/VirtualGL/bin/cpustat
-- Installing: /opt/VirtualGL/bin/tcbench
-- Installing: /opt/VirtualGL/doc/configdialog.gif
-- Installing: /opt/VirtualGL/doc/subsampling.gif
-- Installing: /opt/VirtualGL/doc/somerights20.png
-- Installing: /opt/VirtualGL/doc/sshtunnel.png
-- Installing: /opt/VirtualGL/doc/vgltransport.png
-- Installing: /opt/VirtualGL/doc/vgltransportservernetwork.png
-- Installing: /opt/VirtualGL/doc/x11transport.png
-- Installing: /opt/VirtualGL/doc/LICENSE-FLTK.txt
-- Installing: /opt/VirtualGL/doc/LICENSE.txt
-- Installing: /opt/VirtualGL/doc/LGPL.txt
-- Installing: /opt/VirtualGL/doc/index.html
-- Installing: /opt/VirtualGL/doc/virtualgl.css
-- Installing: /opt/VirtualGL/doc/ChangeLog.md
root@test5:/opt/virtualgl/build#
搞定, 接着跑一下试一试。
离线
编译正常了, 但是运行还是出错, 放弃治疗了。
离线