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'sudo apt install build-essentialsudo yum install cmakesudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
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目录下sudo apt-get update
sudo apt-get install libdbus-1-devgit clone https://gitee.com/tjopenlab/libunwind
cd libunwind
autoreconf -i
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC installsudo apt-get install libunwind8-devsudo 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 installsudo apt-get install libicu-devsudo apt-get install autoreconf
sudo apt-get install libtool-
cd como -
source build/envsetup.shYou 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:
comotoolsto build toolscomo_linux_x64to build como for linux x64como_android_aarch64to build como for android aarch64
-
buildorbuild -jnfor release build
- in any build target:
debugfor debug buildreleasefor release build
rebuildorrebuild -jn
clobber
if the build target is android aarch64, you need copy building results to the device.
dropordrop allto copy all modulesdrop coreto copy core modulesdrop testto copy testcase modules
rootto change to como root directoryoutto change to out directorybinto change to bin directory
build external with program:
./MakeOptionalExternal.shIt needs python interpreator in your PATH environment.