码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu20.04 osg3.6.4 osgearth2.10

时间:2020-07-16 10:10:50      阅读:95      评论:0      收藏:0      [点我收藏+]

标签:mon   Opens   执行   exp   rap   install   sqlite   cto   inf   

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

标签:mon   Opens   执行   exp   rap   install   sqlite   cto   inf   

原文地址:https://www.cnblogs.com/longchang/p/13320783.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!