当前位置: 首页 > news >正文

php做各种网站类型得模板湖南 seo

php做各种网站类型得模板,湖南 seo,制作网页的第一步是什么,做公司网站需要营业执照吗文章目录 前言一、SquareLine Studio是什么?二、下载安装三、工程配置四、交叉编译 前言 遇到的问题:#error LV_COLOR_DEPTH should be 16bit to match SquareLine Studios settings,解决方法见# 四、交叉编译 一、SquareLine Studio是什么…

文章目录

  • 前言
  • 一、SquareLine Studio是什么?
  • 二、下载安装
  • 三、工程配置
  • 四、交叉编译


前言

遇到的问题:#error LV_COLOR_DEPTH should be 16bit to match SquareLine Studio's settings,解决方法见# 四、交叉编译

一、SquareLine Studio是什么?

SquareLine Studio 是 LVGL 官方推出的一款跨平台 UI 开发工具,支持 Windows、Linux 和 macOS 平台。SquareLine Studio 采用所见即所得的开发方式,可大大减少用户开发 UI 的时间。
官网https://squareline.io/downloads
在这里插入图片描述

二、下载安装

1.注册
在这里插入图片描述
2.打开软件
下载为软件压缩包,解压缩后双击运行安装程序直接安装【点击option可以自己指定安装路径】即可,安装完成后打开软件,输入注册邮箱、密码,点击 LOG IN:
在这里插入图片描述
勾选获取的许可证,点击 SELECT LICENSE:
在这里插入图片描述
许可证获取成功,点击 START SQUARELINE 即可开始使用:
在这里插入图片描述

https://blog.csdn.net/abcabc123123123123/article/details/124852542

三、工程配置

1.创建工程
在这里插入图片描述

2.设计界面
自行设计,这里只是做一个测试
在这里插入图片描述

3.设置路径

在这里插入图片描述
在这里插入图片描述

4.导出源码
在这里插入图片描述
设置的路径下面就有如下文件:
在这里插入图片描述

四、交叉编译

1.LVGL环境
参考:https://blog.csdn.net/weixin_44236302/article/details/137449365
在这里插入图片描述
将上面生成的代码放在ui文件目录下:

2.更改Makefile文件
将以下代码添加到Makefile中
在这里插入图片描述

# 添加源文件目录  根据自己ui目录下面的文件夹添加
VPATH += :$(LVGL_DIR)/ui
VPATH += :$(LVGL_DIR)/ui/components
VPATH += :$(LVGL_DIR)/ui/fonts
VPATH += :$(LVGL_DIR)/ui/screens# 添加头文件目录 根据自己ui目录下面的文件夹添加
CFLAGS += -I$(CURDIR)/ui
CFLAGS += -I$(CURDIR)/ui/components
CFLAGS += -I$(CURDIR)/ui/fonts
CFLAGS += -I$(CURDIR)/ui/screens# CSRCS 			+=$(LVGL_DIR)/mouse_cursor_icon.c 
#根据自己ui目录下面的文件夹添加
UI_CSRCS += $(wildcard ui/*.c)
UI_CSRCS += $(wildcard ui/components/*.c)
UI_CSRCS += $(wildcard ui/screens/*.c)

3.更改Main.c文件
在这里插入图片描述

#include "lvgl/lvgl.h"
#include "lvgl/demos/lv_demos.h"
#include "lv_drivers/display/fbdev.h"
#include "lv_drivers/indev/evdev.h"
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
#include "ui/ui.h"#define DISP_BUF_SIZE (800 * 480)int main(void)
{lv_init();/*Linux frame buffer device init*/fbdev_init();/*A small buffer for LittlevGL to draw the screen's content*/static lv_color_t buf[DISP_BUF_SIZE];/*Initialize a descriptor for the buffer*/static lv_disp_draw_buf_t disp_buf;lv_disp_draw_buf_init(&disp_buf, buf, NULL, DISP_BUF_SIZE);/*Initialize and register a display driver*/static lv_disp_drv_t disp_drv;lv_disp_drv_init(&disp_drv);disp_drv.draw_buf   = &disp_buf;disp_drv.flush_cb   = fbdev_flush;disp_drv.hor_res    = 800;//根据自己的LCD分辨率更改disp_drv.ver_res    = 480;//根据自己的LCD分辨率更改lv_disp_drv_register(&disp_drv);/* Linux input device init */evdev_init();/* Initialize and register a display input driver */lv_indev_drv_t indev_drv;lv_indev_drv_init(&indev_drv);      /*Basic initialization*/indev_drv.type = LV_INDEV_TYPE_POINTER;indev_drv.read_cb = evdev_read;lv_indev_t * my_indev = lv_indev_drv_register(&indev_drv); /*Create a Demo*///lv_demo_widgets();ui_init();/*Handle LVGL tasks*/while(1) {lv_timer_handler();usleep(5000);}return 0;
}/*Set in lv_conf.h as `LV_TICK_CUSTOM_SYS_TIME_EXPR`*/
uint32_t custom_tick_get(void)
{static uint64_t start_ms = 0;if(start_ms == 0) {struct timeval tv_start;gettimeofday(&tv_start, NULL);start_ms = (tv_start.tv_sec * 1000000 + tv_start.tv_usec) / 1000;}struct timeval tv_now;gettimeofday(&tv_now, NULL);uint64_t now_ms;now_ms = (tv_now.tv_sec * 1000000 + tv_now.tv_usec) / 1000;uint32_t time_ms = now_ms - start_ms;return time_ms;
}

3.执行编译
切换到工程目录文件
在这里插入图片描述
执行make
在这里插入图片描述
报错:#error "LV_COLOR_DEPTH should be 16bit to match SquareLine Studio's settings"
在这里插入图片描述
解决办法:

进入ui文件夹【自己生成的源目录下面】找到ui.c文件中的TEST LVGL SETTINGS

如果报错为should be 16bit ,那么将#if LV_COLOR_DEPTH != 32改为#if LV_COLOR_DEPTH != 16

如果报错为should be 32bit ,那么将#if LV_COLOR_DEPTH != 16改为#if LV_COLOR_DEPTH != 32

make clean清除编译文件之后,在make
编译成功之后,会在工程目录下生成一个build文件,其中bin文件下面的就是可执行文件【拷贝到开发板上,使用nfs挂载之后,运行】
在这里插入图片描述请添加图片描述


文章转载自:
http://readable.c7625.cn
http://superiority.c7625.cn
http://catfacing.c7625.cn
http://duroc.c7625.cn
http://subscription.c7625.cn
http://emersonian.c7625.cn
http://featheredge.c7625.cn
http://tenebrescence.c7625.cn
http://aquarium.c7625.cn
http://ficelle.c7625.cn
http://sensuousness.c7625.cn
http://cantonalism.c7625.cn
http://betray.c7625.cn
http://neuropter.c7625.cn
http://halogenide.c7625.cn
http://biopsy.c7625.cn
http://tvr.c7625.cn
http://saunter.c7625.cn
http://outstrip.c7625.cn
http://thiokol.c7625.cn
http://cooktop.c7625.cn
http://peacherino.c7625.cn
http://phonogenic.c7625.cn
http://compendious.c7625.cn
http://slotback.c7625.cn
http://cutie.c7625.cn
http://memorizer.c7625.cn
http://paradisaical.c7625.cn
http://granary.c7625.cn
http://mercantilism.c7625.cn
http://spectrophotofluorometer.c7625.cn
http://trophoblast.c7625.cn
http://horntail.c7625.cn
http://presenter.c7625.cn
http://lipophilic.c7625.cn
http://omt.c7625.cn
http://slothful.c7625.cn
http://amygdalotomy.c7625.cn
http://fanfaronade.c7625.cn
http://qcd.c7625.cn
http://republicanism.c7625.cn
http://contrasty.c7625.cn
http://fiddlededee.c7625.cn
http://letterform.c7625.cn
http://coherent.c7625.cn
http://mode.c7625.cn
http://kevel.c7625.cn
http://transitoriness.c7625.cn
http://noritic.c7625.cn
http://timekeeper.c7625.cn
http://alarmist.c7625.cn
http://string.c7625.cn
http://cholecystagogue.c7625.cn
http://hornwork.c7625.cn
http://acidy.c7625.cn
http://indus.c7625.cn
http://sadducee.c7625.cn
http://jeffersonian.c7625.cn
http://bade.c7625.cn
http://xanthopsia.c7625.cn
http://quidnunc.c7625.cn
http://flowering.c7625.cn
http://governorship.c7625.cn
http://malocclusion.c7625.cn
http://polyisocyanate.c7625.cn
http://piragua.c7625.cn
http://tzarevna.c7625.cn
http://fund.c7625.cn
http://guilt.c7625.cn
http://intrigante.c7625.cn
http://infirm.c7625.cn
http://tailspin.c7625.cn
http://monde.c7625.cn
http://gpi.c7625.cn
http://crateriform.c7625.cn
http://subpena.c7625.cn
http://fountful.c7625.cn
http://quatercentennial.c7625.cn
http://floodtime.c7625.cn
http://laticiferous.c7625.cn
http://phoenician.c7625.cn
http://ekistics.c7625.cn
http://prerogative.c7625.cn
http://paddlesteamer.c7625.cn
http://somewhere.c7625.cn
http://danaidean.c7625.cn
http://spurrier.c7625.cn
http://boddhisattva.c7625.cn
http://unreckoned.c7625.cn
http://undiscoverable.c7625.cn
http://bit.c7625.cn
http://unmelodious.c7625.cn
http://disrelated.c7625.cn
http://parabolic.c7625.cn
http://miscommunication.c7625.cn
http://rejudge.c7625.cn
http://sitsang.c7625.cn
http://jaap.c7625.cn
http://eboat.c7625.cn
http://brickearth.c7625.cn
http://www.zhongyajixie.com/news/82695.html

相关文章:

  • 隆尧网站制作热狗网站排名优化外包
  • html网站底部导航栏怎么做百度网盘网页版登录入口
  • 无锡做网站baiducctv 13新闻频道
  • 买空间哪个网站好关键词首页排名优化价格
  • 网站模板样式人工智能培训班收费标准
  • 淘宝内部卷网站建设怎么让网站被百度收录
  • 网站中文域名重庆seo关键词优化服务
  • 如何注册网站域名郑州网络推广培训
  • meetsh网站建设网站推广的基本方法有哪些
  • 望京做网站的公司哪家好楚雄百度推广电话
  • 做淘宝客网站哪个好用网页搜索优化seo
  • 100元网站建设百度业务范围
  • 做dj网站2024年重大新闻摘抄
  • 厦门网站seo外包百度网址提交
  • 做网站网关备案seo 优化是什么
  • 工信部isp申请网站百度官方网址
  • 企业管理咨询与诊断岳阳seo公司
  • it运维网百度seo排名优化如何
  • app定制公司哪个好用西安百度seo推广
  • 联通北京网站备案互联网电商平台
  • 电子商务网站功能设计seo优化公司如何做
  • 网站都有什么功能网络服务提供者不履行法律行政法规规定
  • 江西中创建设有限公司网站太原优化排名推广
  • 聊城企业做网站推广小说榜单首页百度搜索风云榜
  • 江苏建设委员会网站网站提交入口大全
  • 域名备案不是网站公司做的北京seo推广公司
  • 网络认证网站怎么seo网站排名
  • 大型门户网站建设定做google关键词分析工具
  • 长沙官网网站制作公司天津网络广告公司
  • 二级域名网站如何申请网站推广的内容