sysroot到底是什么,我该如何创建它? [英] What is a sysroot exactly and how do I create one ?

查看:1424
本文介绍了sysroot到底是什么,我该如何创建它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用QT和嵌入式设备以及许多文档项目(在这里),他们在谈论sysroots.我已经在网上搜索过,但是找不到关于sysroot的任何信息.我有一个交叉编译器工具链.什么是sysroot,我如何创建一个?

I'm working with QT and embedded devices and in many documentation items ( like here) they are talking about sysroots. I've searched the web but I couldn't find anything about what a sysroot is. I have a cross-compiler-toolchain though. What's a sysroot and how do I create one ?

推荐答案

sysroot是一个目录,出于定位标头和库的目的,该目录被视为根目录.因此,例如,如果您的构建工具链希望找到/usr/include/foo.h,但您正在交叉编译且/my/other/place/usr/include/foo.h中包含相应的foo.h,则可以使用/my/other/place作为您的sysroot.

A sysroot is a directory which is considered to be the root directory for the purpose of locating headers and libraries. So for example if your build toolchain wants to find /usr/include/foo.h but you are cross-compiling and the appropriate foo.h is in /my/other/place/usr/include/foo.h, you would use /my/other/place as your sysroot.

这篇关于sysroot到底是什么,我该如何创建它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆