COMO is a C++ Component Model. It can:
- support interface-oriented programming;
- support C++ runtime reflection;
cdlc is the .cdl compiler.
comort is the como component runtime.
libcore is the core library.
sudo yum groupinstall 'Development Tools'
1. sudo apt install build-essential
sudo yum install cmake
1. sudo apt-get install software-properties-common
2. sudo add-apt-repository ppa:george-edison55/cmake-3.x
3. sudo apt-get update
4. sudo apt-get install cmake
安装dbus
sudo yum install dbus-devel
查找dbus.h位置
$ sudo locate dbus.h
如果提示错误,执行 $ sudo updatedb
/usr/local/include/dbus-1.0/dbus/dbus.h
/usr/include/dbus-1.0/dbus/dbus.h
dbus默认安装到了dbus-1.0位置,需要调整dbus头文件位置,调整方法如下:
$cd /usr/include
$ ln -sf dbus-1.0/dbus
出现错误dbus/dbus-arch-deps.h:No such file or directory
查找该文件
$ locate dbus-arch-deps.h
/usr/local/lib/dbus-1.0/include/dbus/dbus-arch-deps.h
/usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h
将/usr/lib/dbus-1.0/include/dbus/dbus-arch-deps.h文件复制到/usr/include/dbus目录下
1. sudo apt-get update
2. sudo apt-get install libdbus-1-dev
wget http://mirror.yongbok.net/nongnu/libunwind/libunwind-1.5.0.tar.gz
tar zxvf libunwind-1.5.0.tar.gz
cd libunwind-1.5.0/
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install
sudo apt-get install libunwind8-dev
sudo yum install libicu-devel
安装 icu4c 最新版
wget https://github.com/unicode-org/icu/releases/download/release-68-2/icu4c-68_2-src.tgz
tar -xf icu4c-68_2-src.tgz
cd icu/source
./configure --prefix=/usr
gmake
gmake install
sudo apt-get install libicu-dev
sudo apt-get install autoreconf
sudo apt-get install libtool
-
cd como
-
source build/envsetup.sh
You will get these commands:
$ help - comotools: Switch to build como tools. - como_linux_x64: Switch to build como for linux x64. - como_android_aarch64: Switch to build como for android aarch64. - debug: Switch to build debug version. - release: Switch to build release version. - build: Build source codes. - build install: Build source codes and install the building results. - rebuild: Rebuild source codes. - rebuild install: Rebuild source codes and install the building results. - clobber: Clean the building results and generated files of the current project. - clobber all: Clean all of the building results and generated files.
-
choose build target:
comotools
to build toolscomo_linux_x64
to build como for linux x64como_android_aarch64
to build como for android aarch64
-
build
orbuild -jn
for release build
- in any build target:
debug
for debug buildrelease
for release build
rebuild
orrebuild -jn
clobber
if the build target is android aarch64, you need copy building results to the device.
drop
ordrop all
to copy all modulesdrop core
to copy core modulesdrop test
to copy testcase modules
root
to change to como root directoryout
to change to out directorybin
to change to bin directory