ubuntu20.04编译cqh6_linux3.10_qt

ubuntu20.04编译全志H6 linux Qt源码

cd cqh6_linux3.10_qt/
export XY=1024x600
./build

如果出现错误

You seem to have the current working directory in your
LD_LIBRARY_PATH environment variable. This doesn't work.
make[1]: *** [support/dependencies/dependencies.mk:22: core-dependencies] Error 1
make: *** [Makefile:79: _all] Error 2
ERROR: build buildroot Failed

执行

LD_LIBRARY_PATH=

然后继续编译
出现错误

freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."

执行

cd buildroot-2017.02.3/output/build/host-m4-1.4.18/
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
cd -

然后继续编译
出现错误

gdbusauth.c: In function ‘_g_dbus_auth_run_server’:
gdbusauth.c:1298:11: error:%s’ directive argument is null [-Werror=format-overflow=]
 1298 |           debug_print ("SERVER: WaitingForBegin, read '%s'", line);

以及错误

gdbusmessage.c: In function ‘g_dbus_message_to_blob’:
gdbusmessage.c:2698:30: error:%s’ directive argument is null [-Werror=format-overflow=]
 2698 |       tupled_signature_str = g_strdup_printf ("(%s)", signature_str);

编辑 ./buildroot-2017.02.3/output/build/host-libglib2-2.50.2/gio/gdbusauth.c
把1298行的 debug_print ("SERVER: WaitingForBegin, read '%s'", line);移到if语句块后面

1298           //debug_print ("SERVER: WaitingForBegin, read '%s'", line);
1299           if (line == NULL)
1300             goto out;
1301           debug_print ("SERVER: WaitingForBegin, read '%s'", line);

编辑./buildroot-2017.02.3/output/build/host-libglib2-2.50.2/gio/gdbusmessage.c
把2698行的tupled_signature_str = g_strdup_printf ("(%s)", signature_str);移到if else 语句块后面。

2698       //tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
2699       if (signature == NULL)
2700         {
2701           g_set_error (error,
2702                        G_IO_ERROR,
2703                        G_IO_ERROR_INVALID_ARGUMENT,
2704                        _("Message body has signature '%s' but there is no signature header"),
2705                        signature_str);
2706           g_free (tupled_signature_str);
2707           goto out;
2708         }
2709       else if (g_strcmp0 (tupled_signature_str, g_variant_get_type_string (message->body)) != 0)
2710         {
2711           g_set_error (error,
2712                        G_IO_ERROR,
2713                        G_IO_ERROR_INVALID_ARGUMENT,
2714                        _("Message body has type signature '%s' but signature in the header field is '%s'"),
2715                        tupled_signature_str, g_variant_get_type_string (message->body));
2716           g_free (tupled_signature_str);
2717           goto out;
2718         }
2719       tupled_signature_str = g_strdup_printf ("(%s)", signature_str);

继续编译
出现错误

digitlst.cpp:67:13: fatal error: xlocale.h: No such file or directory
   67 | #   include <xlocale.h>

执行

find . -name digitlst.cpp #找到这个文件的路径
#注释掉67

搞掉,继续编译
出现错误

lib/fseterr.c: In function 'fseterr':
lib/fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."

执行

cd ./buildroot-2017.02.3/output/build/host-bison-3.0.4/
sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h
cd -

如果提示缺少某些头文件之类的错误,百度安装相对应的依赖库,如

sudo apt-get install texinfo hgsubversion

然后继续编译。
编译成功后,
烧录,运行,终于成功地没运行起来。

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
如果你想在Ubuntu 20.04上重新安装GAZEBO_ros,首先确保已经安装了ROS。你可以参考这篇博客来安装ROS。安装完成后,可以按照以下步骤重新安装GAZEBO_ros: 1. 首先,确保你的Ubuntu 20.04系统已经更新到最新版本,并且ROS也已经安装成功。 2. 打开终端,输入以下命令来安装GAZEBO_ros的依赖项: ``` sudo apt-get install ros-<your_ros_version>-gazebo-ros-pkgs ``` 请将`<your_ros_version>`替换为你当前安装的ROS版本。 3. 安装完成后,你可以通过运行以下命令来验证GAZEBO_ros是否安装成功: ``` roslaunch gazebo_ros empty_world.launch ``` 4. 如果成功启动了空白世界模型,说明GAZEBO_ros已经成功安装并运行了。 请注意,以上步骤假设你已经在Ubuntu 20.04上安装了ROS,并且已经通过ROS安装了GAZEBO_ros。如果你的系统中没有安装ROS,你需要先按照相关教程来安装ROS。 希望这些信息对你有所帮助!如果还有其他问题,请随时提问。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [当我第一次在ubuntu20.04上使用gazebo](https://blog.csdn.net/weixin_62529383/article/details/127753560)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [Gazebo-video-camera:使用ROS2将视频数据从凉亭传输到python](https://download.csdn.net/download/weixin_42125826/16655983)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值