要写的东西太多,一时间竟不知从何说起。正值端午放假,先安康吧,大致记录一下关键点
给海思芯片的板子加一个菜单界面。
This project can be used to build and run C/C++ UI code exported from SquareLine Studio.
sudo apt-get install gcc g++ gdb build-essential
sudo apt-get install libsdl2-dev
In SquareLine Studio click Export->Export Files
and select the ui
folder of this project
File->Import->General->Exisiting project into Workspace
click “Next” and browse the projectProject->Build
Run->Run
.sudo apt install libpng-dev
之后按照上面的步骤就能看到demo的界面了。
7. 移植
在决定尝试lvgl之后,就找相关资料如何使得海思芯片能跑这个程序。
海思Hi3519移植freetype zlib libpng16 libharfbuzz 添加字幕
我发现Linux的好多开源库好像都有一样的配置过程,先config,再mak && make install,目前还没有搞清楚为什么~
第一次移植有多蠢吗?因为想把结果直接搬到海思芯片上,所以把上面用到的这些库用交叉编译器重新编译了之后就把整个包拷过去了,不识别的库就先放到/usr/lib/下,结果嘛,跑是跑起来了,但是报错什么权限拒绝,目前没有想明白是什么原因。
#define USE_FBDEV 1
#define USE_EVDEV 1
/opt/hisi-linux/x86-arm/aarch64-himix100-linux/
aarch64-himix100-linux-
missing semester
还不错,要去看下First run the ./configure to generate the Makefile. After that, if you have CDT installed,just choose the option “File->New->Makefile Project With Existing Code” and point to the directory where the Makefile is stored.
靠上面这种方法可以加载海思sample,比较好用
Linux + Eclipse 配置交叉编译环境
10. makefile可以条件编译头文件
感觉海思将这个makefile玩得溜的,linux,liteos,multi-core,single…分别用不同的头文件,c文件引用的头文件都不是当前目录下的,ide找都找不到,编译的时候才通过make的智能编译$@ $^
去找。也不知道这样用makefile和eclipse应用sdk到底对不对-_-||
/**
* @file lv_drv_conf.h
* Configuration file for v8.2.0
*/
/*
* COPY THIS FILE AS lv_drv_conf.h
*/
/*-------------------------------------------------
* Mouse or touchpad as evdev interface (for Linux based systems)
*------------------------------------------------*/
#ifndef USE_EVDEV
# define USE_EVDEV 1
#endif
#ifndef USE_BSD_EVDEV
# define USE_BSD_EVDEV 0
#endif
#if USE_EVDEV || USE_BSD_EVDEV
# define EVDEV_NAME "/dev/input/event1" /*You can use the "evtest" Linux tool to get the list of devices and test them*/
//main.c
disp_drv.hor_res = 1280;//800;
disp_drv.ver_res = 720;//480;
/**
* @file lv_conf.h
* Configuration file for v8.2.0
*/
/*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/
#define LV_COLOR_DEPTH 16