Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
37789d44
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
37789d44
编写于
7月 19, 2017
作者:
W
Weide Zhang
提交者:
Jiangtao Hu
7月 19, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
adding dependencies: pcl, opencv and yamlcpp
上级
93cc709d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
335 addition
and
1 deletion
+335
-1
WORKSPACE.in
WORKSPACE.in
+25
-0
docker/dev.x86_64.dockerfile
docker/dev.x86_64.dockerfile
+5
-0
docker/scripts/dev_start.sh
docker/scripts/dev_start.sh
+1
-1
modules/perception/lib/pcl_util/BUILD
modules/perception/lib/pcl_util/BUILD
+10
-0
third_party/opencv2.BUILD
third_party/opencv2.BUILD
+248
-0
third_party/pcl.BUILD
third_party/pcl.BUILD
+31
-0
third_party/yaml_cpp.BUILD
third_party/yaml_cpp.BUILD
+15
-0
未找到文件。
WORKSPACE.in
浏览文件 @
37789d44
...
...
@@ -183,3 +183,28 @@ new_http_archive(
strip_prefix = "ros",
url = "https://github.com/ApolloAuto/apollo-platform/releases/download/1.0.0/ros-indigo-apollo-1.0.0.MACHINE_ARCH.tar.gz",
)
# OpenCV 2.4.13.2
new_http_archive(
name = "opencv2",
url = "https://github.com/opencv/opencv/archive/2.4.13.2.zip",
build_file = "third_party/opencv2.BUILD",
strip_prefix = "opencv-2.4.13.2",
)
# PCL 1.7
# =======
# This requires libpcl-dev to be installed in your Ubuntu/Debian.
new_local_repository(
name = "pcl",
path = "/usr/include/pcl-1.7",
build_file = "third_party/pcl.BUILD",
)
# YAML-CPP
new_http_archive(
name = "yaml_cpp",
url = "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.zip",
build_file = "third_party/yaml_cpp.BUILD",
strip_prefix = "yaml-cpp-yaml-cpp-0.5.3",
)
docker/dev.x86_64.dockerfile
浏览文件 @
37789d44
...
...
@@ -97,3 +97,8 @@ RUN apt-get update && apt-get install shellcheck
# https://stackoverflow.com/questions/25193161/chfn-pam-system-error-intermittently-in-docker-hub-builds
RUN
ln
-s
-f
/bin/true /usr/bin/chfn
# install pcl and opencv
RUN
apt-get
install
-y
\
libpcl-1.7-all
\
libopencv-dev
docker/scripts/dev_start.sh
浏览文件 @
37789d44
...
...
@@ -18,7 +18,7 @@
VERSION
=
""
ARCH
=
$(
uname
-m
)
VERSION_X86_64
=
"dev-x86_64-201707
07_1129
"
VERSION_X86_64
=
"dev-x86_64-201707
19_1528
"
VERSION_AARCH64
=
"dev-aarch64-20170712_1533"
if
[[
$#
==
1
]]
;
then
VERSION
=
$1
...
...
modules/perception/lib/pcl_util/BUILD
0 → 100644
浏览文件 @
37789d44
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
name
=
"pcl_util"
,
srcs
=
[],
hdrs
=
glob
([
"*.h"
]),
deps
=
[
"@pcl//:pcl"
],
)
third_party/opencv2.BUILD
0 → 100644
浏览文件 @
37789d44
cc_library(
name = "dynamicuda",
hdrs = glob([
"modules/dynamicuda/include/**/*.hpp",
]),
includes = [
"modules/dynamicuda/include"
],
)
cc_library(
name = "core",
visibility = ["//visibility:public"],
srcs = glob(["modules/core/src/**/*.cpp"]),
hdrs = glob([
"modules/core/src/**/*.hpp",
"modules/core/include/**/*.hpp",
]) + [
":module_includes",
":cvconfig",
":version_string",
],
copts = [
"-Imodules/dynamicuda/include",
],
# Note that opencv core requires zlib and pthread to build.
linkopts = ["-pthread", "-lz"],
includes = [
"modules/core/include",
],
deps = [
":dynamicuda",
],
)
cc_library(
name = "imgproc",
visibility = ["//visibility:public"],
srcs = glob(["modules/imgproc/src/**/*.cpp"]),
hdrs = glob([
"modules/imgproc/src/**/*.hpp",
"modules/imgproc/src/**/*.h",
"modules/imgproc/include/**/*.hpp",
"modules/imgproc/include/**/*.h",
]) + [
":module_includes",
],
includes = [
"modules/imgproc/include",
],
deps = [
":core",
],
)
cc_library(
name = "ml",
visibility = ["//visibility:public"],
srcs = glob(["modules/ml/src/**/*.cpp"]),
hdrs = glob([
"modules/ml/src/**/*.hpp",
"modules/ml/src/**/*.h",
"modules/ml/include/**/*.hpp",
"modules/ml/include/**/*.h",
]) + [
":module_includes",
],
includes = [
"modules/ml/include",
],
deps = [
":core",
],
)
cc_library(
name = "video",
visibility = ["//visibility:public"],
srcs = glob(["modules/video/src/**/*.cpp"]),
hdrs = glob([
"modules/video/src/**/*.hpp",
"modules/video/src/**/*.h",
"modules/video/include/**/*.hpp",
"modules/video/include/**/*.h",
]) + [
":module_includes",
],
includes = [
"modules/video/include",
],
deps = [
":core",
],
)
genrule(
name = "module_includes",
outs = ["opencv2/opencv_modules.hpp"],
cmd = """
cat > $@ <<"EOF"
#define HAVE_OPENCV_CORE
#define HAVE_OPENCV_IMGPROC
#define HAVE_OPENCV_ML
EOF"""
)
genrule(
name = "cvconfig",
outs = ["cvconfig.h"],
cmd = """
cat > $@ <<"EOF"
// JPEG-2000
#define HAVE_JASPER
// IJG JPEG
#define HAVE_JPEG
// PNG
#define HAVE_PNG
// TIFF
#define HAVE_TIFF
// Compile for 'real' NVIDIA GPU architectures
#define CUDA_ARCH_BIN ""
// NVIDIA GPU features are used
#define CUDA_ARCH_FEATURES ""
// Compile for 'virtual' NVIDIA PTX architectures
#define CUDA_ARCH_PTX ""
EOF"""
)
genrule(
name = "version_string",
outs = ["version_string.inc"],
cmd = """
cat > $@ <<"EOF"
"\\n"
"General configuration for OpenCV 2.4.13.2 =====================================\\n"
" Version control: unknown\\n"
"\\n"
" Platform:\\n"
" Host: Linux 4.4.0-53-generic x86_64\\n"
" CMake: 3.5.1\\n"
" CMake generator: Unix Makefiles\\n"
" CMake build tool: /usr/bin/make\\n"
" Configuration: Release\\n"
"\\n"
" C/C++:\\n"
" Built as dynamic libs?: YES\\n"
" C++ Compiler: /usr/bin/c++ (ver 5.4.0)\\n"
" C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -ffunction-sections -O3 -DNDEBUG -DNDEBUG\\n"
" C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -ffunction-sections -g -O0 -DDEBUG -D_DEBUG\\n"
" C Compiler: /usr/bin/cc\\n"
" C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -ffunction-sections -O3 -DNDEBUG -DNDEBUG\\n"
" C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -msse3 -ffunction-sections -g -O0 -DDEBUG -D_DEBUG\\n"
" Linker flags (Release):\\n"
" Linker flags (Debug):\\n"
" ccache: YES\\n"
" Precompiled headers: NO\\n"
"\\n"
" OpenCV modules:\\n"
" To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib stitching superres ts videostab\\n"
" Disabled: world\\n"
" Disabled by dependency: -\\n"
" Unavailable: androidcamera dynamicuda java python viz\\n"
"\\n"
" GUI: \\n"
" QT: NO\\n"
" GTK+ 2.x: NO\\n"
" GThread : NO\\n"
" GtkGlExt: NO\\n"
" OpenGL support: NO\\n"
" VTK support: NO\\n"
"\\n"
" Media I/O: \\n"
" ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)\\n"
" JPEG: libjpeg (ver 62)\\n"
" PNG: build (ver 1.5.27)\\n"
" TIFF: build (ver 42 - 4.0.2)\\n"
" JPEG 2000: build (ver 1.900.1)\\n"
" OpenEXR: build (ver 1.7.1)\\n"
"\\n"
" Video I/O:\\n"
" DC1394 1.x: NO\\n"
" DC1394 2.x: NO\\n"
" FFMPEG: NO\\n"
" avcodec: NO\\n"
" avformat: NO\\n"
" avutil: NO\\n"
" swscale: NO\\n"
" avresample: NO\\n"
" GStreamer: NO\\n"
" OpenNI: NO\\n"
" OpenNI PrimeSensor Modules: NO\\n"
" PvAPI: NO\\n"
" GigEVisionSDK: NO\\n"
" UniCap: NO\\n"
" UniCap ucil: NO\\n"
" V4L/V4L2: NO/YES\\n"
" XIMEA: NO\\n"
" Xine: NO\\n"
"\\n"
" Other third-party libraries:\\n"
" Use IPP: NO\\n"
" Use Eigen: YES (ver 3.2.92)\\n"
" Use TBB: NO\\n"
" Use OpenMP: NO\\n"
" Use GCD NO\\n"
" Use Concurrency NO\\n"
" Use C=: NO\\n"
" Use Cuda: NO\\n"
" Use OpenCL: YES\\n"
"\\n"
" OpenCL:\\n"
" Version: dynamic\\n"
" Include path: /home/breakds/Downloads/opencv-2.4.13.2/3rdparty/include/opencl/1.2\\n"
" Use AMD FFT: NO\\n"
" Use AMD BLAS: NO\\n"
"\\n"
" Python:\\n"
" Interpreter: /usr/bin/python2 (ver 2.7.12)\\n"
"\\n"
" Java:\\n"
" ant: NO\\n"
" JNI: NO\\n"
" Java tests: NO\\n"
"\\n"
" Documentation:\\n"
" Build Documentation: NO\\n"
" Sphinx: NO\\n"
" PdfLaTeX compiler: NO\\n"
" Doxygen: NO\\n"
"\\n"
" Tests and samples:\\n"
" Tests: YES\\n"
" Performance tests: YES\\n"
" C/C++ Examples: NO\\n"
"\\n"
" Install path: /usr/local\\n"
"\\n"
" cvconfig.h is in: /home/breakds/Downloads/opencv-2.4.13.2/build\\n"
"-----------------------------------------------------------------\\n"
"\\n"
EOF"""
)
third_party/pcl.BUILD
0 → 100644
浏览文件 @
37789d44
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
# This assumes you have pcl 1.7 pre-installed in your system.
cc_library(
name = "pcl",
defines = ["PCL_NO_PRECOMPILE"],
includes = ["."],
linkopts = [
"-lboost_system",
"-lpcl_common",
"-lpcl_features",
"-lpcl_filters",
"-lpcl_io_ply",
"-lpcl_io",
"-lpcl_kdtree",
"-lpcl_keypoints",
"-lpcl_octree",
"-lpcl_outofcore",
"-lpcl_people",
"-lpcl_recognition",
"-lpcl_registration",
"-lpcl_sample_consensus",
"-lpcl_search",
"-lpcl_segmentation",
"-lpcl_surface",
"-lpcl_tracking",
"-lpcl_visualization",
],
)
third_party/yaml_cpp.BUILD
0 → 100644
浏览文件 @
37789d44
cc_library(
name = "yaml",
visibility = ["//visibility:public"],
hdrs = glob([
"include/yaml-cpp/*.h",
"src/*.h",
]),
srcs = glob([
"src/*.cpp",
]),
includes = [
"include",
"src",
],
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录