Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
d7791aec
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,发现更多精彩内容 >>
提交
d7791aec
编写于
9月 29, 2020
作者:
S
storypku
提交者:
Chang Songhong
9月 29, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docker: qt5-qtbase prebuilt to speed up build
上级
b0c402a2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
163 addition
and
132 deletion
+163
-132
docker/build/cyber.aarch64.dockerfile
docker/build/cyber.aarch64.dockerfile
+1
-1
docker/build/installers/install_qt.sh
docker/build/installers/install_qt.sh
+7
-1
docker/build/installers/install_qt5_qtbase.sh
docker/build/installers/install_qt5_qtbase.sh
+148
-0
docker/build/installers/install_qt5base.sh
docker/build/installers/install_qt5base.sh
+0
-129
docker/build/installers/install_visualizer_deps.sh
docker/build/installers/install_visualizer_deps.sh
+7
-1
未找到文件。
docker/build/cyber.aarch64.dockerfile
浏览文件 @
d7791aec
...
...
@@ -21,7 +21,7 @@ RUN bash /tmp/installers/install_cmake.sh ${INSTALL_MODE}
RUN
bash /tmp/installers/install_llvm_clang.sh
RUN
bash /tmp/installers/install_cyber_deps.sh
RUN
bash /tmp/installers/install_qa_tools.sh
RUN
bash /tmp/installers/install_visualizer_deps.sh
RUN
bash /tmp/installers/install_visualizer_deps.sh
${
INSTALL_MODE
}
RUN
bash /tmp/installers/post_install.sh
${
BUILD_STAGE
}
...
...
docker/build/installers/install_qt.sh
浏览文件 @
d7791aec
...
...
@@ -19,6 +19,12 @@
# Fail on first error.
set
-e
if
[[
"
$1
"
==
"build"
]]
;
then
BUILD_TYPE
=
"build"
else
BUILD_TYPE
=
"download"
fi
CURR_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
-P
)
"
.
${
CURR_DIR
}
/installer_base.sh
...
...
@@ -37,7 +43,7 @@ apt-get -y update && \
# The last two was required by `ldd /usr/local/qt5/plugins/platforms/libqxcb.so`
if
[
"
${
TARGET_ARCH
}
"
=
"aarch64"
]
;
then
bash
${
CURR_DIR
}
/install_qt5
base.sh
bash
${
CURR_DIR
}
/install_qt5
_qtbase.sh
"
${
BUILD_TYPE
}
"
exit
0
fi
...
...
docker/build/installers/install_qt5_qtbase.sh
0 → 100755
浏览文件 @
d7791aec
#!/usr/bin/env bash
###############################################################################
# Copyright 2020 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
# Fail on first error.
set
-e
if
[[
"
$1
"
==
"build"
]]
;
then
BUILD_TYPE
=
"build"
else
BUILD_TYPE
=
"download"
fi
CURR_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
-P
)
"
.
${
CURR_DIR
}
/installer_base.sh
VERSION
=
"5.12.9"
MAJOR_VERSION
=
"
${
VERSION
%.*
}
"
QT5_PREFIX
=
"/usr/local/qt5"
if
[[
"
${
BUILD_TYPE
}
"
==
"download"
]]
;
then
PKG_NAME
=
"Qt-
${
VERSION
}
-linux-arm64.bin.tar.gz"
CHECKSUM
=
"9361d04678610fe5fddebbbf9bab38d75690d691f3d88f1f2d3eb96a07364945"
DOWNLOAD_LINK
=
"https://apollo-platform-system.bj.bcebos.com/archive/6.0/
${
PKG_NAME
}
"
download_if_not_cached
"
${
PKG_NAME
}
"
"
${
CHECKSUM
}
"
"
${
DOWNLOAD_LINK
}
"
tar
xzf
"
${
PKG_NAME
}
"
-C
/usr/local
ln
-sfnv
"Qt-
${
VERSION
}
"
"
${
QT5_PREFIX
}
"
else
# References:
# 1) http://www.linuxfromscratch.org/blfs/view/svn/x/qt5.html
# 2) https://src.fedoraproject.org/rpms/qt5-qtbase/tree/master
# 3) https://launchpad.net/ubuntu/+source/qtbase-opensource-src/5.12.8+dfsg-0ubuntu1
apt_get_update_and_install
\
libdbus-1-dev
\
libfontconfig1-dev
\
libfreetype6-dev
\
libgl1-mesa-dev
\
libharfbuzz-dev
\
libjpeg-dev
\
libpcre3-dev
\
libpng-dev
\
libsqlite3-dev
\
libssl-dev
\
libvulkan-dev
\
libxcb1-dev
\
libexpat1-dev
\
zlib1g-dev
\
libxcb-image0-dev
\
libxcb-keysyms1-dev
\
libxcb-render-util0-dev
\
libxcb-shm0-dev
\
libxcb-util1
\
libxcb-xinerama0-dev
\
libxcb-xkb-dev
\
libxkbcommon-dev
\
libxkbcommon-x11-dev
PKG_NAME
=
"qtbase-everywhere-src-
${
VERSION
}
.tar.xz"
CHECKSUM
=
"331dafdd0f3e8623b51bd0da2266e7e7c53aa8e9dc28a8eb6f0b22609c5d337e"
DOWNLOAD_LINK
=
"https://download.qt.io/official_releases/qt/
${
MAJOR_VERSION
}
/
${
VERSION
}
/submodules/
${
PKG_NAME
}
"
download_if_not_cached
"
${
PKG_NAME
}
"
"
${
CHECKSUM
}
"
"
${
DOWNLOAD_LINK
}
"
tar
xJf
${
PKG_NAME
}
mkdir
-p
"/usr/local/Qt-
${
VERSION
}
"
pushd
qtbase-everywhere-src-
${
VERSION
}
>
/dev/null
find
.
-name
"*.pr[io]"
| xargs
sed
-i
's/python/&3/'
pushd
src/3rdparty
[
-d
UNUSED
]
||
mkdir
UNUSED
mv
freetype libjpeg libpng zlib sqlite UNUSED/
||
true
popd
./configure
\
-verbose
\
-prefix
$QT5_PREFIX
\
-sysconfdir
/etc/xdg
\
-platform
linux-g++
\
-release
\
-optimized-qmake
\
-shared
\
-strip
\
-confirm-license
\
-opensource
\
-fontconfig
\
-dbus-linked
\
-openssl-linked
\
-system-harfbuzz
\
-system-freetype
\
-system-sqlite
\
-system-libjpeg
\
-system-libpng
\
-system-zlib
\
-nomake
examples
\
-no-pch
\
-no-rpath
\
-skip
qtwebengine
make
-j
$(
nproc
)
make
install
ln
-sfnv
"Qt-
${
VERSION
}
"
"
${
QT5_PREFIX
}
"
# PostInstall
find
$QT5_PREFIX
/
-name
\*
.prl
\
-exec
sed
-i
-e
'/^QMAKE_PRL_BUILD_DIR/d'
{}
\;
find
${
QT5_PREFIX
}
/lib
-name
"*.la"
\
-exec
rm
-f
{}
\;
popd
>
/dev/null
fi
echo
"
${
QT5_PREFIX
}
/lib"
>
/etc/ld.so.conf.d/qt.conf
ldconfig
__mytext
=
"""
export QT5_PATH=
\"
${
QT5_PREFIX
}
\"
export QT_QPA_PLATFORM_PLUGIN_PATH=
\"\$
{QT5_PATH}/plugins
\"
add_to_path
\"\$
{QT5_PATH}/bin
\"
"""
echo
"
${
__mytext
}
"
|
tee
-a
"
${
APOLLO_PROFILE
}
"
if
[[
"
${
BUILD_TYPE
}
"
==
"build"
]]
;
then
ok
"Successfully installed Qt5 qtbase-
${
VERSION
}
from src."
rm
-rf
qtbase-everywhere-src-
${
VERSION
}
${
PKG_NAME
}
else
ok
"Successfully pre-built Qt5 qtbase-
${
VERSION
}
."
fi
# Clean up cache to reduce layer size.
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
docker/build/installers/install_qt5base.sh
已删除
100755 → 0
浏览文件 @
b0c402a2
#!/usr/bin/env bash
###############################################################################
# Copyright 2020 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
# Fail on first error.
set
-e
CURR_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
-P
)
"
.
${
CURR_DIR
}
/installer_base.sh
# References:
# 1) http://www.linuxfromscratch.org/blfs/view/svn/x/qt5.html
# 2) https://src.fedoraproject.org/rpms/qt5-qtbase/tree/master
# 3) https://launchpad.net/ubuntu/+source/qtbase-opensource-src/5.12.8+dfsg-0ubuntu1
apt_get_update_and_install
\
libdbus-1-dev
\
libfontconfig1-dev
\
libfreetype6-dev
\
libgl1-mesa-dev
\
libharfbuzz-dev
\
libjpeg-dev
\
libpcre3-dev
\
libpng-dev
\
libsqlite3-dev
\
libssl-dev
\
libvulkan-dev
\
libxcb1-dev
\
libexpat1-dev
\
zlib1g-dev
\
libxcb-image0-dev
\
libxcb-keysyms1-dev
\
libxcb-render-util0-dev
\
libxcb-shm0-dev
\
libxcb-util1
\
libxcb-xinerama0-dev
\
libxcb-xkb-dev
\
libxkbcommon-dev
\
libxkbcommon-x11-dev
VERSION
=
"5.12.9"
MAJOR_VERSION
=
"
${
VERSION
%.*
}
"
PKG_NAME
=
"qtbase-everywhere-src-
${
VERSION
}
.tar.xz"
CHECKSUM
=
"331dafdd0f3e8623b51bd0da2266e7e7c53aa8e9dc28a8eb6f0b22609c5d337e"
DOWNLOAD_LINK
=
"https://download.qt.io/official_releases/qt/
${
MAJOR_VERSION
}
/
${
VERSION
}
/submodules/
${
PKG_NAME
}
"
download_if_not_cached
"
${
PKG_NAME
}
"
"
${
CHECKSUM
}
"
"
${
DOWNLOAD_LINK
}
"
tar
xJf
${
PKG_NAME
}
QT5_PREFIX
=
"/usr/local/qt5"
mkdir
-p
"/usr/local/Qt-
${
VERSION
}
"
ln
-sfnv
"Qt-
${
VERSION
}
"
"
${
QT5_PREFIX
}
"
pushd
qtbase-everywhere-src-
${
VERSION
}
>
/dev/null
find
.
-name
"*.pr[io]"
| xargs
sed
-i
's/python/&3/'
pushd
src/3rdparty
[
-d
UNUSED
]
||
mkdir
UNUSED
mv
freetype libjpeg libpng zlib sqlite UNUSED/
||
true
popd
./configure
\
-verbose
\
-prefix
$QT5_PREFIX
\
-sysconfdir
/etc/xdg
\
-platform
linux-g++
\
-release
\
-optimized-qmake
\
-shared
\
-strip
\
-confirm-license
\
-opensource
\
-fontconfig
\
-dbus-linked
\
-openssl-linked
\
-system-harfbuzz
\
-system-freetype
\
-system-sqlite
\
-system-libjpeg
\
-system-libpng
\
-system-zlib
\
-nomake
examples
\
-no-pch
\
-no-rpath
\
-skip
qtwebengine
make
-j
$(
nproc
)
make
install
# PostInstall
find
$QT5_PREFIX
/
-name
\*
.prl
\
-exec
sed
-i
-e
'/^QMAKE_PRL_BUILD_DIR/d'
{}
\;
find
${
QT5_PREFIX
}
/lib
-name
"*.la"
\
-exec
rm
-f
{}
\;
popd
>
/dev/null
echo
"
${
QT5_PREFIX
}
/lib"
>
/etc/ld.so.conf.d/qt.conf
ldconfig
__mytext
=
"""
export QT5_PATH=
\"
${
QT5_PREFIX
}
\"
export QT_QPA_PLATFORM_PLUGIN_PATH=
\"\$
{QT5_PATH}/plugins
\"
add_to_path
\"\$
{QT5_PATH}/bin
\"
"""
echo
"
${
__mytext
}
"
|
tee
-a
"
${
APOLLO_PROFILE
}
"
ok
"Successfully installed Qt5 qtbase-
${
VERSION
}
from src for
$(
uname
-m
)
."
rm
-rf
qtbase-everywhere-src-
${
VERSION
}
${
PKG_NAME
}
# Clean up cache to reduce layer size.
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
docker/build/installers/install_visualizer_deps.sh
浏览文件 @
d7791aec
...
...
@@ -19,6 +19,12 @@
# Fail on first error.
set
-e
if
[[
"
$1
"
==
"build"
]]
;
then
BUILD_TYPE
=
"build"
else
BUILD_TYPE
=
"download"
fi
CURR_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
-P
)
"
.
${
CURR_DIR
}
/installer_base.sh
...
...
@@ -41,7 +47,7 @@ apt_get_update_and_install \
# For test run
# /usr/local/cuda/samples/5_Simulations/nbody
bash
${
CURR_DIR
}
/install_qt.sh
bash
${
CURR_DIR
}
/install_qt.sh
"
${
BUILD_TYPE
}
"
# Clean up cache to reduce layer size.
apt-get clean
&&
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录