ubuntu20.04 osg3.6.4 osgearth2.10
Posted 龙畅
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu20.04 osg3.6.4 osgearth2.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的主要内容,如果未能解决你的问题,请参考以下文章
osgUtil::PolygonIntersector多面体与模型求交