我把GUI的目录都添加到工程里,但编译却出现了很多错误。
Build target ‘RT-LCD-debug’
compiling cdjpeg.c…
rtgui\common\jpeg\cdjpeg.c(18): error: #5: cannot open source input file “fcntl.h”: No such file or directory
compiling jmemdos.c…
rtgui\common\jpeg\jmemdos.c(81): error: #20: identifier “You” is undefined
rtgui\common\jpeg\jmemdos.c(81): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(97): warning: #12-D: parsing restarts here after previous syntax error
rtgui\common\jpeg\jmemdos.c(100): error: #70: incomplete type is not allowed
rtgui\common\jpeg\jmemdos.c(100): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(104): error: #70: incomplete type is not allowed
rtgui\common\jpeg\jmemdos.c(104): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(107): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(108): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(109): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(110): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(112): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(114): error: #147: declaration is incompatible with “short far” (declared at line 107)
rtgui\common\jpeg\jmemdos.c(114): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(115): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(116): error: #147: declaration is incompatible with “void far” (declared at line 114)
rtgui\common\jpeg\jmemdos.c(116): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(117): error: #147: declaration is incompatible with “short far” (declared at line 116)
rtgui\common\jpeg\jmemdos.c(117): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(247): warning: #223-D: function “jdos_seek” declared implicitly
rtgui\common\jpeg\jmemdos.c(247): error: #136: struct “backing_store_struct” has no field “handle”
rtgui\common\jpeg\jmemdos.c(252): warning: #223-D: function “jdos_read” declared implicitly
rtgui\common\jpeg\jmemdos.c(252): error: #136: struct “backing_store_struct” has no field “handle”
rtgui\common\jpeg\jmemdos.c(263): warning: #223-D: function “jdos_seek” declared implicitly
rtgui\common\jpeg\jmemdos.c(263): error: #136: struct “backing_store_struct” has no field “handle”
rtgui\common\jpeg\jmemdos.c(268): warning: #223-D: function “jdos_write” declared implicitly
rtgui\common\jpeg\jmemdos.c(268): error: #136: struct “backing_store_struct” has no field “handle”
rtgui\common\jpeg\jmemdos.c(277): warning: #223-D: function “jdos_close” declared implicitly
rtgui\common\jpeg\jmemdos.c(277): error: #136: struct “backing_store_struct” has no field “handle”
rtgui\common\jpeg\jmemdos.c(294): warning: #223-D: function “jdos_open” declared implicitly
rtgui\common\jpeg\jmemdos.c(294): error: #18: expected a “)”
rtgui\common\jpeg\jmemdos.c(294): warning: #767-D: conversion from pointer to smaller integer
rtgui\common\jpeg\jmemdos.c(294): error: #18: expected a “)”
rtgui\common\jpeg\jmemdos.c(294): warning: #767-D: conversion from pointer to smaller integer
rtgui\common\jpeg\jmemdos.c(299): error: #136: struct “backing_store_struct” has no field “handle”
rtgui\common\jpeg\jmemdos.c(314): error: #20: identifier “XMSDRIVER” is undefined
rtgui\common\jpeg\jmemdos.c(318): error: #70: incomplete type is not allowed
rtgui\common\jpeg\jmemdos.c(318): error: #65: expected a “;”
rtgui\common\jpeg\jmemdos.c(323): error: #20: identifier “XMSH” is undefined
compiling jmemmac.c…
rtgui\common\jpeg\jmemmac.c(58): error: #20: identifier “You” is undefined
rtgui\common\jpeg\jmemmac.c(58): error: #65: expected a “;”
rtgui\common\jpeg\jmemmac.c(61): error: #5: cannot open source input file “Memory.h”: No such file or directory
compiling rdjpgcom.c…
rtgui\common\jpeg djpgcom.c(23): error: #5: cannot open source input file “fcntl.h”: No such file or directory
compiling wrjpgcom.c…
rtgui\common\jpeg\wrjpgcom.c(22): error: #5: cannot open source input file “fcntl.h”: No such file or directory
Target not created
请问上面缺失的文件都在那里?
另外怎样才能建立一个最简单gui工程?
建立一个最简单gui工程那些文件是必须的?
最好能给一个最简单的example.
0.3.1的JPEG会有问题吧,把和jpeg相关的先去掉。(jpeg可以在GCC下使用,但是Keil MDK下还缺少东西)
去掉了,还是编译出错。能否提供一个能够在STM32VE上可以实现的最简单的example啊