MiniBullLab / easy_docker

1 stars 1 forks source link

开发docker #25

Closed lpj0822 closed 3 years ago

lpj0822 commented 3 years ago

供开发者使用的docker

lpj0822 commented 3 years ago

cmake version >= 3.12

sudo apt install libasio-dev libtinyxml2-dev

sudo apt-get install libncurses5-dev

sudo apt-get install autoconf automake libtool

安装protobuffer:

https://github.com/protocolbuffers/protobuf/releases 下载 3.3.0版本

安装googletest:

https://github.com/google/googletest 下载1.10.0版本 下载安装gflags,

https://github.com/gflags/gflags 下载2.2.0版本(安装动态库) 下载glog源码,编译安装:

https://github.com/google/glog.git 下载0.3.5版本(安装动态库) 下载poco源码,编译安装:

https://github.com/pocoproject/poco 下载1.8.0版本 下载Foonathan memory源码,编译安装:

https://github.com/eProsima/foonathan_memory_vendor 下载Fast-CDR源码,编译安装:

https://github.com/ApolloAuto/Fast-CDR 下载apollo分支代码 下载Fast-RTPS源码,编译安装:

https://github.com/ApolloAuto/Fast-RTPS 下载apollo分支代码 备注:编译可能遇到报错,std::function相关,打开对应文件#include

vitahlin commented 3 years ago
lpj0822 commented 3 years ago

先按cmake https://blog.csdn.net/u011291667/article/details/100022585

lpj0822 commented 3 years ago

在安装opencv https://blog.csdn.net/weixin_41624766/article/details/90641375 https://blog.csdn.net/chentianting/article/details/85677166 https://www.cnblogs.com/tsfh/p/8729578.html https://www.freesion.com/article/6454548521/

vitahlin commented 3 years ago

https://yeasy.gitbook.io/docker_practice/install/mirror

lpj0822 commented 3 years ago

opencv环境变量

echo '/usr/local/lib' | sudo tee -a /etc/ld.so.conf.d/opencv.conf    
sudo ldconfig
printf '#OpenCV\nPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\nexport PKG_CONFIG_PATH\n' >> ~/.bashrc   

source ~/.bashrc 
MiniBullLab commented 3 years ago

CMake Warning at cmake/OpenCVDownload.cmake:193 (message): IPPICV: Download failed: 7;"Couldn't connect to server"

For details please refer to the download log file:

/opencv/opencv/build/CMakeDownloadLog.txt

Call Stack (most recent call first): 3rdparty/ippicv/ippicv.cmake:42 (ocv_download) cmake/OpenCVFindIPP.cmake:243 (download_ippicv) cmake/OpenCVFindLibsPerf.cmake:12 (include) CMakeLists.txt:794 (include)

vitahlin commented 3 years ago
[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o
Traceback (most recent call last):
  File "compose/cli/main.py", line 67, in main
  File "compose/cli/main.py", line 126, in perform_command
  File "compose/cli/main.py", line 302, in build
  File "compose/project.py", line 468, in build
  File "compose/project.py", line 450, in build_service
  File "compose/service.py", line 1147, in build
compose.service.BuildError: (<Service: workspace>, {'stream': '[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathFun.cpp.o\n[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o\n[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o\n'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 78, in main
TypeError: can only concatenate str (not "dict") to str
[7684] Failed to execute script docker-compose
make: *** [build] Error 255
vitahlin commented 3 years ago
[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o
[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o
Traceback (most recent call last):
  File "compose/cli/main.py", line 67, in main
  File "compose/cli/main.py", line 126, in perform_command
  File "compose/cli/main.py", line 302, in build
  File "compose/project.py", line 468, in build
  File "compose/project.py", line 450, in build_service
  File "compose/service.py", line 1147, in build
compose.service.BuildError: (<Service: workspace>, {'stream': '[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathFun.cpp.o\n[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o\n[ 10%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o\n'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "docker-compose", line 3, in <module>
  File "compose/cli/main.py", line 78, in main
TypeError: can only concatenate str (not "dict") to str
[7684] Failed to execute script docker-compose
make: *** [build] Error 255
lpj0822 commented 3 years ago

qt5: https://hub.docker.com/r/rabits/qt/dockerfile/

lpj0822 commented 3 years ago

先安装gflags,然后安装glog,在安装opencv @vitahlin

MiniBullLab commented 3 years ago

docker里面图形界面显示: https://blog.csdn.net/a806689294/article/details/111462627

MiniBullLab commented 3 years ago

qt5 docker https://qiita.com/MasaNa43/items/bb9754b31dfb8e3848e6 https://github.com/gorzechowski/docker-images/blob/master/qt/5.12/gcc/Dockerfile https://github.com/jemc/docker-qt5

lpj0822 commented 3 years ago

VTK与PCL安装 https://www.cnblogs.com/Glucklichste/p/11197307.html https://blog.csdn.net/baidu_40840693/article/details/107608145 https://www.cnblogs.com/kezunlin/p/11835236.html

vitahlin commented 3 years ago

QT编译错误:

Note: Also available for Linux: linux-clang linux-icc

Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

WARNING: gperf is required to build QtWebEngine.

WARNING: bison is required to build QtWebEngine.

WARNING: flex is required to build QtWebEngine.

ERROR: Feature 'egl' was enabled, but the pre-condition '(features.opengl || features.openvg) && (features.angle || libs.egl)' failed.

ERROR: Feature 'gstreamer_1_0' was enabled, but the pre-condition 'libs.gstreamer_1_0' failed.

Check config.log for details.

@lpj0822

lpj0822 commented 3 years ago

安装apex,https://github.com/NVIDIA/apex 切换到git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0分支编译

vitahlin commented 3 years ago

这个是啥原因 需要先安装其他的前置依赖包吗

lpj0822 commented 3 years ago

什么问题? @vitahlin

vitahlin commented 3 years ago

ERROR: Feature 'egl' was enabled, but the pre-condition '(features.opengl || features.openvg) && (features.angle || libs.egl)' failed.

ERROR: Feature 'gstreamer_1_0' was enabled, but the pre-condition 'libs.gstreamer_1_0' failed. 就是这个,是需要安装前置依赖包吗

lpj0822 commented 3 years ago

这个我没有遇到,要安装openGL?

vitahlin commented 3 years ago

https://stackoverflow.com/questions/49032560/no-wayland-egl-support-detected-cross-toolkit-compatibility-disabled

vitahlin commented 3 years ago

依赖库目前来看已经安装完,合并workspace分支代码