使用 tslib 和 angstrom g++ 时出现 Qt 编译错误

发布于 2025-01-04 04:28:48 字数 1691 浏览 0 评论 0原文

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

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

In the above scenario I am getting the following compile error. Can someone tell me why? I am using the following doc as my guide line

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦爱 2025-01-11 04:28:48

对“rpl_malloc”进行简单的 Google 搜索可以找到许多与此问题相关的参考资料,并提供解决方案建议。问题是 Autoconf 配置脚本由于某种原因无法找到 malloc,并尝试回退到 rpl_malloc。有几个建议可以解决此问题:

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

ac_cv_func_malloc_0_nonnull=yes ./configure <your configure options>

2.) 手动更改配置脚本,通过在其前面添加前缀来注释掉 rpl_malloc 问题 AC_FUNC_MALLOC 行<代码>#。

(参考:这篇博文等

A simple Google search on "rpl_malloc" finds many references to this issue, with suggestions for solutions. The problem is that the Autoconf configure script is having trouble finding malloc for some reason, and tries to fall back to rpl_malloc. There are a couple of suggestions to work around this:

1.) Define the ac_cv_func_malloc_0_nonnull=yes environment variable before you run configure, for instance by running configure (assuming a bash shell) as:

ac_cv_func_malloc_0_nonnull=yes ./configure <your configure options>

or

2.) Manually change the configure script to comment out the rpl_malloc problem AC_FUNC_MALLOC line by prefixing it with a #.

(Reference: this blog post, among others)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文