使用带有angstrom g ++的tslib时Qt编译错误

Tha*_*nga 2 embedded qt touchscreen angstrom-linux

在上面的场景中,我收到以下编译错误.有人可以告诉我为什么吗?我使用以下文档作为我的指导

http://billforums.station51.net/viewtopic.php?f=8&t=15

ts_test.o: In function `main':
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
ts_harvest.o: In function `main':
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_harvest] Error 1
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0'
make: *** [all] Error 2
ts_test.o: In function `main':
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
ts_harvest.o: In function `main':
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_harvest] Error 1
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

Bro*_*ses 5

对"rpl_malloc"简单的谷歌搜索找到这个问题多次提到,与解决方案的建议.问题是Autoconf配置脚本malloc由于某种原因找不到问题,并试图回归rpl_malloc.有几个建议可以解决这个问题:

1.)ac_cv_func_malloc_0_nonnull=yes在运行之前定义环境变量configure,例如通过运行configure(假设bash shell):

ac_cv_func_malloc_0_nonnull=yes ./configure <your configure options>
Run Code Online (Sandbox Code Playgroud)

要么

2.)手动更改配置脚本,rpl_malloc problem AC_FUNC_MALLOC通过在其前面添加一个注释掉该行#.

(参考:此博客文章等)