ubuntu20.04 osg3.6.4 osgearth2.10


ubuntu18.04 osg osgearth搭建

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM