OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 10875|回复: 6

gui移植问题

[复制链接]

20

主题

23

帖子

0

精华

初级会员

Rank: 2

积分
123
金钱
123
注册时间
2012-3-29
在线时间
0 小时
发表于 2012-11-23 10:52:52 | 显示全部楼层 |阅读模式
刚刚 移植好了gui,也能够用GUI_DispStringAt函数显示字符了,但是添加#include  "GUI.h"这个文件就会出错,错误是GUITYPE_H_INCLUDED 文件下的数据类型未定义例如u8,u16p等一些数据类型,不知道为什么,请求指点
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2012-11-23 18:14:17 | 显示全部楼层
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复 支持 反对

使用道具 举报

0

主题

2

帖子

0

精华

新手入门

积分
22
金钱
22
注册时间
2012-12-3
在线时间
0 小时
发表于 2012-12-3 16:24:31 | 显示全部楼层
回复【楼主位】明月:
---------------------------------
我也是这个错误,请问 楼主现在解决了吗?
回复 支持 反对

使用道具 举报

0

主题

2

帖子

0

精华

新手入门

积分
22
金钱
22
注册时间
2012-12-3
在线时间
0 小时
发表于 2012-12-3 16:26:38 | 显示全部楼层
.\GUI\Core\GUIType.h(47): error:  #20: identifier "LCD_COLOR" is undefined
.\GUI\Core\GUIType.h:   typedef LCD_COLOR       GUI_COLOR;
.\GUI\Core\GUIType.h:           ^
.\GUI\Core\GUIType.h(48): error:  #20: identifier "LCD_LOGPALETTE" is undefined
.\GUI\Core\GUIType.h:   typedef LCD_LOGPALETTE  GUI_LOGPALETTE;
.\GUI\Core\GUIType.h:           ^
.\GUI\Core\GUIType.h(49): error:  #20: identifier "LCD_DRAWMODE" is undefined
.\GUI\Core\GUIType.h:   typedef LCD_DRAWMODE    GUI_DRAWMODE;
.\GUI\Core\GUIType.h:           ^
.\GUI\Core\GUIType.h(50): error:  #20: identifier "LCD_RECT" is undefined
.\GUI\Core\GUIType.h:   typedef LCD_RECT        GUI_RECT;
.\GUI\Core\GUIType.h:           ^
.\GUI\Core\GUIType.h(53): error:  #20: identifier "U8" is undefined
.\GUI\Core\GUIType.h:     void      (* pfDraw)(int x0,int y0,int xsize, int ysize, const U8 GUI_UNI_PTR * pPixel, const LCD_LOGPALETTE GUI_UNI_PTR * pLogPal, int xMag, int yMag);
.\GUI\Core\GUIType.h:                                                                    ^
.\GUI\Core\GUIType.h(53): error:  #20: identifier "LCD_LOGPALETTE" is undefined
.\GUI\Core\GUIType.h:     void      (* pfDraw)(int x0,int y0,int xsize, int ysize, const U8 GUI_UNI_PTR * pPixel, const LCD_LOGPALETTE GUI_UNI_PTR * pLogPal, int xMag, int yMag);
.\GUI\Core\GUIType.h:                                                                                                   ^
.\GUI\Core\GUIType.h(58): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P XSize;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(59): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P YSize;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(60): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P BytesPerLine;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(61): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P BitsPerPixel;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(62): error:  #20: identifier "U8" is undefined
.\GUI\Core\GUIType.h:     const U8 GUI_UNI_PTR * pData;
.\GUI\Core\GUIType.h:           ^
.\GUI\Core\GUIType.h(73): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 ID;           /* Version 1.00 => 100*/
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(74): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 Version;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(75): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 XSize;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(76): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 YSize;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(77): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 BytesPerLine;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(78): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 BitsPerPixel;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(79): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 NumColors;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(80): error:  #20: identifier "U16" is undefined
.\GUI\Core\GUIType.h:     U16 HasTrans;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(100): error:  #20: identifier "I16P" is undefined
.\GUI\Core\GUIType.h:     I16P c0;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(101): error:  #20: identifier "I16P" is undefined
.\GUI\Core\GUIType.h:     I16P c1;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(105): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P FirstChar;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(106): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P LastChar;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(111): error:  #20: identifier "U8" is undefined
.\GUI\Core\GUIType.h:     U8 XSize;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(112): error:  #20: identifier "U8" is undefined
.\GUI\Core\GUIType.h:     U8 XDist;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(113): error:  #20: identifier "U8" is undefined
.\GUI\Core\GUIType.h:     U8 BytesPerLine;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(118): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P First;                                /* first character               */
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(119): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P Last;                                 /* last character                */
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h(126): error:  #20: identifier "U8" is undefined
.\GUI\Core\GUIType.h:     const U8 GUI_UNI_PTR * pTransData;
.\GUI\Core\GUIType.h:           ^
.\GUI\Core\GUIType.h(128): error:  #20: identifier "U16P" is undefined
.\GUI\Core\GUIType.h:     U16P FirstChar;
.\GUI\Core\GUIType.h:     ^
.\GUI\Core\GUIType.h: USER\main.c: 0 warnings, 30 errors
回复 支持 反对

使用道具 举报

9

主题

43

帖子

0

精华

初级会员

Rank: 2

积分
131
金钱
131
注册时间
2012-7-26
在线时间
14 小时
发表于 2012-12-4 14:51:20 | 显示全部楼层
你这个问题我也曾经遇到过,后来我不用那样的方法移植。我建议你去网上找开水做的那个视频看看。叫<<手把手教你在stm32上移植GUI>>
回复 支持 反对

使用道具 举报

51

主题

203

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
428
金钱
428
注册时间
2012-10-25
在线时间
0 小时
发表于 2012-12-4 15:06:20 | 显示全部楼层
我遇到过这个问题,原因是驱动文件里面有LCD_Init
程序员是未来的魔法师!
回复 支持 反对

使用道具 举报

71

主题

183

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
494
金钱
494
注册时间
2013-1-29
在线时间
1 小时
发表于 2013-8-7 11:09:18 | 显示全部楼层
回复【6楼】super_Tao:
---------------------------------
回复【4楼】pirateyoung:
---------------------------------
问一下 我现在也在弄GUI 同样遇到了这个错误..请问你们解决了吗? 求指点。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-7-15 19:26

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表