在苗大哥的帮助下一一解决
1,源码中有u_short,ushort,但程序并未包含相应的头文件,统统改成unsigned short。
2,左值错误
(XXXX)xx->xxxx,这样的,把括号连内容删掉。
3,pthread_kill_other_threads_np
gcc -g -O2 -Wall -Wstrict-prototypes -pipe -D_REENTRANT -o helloworld helloworld.o -lminigui -lpthread -lc -lm -lpng -ljpeg
/usr/local/lib/libminigui.so: undefined reference to `pthread_kill_other_threads_np'
collect2: ld 返回 1
make[1]: *** [helloworld] 错误 1
make[1]: Leaving directory `/home/gyg/minigui/mg-samples-str-1.6.2/src'
make: *** [all-recursive] 错误 1
解决方法主要有以下3种:
是 FC 4 中的 pthread 库升级造成的。
a、阅读 FC 4 的 Release Notes,其中有描述如何沿用旧的 pthread 库
的方法。照这个方法配置一下系统就可以了。
b、 删除 MiniGUI 源代码中调用'pthread_kill_other_threads_np'这个函数
的语句。应该在 src/kernel/init.c 文件中,也可以运行 grep 找一下这个函数。
c、使用2.0以上的版本就可以或者使用FC 3以下的版本.
4、
varbitmap.c:248: error: