ubuntu20.04osg3.6.4osgearth2.10 [操作系统入门]
1 apt install
mesa-common-dev freeglut3 freeglut3-dev mesa-utils
openscenegraph
curl 7.68
sqlite-3.31 libsqlite3-dev
zstd 1.4.4
2 system default software
lz4 1.9.2-2
3 source code build
zlib-1.2.11
snappy-1.1.8
proj-6.1.1
gflags-2.2.2
geos-3.4.2
protobuf-3.12.2 (protobuf-cpp-3.12.2)
gdal-3.1.0
rocksdb v6.8.1
issue:
issue1:
gflags
gflags是使用源码安装,因此解决方法是:
进入gflags/build中,找到CMakeCache.txt
改为CMAKE_CXX_FLAGS:STRING=-fPIC
再执行就可以
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make && make install
if not install gflags as above, make -j8 for rocksdb will throw below error:
/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o):relocation R_X86_64_32S against
issue2:
make rocksdb will happen pthread issue, need to add -pthread for link. the example pls check CMakeLists.txt in this directory.
===========================
sudo apt install mesa-utils
for command: glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 20.0.8
ubuntu20.04 osg3.6.4 osgearth2.10
以上是 ubuntu20.04osg3.6.4osgearth2.10 [操作系统入门] 的全部内容, 来源链接: utcz.com/z/518360.html