从源代码编译clank(Android版Chrome)时出现错误:stdio.h:没有这样的文件或目录 [英] Compiling clank (Chrome for Android) from source gives error: stdio.h: No such file or directory
问题描述
我试图从这里提到的268MB chrome_android.v18.0.1025123.tgz编译clank(现在称为Chrome for Android?): https://developers.google.com/chrome/mobile/docs/faq
我遵循自述文件.Chrome_for_Android_SourceDistribution在那里,并通过 http://src.chromium.org/chrome/trunk / src (截至2012年7月31日)。
然后我进入了我自己创建clank的部分:
cd external / chrome&& 。 build / android / envsetup.sh&& clank_gyp&& make -j16 libchromeview.so
起初我错过了一些没有提到的依赖关系,与:
sudo apt-get install libgtk2.0-dev libgconf2-dev libgnome-keyring-dev libdbus-glib-1- dev libudev-dev
现在我看到了这样的编译错误:
从third_party / skia / include / core / SkTypes.h包含的文件中:15:0,
from third_party / skia / include / core /SkTime.h:13,
from third_party / skia / src / animator / SkTime.cpp:10:
third_party / skia / include / core / SkPostConfig.h:145:27:致命错误:stdio .h:没有这样的文件或目录
我在android源文件的许多文件夹中看到stdio.h。
我如何知道使用哪一个?为什么没有正确使用它?
我使用的是Ubuntu12.04-amd64,我想为Nexus 7编译clank。 您可能需要额外的依赖关系,并且为确保您的环境设置为指向sdks,您可能需要检查此网站:
https://code.google.com/p/chromium/wiki/AndroidBuildInstructions
I'm trying to compile clank (now called Chrome for Android?) from a 268MB chrome_android.v18.0.1025123.tgz mentioned in here: https://developers.google.com/chrome/mobile/docs/faq
I followed README.Chrome_for_Android_SourceDistribution in there and built Android from master on http://src.chromium.org/chrome/trunk/src (as of 7/31/2012).
Then I got to the part where I build clank itself with:
cd external/chrome && . build/android/envsetup.sh && clank_gyp && make -j16 libchromeview.so
At first I was missing some not-mentioned dependencies, which was easily fixed with:
sudo apt-get install libgtk2.0-dev libgconf2-dev libgnome-keyring-dev libdbus-glib-1-dev libudev-dev
And now I'm seeing compilation errors like this:
In file included from third_party/skia/include/core/SkTypes.h:15:0,
from third_party/skia/include/core/SkTime.h:13,
from third_party/skia/src/animator/SkTime.cpp:10:
third_party/skia/include/core/SkPostConfig.h:145:27: fatal error: stdio.h: No such file or directory
I see stdio.h in many folders inside of android source.
How do I know which one to use? And why is the right one is not being used already?
P.S. I'm using Ubuntu12.04-amd64 and I want to compile clank for Nexus 7.
You might need additional dependencies and to ensure that your environment is set up to point towards the sdks, you might want to check this site out: https://code.google.com/p/chromium/wiki/AndroidBuildInstructions
这篇关于从源代码编译clank(Android版Chrome)时出现错误:stdio.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!